summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-01-11 20:52:05 +0100
committerMichal Krol <michal@vmware.com>2010-01-11 20:52:05 +0100
commit23e7187f40569d8d0e24413de5ccb620b6c1a98d (patch)
tree8fc22e1c9afb6cd1dd1aced885626a58519c4348
parent64fe8f524cb04287241f3a54d9d6cc441412df65 (diff)
regress: Add fragment shader F2D, DADD, DMOV opcode tests.
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dadd.sh15
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.sh18
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-f2d.sh14
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py3
4 files changed, 50 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dadd.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dadd.sh
new file mode 100644
index 00000000000..54d8358eaad
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dadd.sh
@@ -0,0 +1,15 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0..1]
+
+F2D TEMP[0], IN[0]
+F2D TEMP[1], IN[0].zwzw
+DADD TEMP[0], TEMP[0], TEMP[0]
+DADD TEMP[1], TEMP[1], TEMP[1]
+D2F OUT[0].xy, TEMP[0]
+D2F TEMP[1].xy, TEMP[1]
+MOV OUT[0].zw, TEMP[1].xyxy
+
+END
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-dmov.sh
new file mode 100644
index 00000000000..c94c410099d
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmov.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
+DMOV TEMP[2].zw, TEMP[0]
+DMOV 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/frag-f2d.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-f2d.sh
new file mode 100644
index 00000000000..86965cf5889
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-f2d.sh
@@ -0,0 +1,14 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0..1]
+
+F2D TEMP[0], IN[0]
+F2D TEMP[1], IN[0].zwzw
+D2F TEMP[0].xy, TEMP[0]
+D2F TEMP[1].xy, TEMP[1]
+MOV OUT[0].xy, TEMP[0]
+MOV OUT[0].zw, TEMP[1].xyxy
+
+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 8d3bf9d4d7e..9f3edc0f7c4 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,10 +184,13 @@ def main():
tests = [
'abs',
'add',
+ 'dadd',
+ 'dmov',
'dp3',
'dp4',
'dst',
'ex2',
+ 'f2d',
'flr',
'frc',
'lg2',