graw: add frag-face shader
authorKeith Whitwell <keithw@vmware.com>
Sat, 18 Sep 2010 08:15:14 +0000 (09:15 +0100)
committerKeith Whitwell <keithw@vmware.com>
Sat, 18 Sep 2010 08:15:14 +0000 (09:15 +0100)
src/gallium/tests/python/tests/regress/fragment-shader/frag-face.sh [new file with mode: 0644]

diff --git a/src/gallium/tests/python/tests/regress/fragment-shader/frag-face.sh b/src/gallium/tests/python/tests/regress/fragment-shader/frag-face.sh
new file mode 100644 (file)
index 0000000..5745b6a
--- /dev/null
@@ -0,0 +1,14 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL IN[1], FACE, CONSTANT
+DCL OUT[0], COLOR
+DCL TEMP[0]
+IMM FLT32 { 0.5, 1.0, 0.0, 0.0 }
+
+MUL TEMP[0], IN[1].xxxx, IMM[0].xxxx
+ADD TEMP[0], TEMP[0], IMM[0].yyyy
+
+MOV OUT[0], TEMP[0]
+
+END