summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Oliveira <igor.oliveira@openbossa.org>2010-01-19 19:29:29 -0400
committerIgor Oliveira <igor.oliveira@openbossa.org>2010-09-29 23:07:26 -0400
commita9d21581a2f51ff28b0c08e771116484d59f0b84 (patch)
tree57d9e4c9646c908c8f4856c4a03939c244e84245
parent2274bbcd34fb45c88c81772d2da2749c47decb09 (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/tests/python/tests/regress/vertex-shader/vertex-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 0000000000..3de53ebab5
--- /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/tests/python/tests/regress/vertex-shader/vertex-shader.py b/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py
index 5adccebdff..89facc01a7 100644
--- a/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py
+++ b/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py
@@ -264,6 +264,7 @@ def main():
'dslt',
'dsqrt',
'dmad',
+ 'ldexp-frexp',
'dp3',
'dp4',
'dst',