Mesa (gallium-double-opcodes): regress: Add tests for DABS and DNEG, remove test for DMOV.

Michał Król michal at kemper.freedesktop.org
Tue Jan 19 05:14:07 PST 2010


Module: Mesa
Branch: gallium-double-opcodes
Commit: d6f3c8c62a159f34679b64050e3d50b468139700
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6f3c8c62a159f34679b64050e3d50b468139700

Author: Michal Krol <michal at vmware.com>
Date:   Tue Jan 19 14:03:10 2010 +0100

regress: Add tests for DABS and DNEG, remove test for DMOV.

---

 .../fragment-shader/{frag-dmov.sh => frag-dabs.sh} |    8 ++++----
 .../fragment-shader/{frag-dmov.sh => frag-dneg.sh} |    8 ++++----
 .../regress/fragment-shader/fragment-shader.py     |    3 ++-
 3 files changed, 10 insertions(+), 9 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
similarity index 68%
copy from src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.sh
copy to src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dabs.sh
index c94c410..5bbabe1 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-dmov.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dneg.sh
similarity index 68%
rename from src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.sh
rename to src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dneg.sh
index c94c410..ea4e2e2 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-dneg.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
+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]
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 ee7e3ad..d3e9f1d 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',



More information about the mesa-commit mailing list