arb_framebuffer_object: add missing MSAA alpha-to-coverage and alpha-to-one tests
[piglit.git] / tests / spec / arb_texture_query_levels / execution / fs-miptree.shader_test
blob43ae8f7f807c863b169d138cd5583ab17df09797
1 [require]
2 GLSL >= 1.30
3 GL_ARB_texture_query_levels
5 [vertex shader passthrough]
7 [fragment shader]
8 #extension GL_ARB_texture_query_levels: require
10 uniform sampler2D s;
11 uniform int expected;
13 void main() {
14        if (textureQueryLevels(s) == expected)
15            gl_FragColor = vec4(0,1,0,0);
16        else
17            gl_FragColor = vec4(1,0,0,0);
20 [test]
21 ortho
22 clear color 0.4 0.4 0.4 0
23 clear
25 texture miptree 0
26 uniform int s 0
28 texparameter 2D min nearest_mipmap_nearest
29 texparameter 2D mag nearest
31 uniform int expected 4
33 draw rect -1 -1 2 2
34 relative probe rgba (0.5, 0.5)   (0, 1, 0, 0)