framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_arrays_of_arrays / execution / sampler / vs-struct-nonconst-non-opaque-members.shader_test
blobdbc9c40e41314c52a9dc66ad6dce6c9f99f2e726
1 # This test verifies that dynamically uniform indexing of sampler arrays
2 # in the vertex shader behaves correctly, and the offests for the
3 # non-opaque members are calculated correctly.
5 [require]
6 GLSL >= 1.50
7 GL_ARB_arrays_of_arrays
8 GL_ARB_gpu_shader5
10 [vertex shader]
11 #version 150
12 #extension GL_ARB_arrays_of_arrays: enable
13 #extension GL_ARB_gpu_shader5: require
15 struct S {
16    float a;
17    sampler2D tex;
18    float b;
19    float c;
22 uniform S s[2][2];
24 uniform int n;
25 uniform int m;
27 in vec4 piglit_vertex;
28 out vec4 color;
30 void main()
32         gl_Position = piglit_vertex;
33         vec4 texcolor = texture(s[n][m].tex, vec2(0.75, 0.25));
34     color = vec4(s[n][m].a, s[n][m].b, s[n][m].c, texcolor.x);
37 [fragment shader]
38 #version 150
39 #extension GL_ARB_gpu_shader5: require
41 in vec4 color;
42 out vec4 out_color;
44 void main()
46         out_color = color;
49 [test]
50 clear color 0.2 0.2 0.2 0.2
51 clear
53 uniform int s[1][0].tex 3
54 uniform float s[1][0].a 0.25
55 uniform float s[1][0].b 0.5
56 uniform float s[1][0].c 0.75
59 texture checkerboard 3 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 0.0, 0.0, 0.0)
60 texparameter 2D min nearest
61 texparameter 2D mag nearest
63 uniform int n 1
64 uniform int m 0
65 draw rect -1 -1 1 1
67 relative probe rect rgba (0.0, 0.0, 0.5, 0.5) (0.25, 0.5, 0.75, 1.0)