framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_arrays_of_arrays / execution / sampler / fs-initializer-non-const-index.shader_test
blob88ab68639b897d0f355ee56bf04f7030df16750a
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.50
13 GL_ARB_gpu_shader5
14 GL_ARB_arrays_of_arrays
15 GL_ARB_shading_language_420pack
17 [vertex shader passthrough]
19 [fragment shader]
20 #version 150
21 #extension GL_ARB_shading_language_420pack : enable
22 #extension GL_ARB_gpu_shader5: require
23 #extension GL_ARB_arrays_of_arrays: enable
25 layout(binding = 0) uniform sampler2D tex[2][2];
27 uniform int n;
28 uniform int m;
30 out vec4 color;
32 void main()
34         color = texture(tex[n][m], vec2(0.75, 0.25));
37 [test]
38 clear color 0.2 0.2 0.2 0.2
39 clear
41 texture checkerboard 0 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 0.0, 0.0, 0.0)
42 texparameter 2D min nearest
43 texparameter 2D mag nearest
45 texture checkerboard 1 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (0.0, 1.0, 0.0, 0.0)
46 texparameter 2D min nearest
47 texparameter 2D mag nearest
49 texture checkerboard 2 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (0.0, 0.0, 1.0, 0.0)
50 texparameter 2D min nearest
51 texparameter 2D mag nearest
53 texture checkerboard 3 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 1.0, 1.0, 1.0)
54 texparameter 2D min nearest
55 texparameter 2D mag nearest
57 uniform int n 0
58 uniform int m 0
59 draw rect -1 -1 1 1
61 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0.0, 0.0)
63 uniform int n 0
64 uniform int m 1
65 draw rect 0 -1 1 1
67 relative probe rect rgb (0.5, 0.0, 0.5, 0.5) (0.0, 1.0, 0.0)
69 uniform int n 1
70 uniform int m 0
71 draw rect -1 0 1 1
73 relative probe rect rgb (0.0, 0.5, 0.5, 0.5) (0.0, 0.0, 1.0)
75 uniform int n 1
76 uniform int m 1
77 draw rect 0 0 1 1
79 relative probe rect rgb (0.5, 0.5, 0.5, 0.5) (1.0, 1.0, 1.0)