framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_arrays_of_arrays / execution / sampler / fs-initializer-const-index.shader_test
blobdcfe59110cc83ccd885b793e6e8b3a293185da85
1 # Normally, uniform array variables are initialized by array literals.
3 # However, samplers are different. Consider a declaration such as:
5 #   layout(binding = 5) uniform sampler2D[3];
7 # The initializer value is a single integer (5), while the storage has 3
8 # array elements. The proper behavior is to increment one for each
9 # element; they should be initialized to 5, 6, and 7.
11 [require]
12 GLSL >= 1.40
13 GL_ARB_arrays_of_arrays
14 GL_ARB_shading_language_420pack
16 [vertex shader]
17 #extension GL_ARB_arrays_of_arrays: enable
18 in vec4 piglit_vertex;
19 out vec4 texcoords;
21 void main()
23         gl_Position = piglit_vertex;
24         texcoords = (piglit_vertex + 1.0) / 2.0;
27 [fragment shader]
28 #extension GL_ARB_arrays_of_arrays: enable
29 #extension GL_ARB_shading_language_420pack: enable
31 layout(binding = 0) uniform sampler2D tex[2][2][2];
33 in vec4 texcoords;
34 out vec4 color;
36 void main()
38         color = texture2D(tex[0][1][1], texcoords.xy);
41 [test]
42 clear color 0.2 0.2 0.2 0.2
43 clear
45 texture rgbw 3 (8, 8)
46 draw rect -1 -1 2 2
47 relative probe rgb (0.25, 0.25) (1.0, 0.0, 0.0)
48 relative probe rgb (0.75, 0.25) (0.0, 1.0, 0.0)
49 relative probe rgb (0.25, 0.75) (0.0, 0.0, 1.0)
50 relative probe rgb (0.75, 0.75) (1.0, 1.0, 1.0)