summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/vertex-shader/vert-rcp.sh
blob: 8843fe571aed765f29781fe91a33acce114f0078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
VERT

DCL IN[0]
DCL IN[1]
DCL OUT[0], POSITION
DCL OUT[1], COLOR

DCL TEMP[0]

IMM[0] FLT32 { 1.0, 0.0, 0.0, 0.0 }
IMM[1] FLT32 { 1.5, 0.0, 0.0, 0.0 }

ADD TEMP[0], IN[0], IMM[0]
RCP TEMP[0].x, TEMP[0].xxxx
SUB OUT[0], TEMP[0], IMM[1]
MOV OUT[1], IN[1]

END