python/regress: Add vertex shader source modifier tests.
authorMichal Krol <michal@vmware.com>
Fri, 3 Apr 2009 06:26:53 +0000 (08:26 +0200)
committerMichal Krol <michal@vmware.com>
Fri, 3 Apr 2009 06:27:50 +0000 (08:27 +0200)
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-abs.sh [new file with mode: 0644]
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-absneg.sh [new file with mode: 0644]
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-neg.sh [new file with mode: 0644]
src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-swz.sh [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-srcmod-abs.sh b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-abs.sh
new file mode 100644 (file)
index 0000000..6db417a
--- /dev/null
@@ -0,0 +1,15 @@
+VERT1.1
+
+DCL IN[0], POSITION
+DCL IN[1], COLOR
+DCL OUT[0], POSITION
+DCL OUT[1], COLOR
+DCL TEMP[0]
+
+IMM FLT32 { 0.1, 0.1, 0.0, 0.0 }
+
+ADD TEMP[0], IN[0], IMM[0]
+MOV OUT[0], |TEMP[0]|
+MOV OUT[1], IN[1]
+
+END
diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-absneg.sh b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-absneg.sh
new file mode 100644 (file)
index 0000000..fc83238
--- /dev/null
@@ -0,0 +1,16 @@
+VERT1.1
+
+DCL IN[0], POSITION
+DCL IN[1], COLOR
+DCL OUT[0], POSITION
+DCL OUT[1], COLOR
+DCL TEMP[0]
+
+IMM FLT32 { -0.2, -0.2, 0.0, 0.0 }
+
+ADD TEMP[0], IN[0], IMM[0]
+MOV OUT[0].xy, -|TEMP[0]|
+MOV OUT[0].zw, IN[0]
+MOV OUT[1], IN[1]
+
+END
diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-neg.sh b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-neg.sh
new file mode 100644 (file)
index 0000000..ce4e90b
--- /dev/null
@@ -0,0 +1,12 @@
+VERT1.1
+
+DCL IN[0], POSITION
+DCL IN[1], COLOR
+DCL OUT[0], POSITION
+DCL OUT[1], COLOR
+
+MOV OUT[0].xy, -IN[0]
+MOV OUT[0].zw, IN[0]
+MOV OUT[1], IN[1]
+
+END
diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-swz.sh b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vert-srcmod-swz.sh
new file mode 100644 (file)
index 0000000..7617b6d
--- /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]
+
+MOV OUT[0], IN[0].yxzw
+MOV OUT[1], IN[1]
+
+END
index 4a326faa88ea10fa27982af1ff55117a61b77030..7fc5f5ec514896bef286ea4fa749fb10f9e72724 100644 (file)
@@ -223,6 +223,10 @@ def main():
         'rsq',
         'sge',
         'slt',
+        'srcmod-abs',
+        'srcmod-absneg',
+        'srcmod-neg',
+        'srcmod-swz',
         'sub',
         'xpd',
     ]