diff options
-rw-r--r-- | src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-dfrac.sh | 29 | ||||
-rw-r--r-- | src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py | 1 |
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', |