summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Oliveira <igor.oliveira@openbossa.org>2010-01-19 19:29:29 -0400
committerMichal Krol <michal@vmware.com>2010-01-20 13:05:35 +0100
commitccdfcb31b96f4ac1c85f6962e8bafda1c4473bf4 (patch)
tree44fc524e66c1007be3775e933167a1d043066c00
parente2e4e4309494d7727485652d90fc91ad27a1655a (diff)
regress: add test to DFRACEXP and DLDEXP
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh22
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py1
2 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh
new file mode 100644
index 00000000000..3de53ebab55
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh
@@ -0,0 +1,22 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0..5]
+
+F2D TEMP[0], IN[0]
+F2D TEMP[1], IN[0].zwzw
+
+DFRACEXP TEMP[4], TEMP[5], TEMP[1]
+DLDEXP TEMP[1], TEMP[4], TEMP[5]
+
+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 d3e9f1dc0ad..afed4265c6f 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
@@ -195,6 +195,7 @@ def main():
'dslt',
'dsqrt',
'dmad',
+ 'ldexp-frexp',
'dp3',
'dp4',
'dst',