summaryrefslogtreecommitdiff
path: root/src/gallium/tests/graw/geometry-shader/multi-line.txt
blob: 0762d19cdd9e4b3c466faeea66047d2770f12541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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