glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-copy-propagation-self-1.shader_test
blob97ac11bce7e1a6ea20503bcd798d6a4faaee6d4c
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void main()
7         gl_Position = gl_Vertex;
10 [fragment shader]
11 uniform vec4 arg0;
12 uniform float arg1;
14 void main() {
15         vec4 R0;
17         R0.xyzw = arg0 + arg1;
18         R0.xyzw = R0.wwww;
19         gl_FragColor.xyzw = clamp(R0.xyzw, 0.0, 1.0);
22 [test]
23 uniform vec4 arg0 0.0 0.0 0.0 0.5
24 uniform float arg1 0.0
25 draw rect -1 -1 2 2
26 probe all rgba 0.5 0.5 0.5 0.5