framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_bindless_texture / execution / images / fs-const-index-three-dimensions.shader_test
blob251206f4de8b4fb65a1f62bc57caef7345404805
1 # Based on arb_arrays_of_arrays/execution/sampler/fs-const-index-three-dimensions.shader_test
2 [require]
3 GLSL >= 3.30
4 GL_ARB_arrays_of_arrays
5 GL_ARB_bindless_texture
6 GL_ARB_shader_image_load_store
8 [vertex shader passthrough]
10 [fragment shader]
11 #version 330
12 #extension GL_ARB_arrays_of_arrays: enable
13 #extension GL_ARB_bindless_texture: enable
14 #extension GL_ARB_shader_image_load_store: enable
16 layout (bindless_image) uniform;
18 uniform vec4 color;
19 writeonly uniform image2D img[2][2][2];
20 out vec4 outcolor;
22 void main()
24         imageStore(img[1][0][1], ivec2(gl_FragCoord.xy), color);
25         outcolor = vec4(0.0, 0.0, 0.0, 1.0);
28 [test]
29 # Texture 0 is the imageStore output.
30 texture rgbw 0 (16, 16) GL_RGBA8
31 resident image texture 0 GL_RGBA8
32 uniform handle img[1][0][1] 0
34 # Texture 1 is the rendering output. We don't care about this.
35 texture rgbw 1 (16, 16) GL_RGBA8
37 # Store red using imageStore
38 uniform vec4 color 1.0 0.0 0.0 1.0
39 fb tex 2d 1
40 draw rect -1 -1 2 2
42 # Test the result of imageStore
43 memory barrier GL_FRAMEBUFFER_BARRIER_BIT
44 fb tex 2d 0
45 probe all rgba 1.0 0.0 0.0 1.0