From e98ccec6ef6ed8dc6eea854f522934d79a265163 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 20 Oct 2009 10:54:39 -0700 Subject: Add simple ARL shader test --- tests/shaders/generic/arl.vpfp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/shaders/generic/arl.vpfp (limited to 'tests/shaders/generic') 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 + -- cgit v1.2.3