glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-fs-copy-propagation-texcoords-2.shader_test
blob4b29d09b0b0871317b3963753f6ee748b8c5e551
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) / 2.0;
13 [fragment shader]
14 varying vec2 texcoord;
15 uniform sampler2D tex;
17 void main()
19         vec4 t1 = texture2D(tex, texcoord) * 0.5;
20         vec4 t2 = texture2D(tex, texcoord) * 0.5;
21         gl_FragColor = t1 + t2;
24 [test]
25 uniform int tex 0
26 texture rgbw 0 (8, 8)
28 draw rect -1 -1 2 2
29 relative probe rgb (0.0, 0.0) (1.0, 0.0, 0.0, 1.0)
30 relative probe rgb (1.0, 0.0) (0.0, 1.0, 0.0, 1.0)
31 relative probe rgb (0.0, 1.0) (0.0, 0.0, 1.0, 1.0)
32 relative probe rgb (1.0, 1.0) (1.0, 1.0, 1.0, 1.0)