summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2010-06-09 11:44:19 -0400
committerZack Rusin <zack@kde.org>2010-06-09 11:44:19 -0400
commitd27d45a2df3817076351278632b00db85b5e61b2 (patch)
treebe265e433dd77f8d6b5836b3fb77af691747d93b /src
parentdb7ed20730a7329c902352cac99686cbcc6611bf (diff)
graw: add a multiple primitive geometry shader test
Diffstat (limited to 'src')
-rw-r--r--src/gallium/tests/graw/geometry-shader/multi-line.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/geometry-shader/multi-line.txt b/src/gallium/tests/graw/geometry-shader/multi-line.txt
new file mode 100644
index 0000000000..0762d19cdd
--- /dev/null
+++ b/src/gallium/tests/graw/geometry-shader/multi-line.txt
@@ -0,0 +1,42 @@
+GEOM
+PROPERTY GS_INPUT_PRIMITIVE TRIANGLES
+PROPERTY GS_OUTPUT_PRIMITIVE LINE_STRIP
+PROPERTY GS_MAX_OUTPUT_VERTICES 8
+DCL IN[][0], POSITION, CONSTANT
+DCL IN[][1], COLOR, CONSTANT
+DCL OUT[0], POSITION, CONSTANT
+DCL OUT[1], COLOR, CONSTANT
+DCL TEMP[0]
+
+MOV TEMP[0], IN[0][0]
+ADD TEMP[0].y, IN[0][0], IN[1][0]
+
+MOV OUT[0], TEMP[0]
+MOV OUT[1], IN[0][1]
+EMIT
+MOV OUT[0], IN[2][0]
+MOV OUT[1], IN[0][1]
+EMIT
+MOV OUT[0], IN[0][0]
+MOV OUT[1], IN[2][1]
+EMIT
+MOV OUT[0], TEMP[0]
+MOV OUT[1], IN[0][1]
+EMIT
+ENDPRIM
+
+MOV OUT[0], TEMP[0]
+MOV OUT[1], IN[0][1]
+EMIT
+MOV OUT[0], IN[2][0]
+MOV OUT[1], IN[0][1]
+EMIT
+MOV OUT[0], IN[1][0]
+MOV OUT[1], IN[2][1]
+EMIT
+MOV OUT[0], TEMP[0]
+MOV OUT[1], IN[0][1]
+EMIT
+ENDPRIM
+
+END