diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2009-10-20 10:54:39 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-10-20 12:19:23 -0700 |
commit | e98ccec6ef6ed8dc6eea854f522934d79a265163 (patch) | |
tree | e023e430ded4bc970b4d7f94eef59f80150d5772 /tests/shaders/generic | |
parent | 7cc947e5e15912dac419867b9e6a0f44c2232025 (diff) |
Add simple ARL shader test
Diffstat (limited to 'tests/shaders/generic')
-rw-r--r-- | tests/shaders/generic/arl.vpfp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/shaders/generic/arl.vpfp b/tests/shaders/generic/arl.vpfp new file mode 100644 index 00000000..4a639122 --- /dev/null +++ b/tests/shaders/generic/arl.vpfp @@ -0,0 +1,23 @@ +; Detects whether or not the implementation correctly uses floor() for ARL +; or incorrectly uses round(). + +!!ARBvp1.0 +OPTION ARB_position_invariant; + +ADDRESS A0; +PARAM p[2] = { program.local[0..1] }; + +ARL A0.x, program.local[2].x; +MOV result.color, p[A0.x]; +END + +!!ARBfp1.0 +MOV result.color, fragment.color; +END + +!!test +vertex.local[0] 0.0 1.0 0.0 1.0 +vertex.local[1] 1.0 0.0 0.0 1.0 +vertex.local[2] 0.99999 0.0 0.0 0.0 +expected 0.0 1.0 0.0 1.0 + |