diff options
author | Michal Krol <michal@vmware.com> | 2010-01-19 14:03:10 +0100 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2010-01-19 14:03:10 +0100 |
commit | d6f3c8c62a159f34679b64050e3d50b468139700 (patch) | |
tree | 01e715949c39a2c2db17f1725e28ee234eea3ccc | |
parent | 80f8fb85a89b1ed89d5f7da3eab497d25a4fddf8 (diff) |
regress: Add tests for DABS and DNEG, remove test for DMOV.
-rw-r--r-- | src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dabs.sh (renamed from src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.sh) | 8 | ||||
-rw-r--r-- | src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dneg.sh | 18 | ||||
-rw-r--r-- | src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py | 3 |
3 files changed, 24 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dabs.sh index c94c410099..5bbabe10ab 100644 --- a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.sh +++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dabs.sh @@ -4,10 +4,10 @@ DCL IN[0], COLOR, LINEAR DCL OUT[0], COLOR DCL TEMP[0..3] -F2D TEMP[0], IN[0] -F2D TEMP[1], IN[0].zwzw -DMOV TEMP[2].zw, TEMP[0] -DMOV TEMP[3].xy, TEMP[1].zwzw +F2D TEMP[0], -IN[0] +F2D TEMP[1], -IN[0].zwzw +DABS TEMP[2].zw, TEMP[0] +DABS TEMP[3].xy, TEMP[1].zwzw D2F OUT[0].x, TEMP[0] D2F OUT[0].y, TEMP[2] D2F TEMP[0].x, TEMP[1] diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dneg.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dneg.sh new file mode 100644 index 0000000000..ea4e2e2ebd --- /dev/null +++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dneg.sh @@ -0,0 +1,18 @@ +FRAG + +DCL IN[0], COLOR, LINEAR +DCL OUT[0], COLOR +DCL TEMP[0..3] + +F2D TEMP[0], -IN[0] +F2D TEMP[1], -IN[0].zwzw +DNEG TEMP[2].zw, TEMP[0] +DNEG TEMP[3].xy, TEMP[1].zwzw +D2F OUT[0].x, TEMP[0] +D2F OUT[0].y, TEMP[2] +D2F TEMP[0].x, TEMP[1] +D2F TEMP[1].x, TEMP[3] +MOV OUT[0].z, TEMP[0].xyxw +MOV OUT[0].w, TEMP[1].xyzx + +END diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py b/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py index ee7e3ad1cf..d3e9f1dc0a 100644 --- a/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py +++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py @@ -184,12 +184,13 @@ def main(): tests = [ 'abs', 'add', + 'dabs', 'dadd', - 'dmov', 'ddiv', 'dmax', 'dmin', 'dmul', + 'dneg', 'dsge', 'dslt', 'dsqrt', |