summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Oliveira <igor.oliveira@openbossa.org>2010-01-18 14:49:59 -0400
committerMichal Krol <michal@vmware.com>2010-01-19 13:34:05 +0100
commit108be6b3a404987d20275abfc2f04e3eb1b9fcb8 (patch)
treeba15259a49c7c8df1c1bf5ef2a113ce2202b7d1a
parent2b0a3d7ac70ee356b0f9b25ba85ab999a87592f4 (diff)
regress: add dmad test
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmad.sh30
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py1
2 files changed, 31 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmad.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmad.sh
new file mode 100644
index 0000000000..13e25ff753
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dmad.sh
@@ -0,0 +1,30 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0..7]
+
+IMM FLT32 { 0.5, 0.4, 0.6, 1.0 }
+IMM FLT32 { 0.5, 0.4, 0.6, 0.0 }
+
+F2D TEMP[0], IN[0]
+F2D TEMP[1], IN[0].zwzw
+F2D TEMP[4], IMM[0]
+F2D TEMP[5], IMM[0].zwzw
+F2D TEMP[6], IMM[1]
+F2D TEMP[7], IMM[1].zwzw
+
+DMAD TEMP[0], TEMP[0], TEMP[4], TEMP[6]
+DMAD TEMP[1], TEMP[1], TEMP[5], TEMP[7]
+
+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].zzxz
+MOV OUT[0].w, TEMP[1].xxxx
+
+
+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 4372c4ad4b..ee7e3ad1cf 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
@@ -193,6 +193,7 @@ def main():
'dsge',
'dslt',
'dsqrt',
+ 'dmad',
'dp3',
'dp4',
'dst',