summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/geometry-shader/add.txt
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-06-07 19:52:43 +0100
committerKeith Whitwell <[email protected]>2010-06-07 19:53:01 +0100
commitd095d95e77cb3a7a76962572c1056dcbb2056f07 (patch)
treefb8959f189776187bebeffd67fc708b8ce38c4c2 /src/gallium/tests/graw/geometry-shader/add.txt
parenta3dffd76d3408c6da089f467f5cc53b770dbcc86 (diff)
graw: add gs-test.c and some simple geometry shader examples
Diffstat (limited to 'src/gallium/tests/graw/geometry-shader/add.txt')
-rw-r--r--src/gallium/tests/graw/geometry-shader/add.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/geometry-shader/add.txt b/src/gallium/tests/graw/geometry-shader/add.txt
new file mode 100644
index 00000000000..d8c7c41e9bd
--- /dev/null
+++ b/src/gallium/tests/graw/geometry-shader/add.txt
@@ -0,0 +1,23 @@
+GEOM
+PROPERTY GS_INPUT_PRIMITIVE TRIANGLES
+PROPERTY GS_OUTPUT_PRIMITIVE LINE_STRIP
+DCL IN[][0], POSITION, CONSTANT
+DCL IN[][1], COLOR, CONSTANT
+DCL OUT[0], POSITION, CONSTANT
+DCL OUT[1], COLOR, CONSTANT
+
+MOV OUT[0], IN[0][0]
+ADD OUT[1], IN[0][1], IN[0][1]
+EMIT
+
+MOV OUT[0], IN[1][0]
+ADD OUT[1], IN[1][1], IN[1][1]
+EMIT
+
+MOV OUT[0], IN[2][0]
+ADD OUT[1], IN[2][1], IN[2][1]
+EMIT
+
+ENDPRIM
+
+END