From c0e9ae2d64570a906dd21335fc670ca79edde040 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 18 Jun 2015 21:50:06 -0700 Subject: Port vp-arl-env-array.vpfp to shader_runner This commit was autogenerated by Python and Bash scripting. --- .../vp-arl-env-array.shader_test | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/spec/arb_vertex_program/vp-arl-env-array.shader_test (limited to 'tests/spec/arb_vertex_program') diff --git a/tests/spec/arb_vertex_program/vp-arl-env-array.shader_test b/tests/spec/arb_vertex_program/vp-arl-env-array.shader_test new file mode 100644 index 000000000..999f773bd --- /dev/null +++ b/tests/spec/arb_vertex_program/vp-arl-env-array.shader_test @@ -0,0 +1,33 @@ +# Tests loading of a variable entry from an array of program locals. + +[require] +GL >= 1.3 +ARB_vertex_program +ARB_fragment_program + +[vertex program] +!!ARBvp1.0 +OPTION ARB_position_invariant; +PARAM vals[4] = { program.env[1..4] }; +ADDRESS A0; +ARL A0.x, program.local[0].x; +MOV result.color, vals[A0.x+0]; +END + +[fragment program] +!!ARBfp1.0 +MOV result.color, fragment.color; +END + +[test] +ortho 0 1 0 1 +parameter local_vp 0 (3.0, 0.0, 0.0, 0.0) +parameter env_vp 1 (0.5, 1.0, 2.0, 0.0) +parameter env_vp 2 (1.0, 0.0, 1.0, 0.0) +parameter env_vp 3 (1.0, 0.0, 0.5, 0.0) +parameter env_vp 4 (0.8, 1.0, 0.0, 0.0) +clear color 0.0 0.0 1.0 1.0 +clear +draw rect 0 0 1 1 +probe all rgba 0.8 1.0 0.0 0.0 + -- cgit v1.2.3