framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_arrays_of_arrays / execution / sampler / fs-non-const-index.shader_test
blob9aa1f64cdb678915204bc23255aa5dcd07431687
1 # This test verifies that dynamically uniform indexing of sampler arrays
2 # in the fragment shader behaves correctly.
4 [require]
5 GLSL >= 1.50
6 GL_ARB_gpu_shader5
7 GL_ARB_arrays_of_arrays
9 [vertex shader passthrough]
11 [fragment shader]
12 #version 150
13 #extension GL_ARB_gpu_shader5: require
14 #extension GL_ARB_arrays_of_arrays: enable
16 uniform sampler2D s[2][2];
18 uniform int n;
19 uniform int m;
21 out vec4 color;
23 void main()
25         color = texture(s[n][m], vec2(0.75, 0.25));
28 [test]
29 clear color 0.2 0.2 0.2 0.2
30 clear
32 uniform int s[0][0] 0
33 uniform int s[0][1] 1
34 uniform int s[1][0] 2
35 uniform int s[1][1] 3
37 texture checkerboard 0 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 0.0, 0.0, 0.0)
38 texparameter 2D min nearest
39 texparameter 2D mag nearest
41 texture checkerboard 1 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (0.0, 1.0, 0.0, 0.0)
42 texparameter 2D min nearest
43 texparameter 2D mag nearest
45 texture checkerboard 2 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (0.0, 0.0, 1.0, 0.0)
46 texparameter 2D min nearest
47 texparameter 2D mag nearest
49 texture checkerboard 3 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 1.0, 1.0, 1.0)
50 texparameter 2D min nearest
51 texparameter 2D mag nearest
53 uniform int n 0
54 uniform int m 0
55 draw rect -1 -1 1 1
57 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0.0, 0.0)
59 uniform int n 0
60 uniform int m 1
61 draw rect 0 -1 1 1
63 relative probe rect rgb (0.5, 0.0, 0.5, 0.5) (0.0, 1.0, 0.0)
65 uniform int n 1
66 uniform int m 0
67 draw rect -1 0 1 1
69 relative probe rect rgb (0.0, 0.5, 0.5, 0.5) (0.0, 0.0, 1.0)
71 uniform int n 1
72 uniform int m 1
73 draw rect 0 0 1 1
75 relative probe rect rgb (0.5, 0.5, 0.5, 0.5) (1.0, 1.0, 1.0)