aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-04-01 10:18:50 +0200
committerMichal Krol <[email protected]>2009-04-01 10:34:05 +0200
commite8b5d170abdab9d3d750081e0371db5c3ce51c56 (patch)
tree8fd648c02b6ec7e132f5d2a361bdaf1394c933e4 /src
parent27d886ae33d287d91c92cc353f7b98f916b4d080 (diff)
python/regress: Add more vertex shader tests.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-dp4.txt12
-rw-r--r--src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-mul.txt9
-rw-r--r--src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-sub.txt9
-rw-r--r--src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py3
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>