summaryrefslogtreecommitdiff
path: root/reference/tex-clamp1.asm
blob: a0c4c2cbd713d11b61367066fe2eee185fc14479 (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
; options:
; FRAG: new compiler
@in(r0.x)	in0
@in(r0.y)	in1
@out(r1.x)	out0
@out(r1.y)	out1
@out(r1.z)	out2
@out(r1.w)	out3
@const(c0.x)	0x00000000, 0x00000000, 0x00000000, 0x00000000
(sy)(ss)bary.f r0.z, 7, r0.x
bary.f r0.w, 4, r0.x
mov.f32f32 r1.x, (0.000000)
bary.f r1.y, 3, r0.x
bary.f r1.z, 2, r0.x
bary.f r2.x, 1, r0.x
bary.f (ei)r0.x, 0, r0.x
(rpt1)nop
sam.p (f32)(xyzw)r0.y, r0.z, s#0, t#0
(sy)mul.f r1.w, r1.y, r1.x
mul.f r1.z, r0.w, r1.z
mul.f r1.y, r0.z, r2.x
(ss)mul.f r1.x, r0.y, r0.x
end
nop
nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs: r0.z (1:0,cm=f,il=8,b=1) r63.w (5:0,cm=f,il=12,b=1)
; FRAG: 15 instructions, 0 half, 3 full