summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Oliveira <igor.oliveira@openbossa.org>2010-01-20 04:45:36 -0400
committerMichal Krol <michal@vmware.com>2010-01-20 13:05:38 +0100
commit37228422b320474ed743ae7a1878f3109d0a6059 (patch)
treebb88a6fae8632ad8ca3409184461c9bc9109fb43
parentccdfcb31b96f4ac1c85f6962e8bafda1c4473bf4 (diff)
regress: add DFRAC testgallium-double-opcodes
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dfrac.sh29
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py1
2 files changed, 30 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dfrac.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dfrac.sh
new file mode 100644
index 0000000000..dc20c1fa3b
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dfrac.sh
@@ -0,0 +1,29 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0..5]
+
+IMM FLT32 { 2.7, 3.1, 4.5, 1.0 }
+
+F2D TEMP[0], IN[0]
+F2D TEMP[1], IN[0].zwzw
+F2D TEMP[4], IMM[0]
+F2D TEMP[5], IMM[0].zwzw
+
+DMUL TEMP[0], TEMP[0], TEMP[4]
+DMUL TEMP[1], TEMP[1], TEMP[5]
+DFRAC TEMP[0], TEMP[0]
+DFRAC TEMP[1], TEMP[1]
+
+MOV TEMP[2].zw, TEMP[0]
+MOV 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 afed4265c6..a6c79f5325 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
@@ -196,6 +196,7 @@ def main():
'dsqrt',
'dmad',
'ldexp-frexp',
+ 'dfrac',
'dp3',
'dp4',
'dst',