glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-fs-copy-propagation-texcoords-1.shader_test
blob07390fd627394007b2b6ff27085ad57e19faca2a
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 varying vec2 texcoord;
7 void main()
9         gl_Position = gl_Vertex;
10         texcoord = gl_Vertex.xy + 1.0;
13 [fragment shader]
14 /* Tests for a bug in the 965 fragment shader backend where we would
15  * propagate the MOV of the second texture2D()'s args into the message
16  * register up above the first texture2D() call.
17  */
19 varying vec2 texcoord;
20 uniform sampler2D tex;
22 void main()
24         vec2 t1 = texcoord * 0.5;
25         vec2 t2 = texcoord * .0000001;
26         gl_FragColor = texture2D(tex, t1) + texture2D(tex, t2);
29 [test]
30 uniform int tex 0
31 texture rgbw 0 (8, 8)
33 draw rect -1 -1 2 2
34 relative probe rgb (0.0, 0.0) (1.0, 0.0, 0.0, 1.0)
35 relative probe rgb (1.0, 0.0) (1.0, 1.0, 0.0, 1.0)
36 relative probe rgb (0.0, 1.0) (1.0, 0.0, 1.0, 1.0)
37 relative probe rgb (1.0, 1.0) (1.0, 1.0, 1.0, 1.0)