perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / vsfs-unused-array-member.shader_test
blob7b5b7f5517bcdd95020a8b03a84eab192a812f4c
1 # This test verifies that varyings are assigned correctly when a fragment
2 # shader doesn't read from all elements of a varying array.
4 # This used to fail due to a bug in st/mesa that was visible in Overlord.
6 [require]
7 GLSL >= 1.10
9 [vertex shader]
10 uniform vec4 data;
12 varying vec4 a[3];
13 varying float b;
15 void main()
17   a[0] = data.xxxx;
18   a[1] = data.yyyy;
19   a[2] = data.zzzz;
20   b = data.w;
21   gl_Position = gl_Vertex;
24 [fragment shader]
25 varying vec4 a[3];
26 varying float b;
28 void main()
30   gl_FragColor = vec4(a[0].x, a[2].x, b, 1.0);
33 [test]
34 uniform vec4 data 0.2 0.4 0.6 0.8
36 draw rect -1 -1 2 2
37 probe all rgba 0.2 0.6 0.8 1.0