diff options
author | Eric Anholt <eric@anholt.net> | 2011-01-07 14:24:41 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-01-07 14:25:38 -0800 |
commit | 7bc2602f2921596cc9bb7a401612276a2dce00e6 (patch) | |
tree | 34064abb599e1d060095433cb659412ee654bb64 /tests/shaders/generic | |
parent | 439224b438d301b0db8e9a550d41f3dfd9c611fd (diff) |
vp-constant-negate: New test for bug #30156 in Civ4 on i965.
Diffstat (limited to 'tests/shaders/generic')
-rw-r--r-- | tests/shaders/generic/vp-constant-negate.vpfp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/shaders/generic/vp-constant-negate.vpfp b/tests/shaders/generic/vp-constant-negate.vpfp new file mode 100644 index 00000000..b33f9f1f --- /dev/null +++ b/tests/shaders/generic/vp-constant-negate.vpfp @@ -0,0 +1,22 @@ +; Checks for a bug in the 965 driver in handling negation of constants. + +!!ARBvp1.0 +OPTION ARB_position_invariant; + +TEMP temp1, temp2; +MOV temp1, 2.0; +MOV temp2, -2.0; +ADD temp1, temp1, temp2; +ABS temp1, temp1; +SLT temp1, -temp1, {0.0}; +MOV result.color, {0.0, 1.0, 0.0, 0.0}; +MOV result.color.x, temp1; +END + +!!ARBfp1.0 +MOV result.color, fragment.color; +END + +!!test +expected 0.0 1.0 0.0 0.0 + |