From a9d21581a2f51ff28b0c08e771116484d59f0b84 Mon Sep 17 00:00:00 2001 From: Igor Oliveira Date: Tue, 19 Jan 2010 19:29:29 -0400 Subject: regress: add test to DFRACEXP and DLDEXP --- .../regress/fragment-shader/frag-ldexp-frexp.sh | 22 ++++++++++++++++++++++ .../tests/regress/vertex-shader/vertex-shader.py | 1 + 2 files changed, 23 insertions(+) create mode 100644 src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh 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', -- cgit v1.2.3