diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2015-06-18 21:50:06 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2015-06-18 22:16:24 -0700 |
commit | 9a575c0819920a06a75ac49b14265fdd2c7c88f8 (patch) | |
tree | e407c13a05d043c8f01d2b0fdcf0e1401fd8dd3f /tests/spec/arb_vertex_program | |
parent | 0e1b44964ff4bc766653b0d7de37301cc5211640 (diff) |
Port vp-arl-neg-array.vpfp to shader_runner
This commit was autogenerated by Python and Bash scripting.
Diffstat (limited to 'tests/spec/arb_vertex_program')
-rw-r--r-- | tests/spec/arb_vertex_program/vp-arl-neg-array.shader_test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/spec/arb_vertex_program/vp-arl-neg-array.shader_test b/tests/spec/arb_vertex_program/vp-arl-neg-array.shader_test new file mode 100644 index 000000000..ca7cb9342 --- /dev/null +++ b/tests/spec/arb_vertex_program/vp-arl-neg-array.shader_test @@ -0,0 +1,35 @@ +# Tests loading of a variable entry from a constant array with a negative +# offset. + +[require] +GL >= 1.3 +ARB_vertex_program +ARB_fragment_program + +[vertex program] +!!ARBvp1.0 +OPTION ARB_position_invariant; +PARAM vals[4] = { + {0.5, 1.0, 2.0, 0.0}, + {1.0, 0.0, 0.8, 0.0}, + {1.0, 0.0, 0.5, 0.0}, + {0.8, 1.0, 0.0, 0.0} + }; +ADDRESS A0; +ARL A0.x, program.local[0].x; +MOV result.color, vals[A0.x-3]; +END + +[fragment program] +!!ARBfp1.0 +MOV result.color, fragment.color; +END + +[test] +ortho 0 1 0 1 +parameter local_vp 0 (6, 0.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 + |