perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / arb_vertex_program / vp-arl-local-array.shader_test
blob33a0d4bbaf78e89ede96c9a8cd9b7f657db1971a
1 # Tests loading of a variable entry from an array of program locals.
3 [require]
4 GL >= 1.3
5 ARB_vertex_program
7 [vertex program]
8 !!ARBvp1.0
9 OPTION ARB_position_invariant;
10 PARAM vals[4] = { program.local[1..4] };
11 ADDRESS A0;
12 ARL A0.x, program.local[0].x;
13 MOV result.color, vals[A0.x+0];
14 END
16 [test]
17 ortho 0 1 0 1
18 parameter local_vp 0 (3.0, 0.0, 0.0, 0.0)
19 parameter local_vp 1 (0.5, 1.0, 2.0, 0.0)
20 parameter local_vp 2 (1.0, 0.0, 1.0, 0.0)
21 parameter local_vp 3 (1.0, 0.0, 0.5, 0.0)
22 parameter local_vp 4 (0.8, 1.0, 0.0, 0.0)
23 clear color 0.0 0.0 1.0 1.0
24 clear
25 draw rect 0 0 1 1
26 probe all rgba 0.8 1.0 0.0 0.0