python/regress: Add more vertex shader tests.
authorMichal Krol <michal@vmware.com>
Wed, 1 Apr 2009 08:18:50 +0000 (10:18 +0200)
committerMichal Krol <michal@vmware.com>
Wed, 1 Apr 2009 08:34:05 +0000 (10:34 +0200)
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-dp4.txt [new file with mode: 0644]
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-mul.txt [new file with mode: 0644]
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-sub.txt [new file with mode: 0644]
src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py

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 (file)
index 0000000..3e5f248
--- /dev/null
@@ -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 (file)
index 0000000..1289fcd
--- /dev/null
@@ -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 (file)
index 0000000..9190086
--- /dev/null
@@ -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
index 92ff20530937f31d6b4ba2e5ebe9981147f88ce3..b393500742cc6de4328b53a8f18232ee3f85038a 100644 (file)
@@ -214,7 +214,10 @@ def main():
         'abs',
         'add',
         'dp3',
+        'dp4',
         'mov',
+        'mul',
+        'sub',
     ]
     
     html = '''<html>