diff options
Diffstat (limited to 'src/gallium/state_trackers')
4 files changed, 33 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-dp4.txt b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-dp4.txt new file mode 100644 index 00000000000..3e5f248bebc --- /dev/null +++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-dp4.txt @@ -0,0 +1,12 @@ +VERT1.1 +DCL IN[0], POSITION +DCL IN[1], COLOR +DCL OUT[0], POSITION +DCL OUT[1], COLOR +DCL TEMP[0] +IMM FLT32 { 0.0, 0.0, 1.0, 1.0 } +DP4 TEMP[0].xy, IN[0], IN[0] +MOV TEMP[0].zw, IMM[0] +MUL OUT[0], IN[0], TEMP[0] +MOV OUT[1], IN[1] +END diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-mul.txt b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-mul.txt new file mode 100644 index 00000000000..1289fcd2e2b --- /dev/null +++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-mul.txt @@ -0,0 +1,9 @@ +VERT1.1 +DCL IN[0], POSITION +DCL IN[1], COLOR +DCL OUT[0], POSITION +DCL OUT[1], COLOR +IMM FLT32 { 0.6, 0.6, 1.0, 1.0 } +MUL OUT[0], IN[0], IMM[0] +MOV OUT[1], IN[1] +END diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-sub.txt b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-sub.txt new file mode 100644 index 00000000000..9190086a22e --- /dev/null +++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-sub.txt @@ -0,0 +1,9 @@ +VERT1.1 +DCL IN[0], POSITION +DCL IN[1], COLOR +DCL OUT[0], POSITION +DCL OUT[1], COLOR +IMM FLT32 { 0.1, 0.1, 0.0, 0.0 } +SUB OUT[0], IN[0], IMM[0] +MOV OUT[1], IN[1] +END diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py index 92ff2053093..b393500742c 100644 --- a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py +++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py @@ -214,7 +214,10 @@ def main(): 'abs', 'add', 'dp3', + 'dp4', 'mov', + 'mul', + 'sub', ] html = '''<html> |