summaryrefslogtreecommitdiff
path: root/reference/xonotic-gl2/xonotic-glx-gl2-06.asm
diff options
context:
space:
mode:
Diffstat (limited to 'reference/xonotic-gl2/xonotic-glx-gl2-06.asm')
-rw-r--r--reference/xonotic-gl2/xonotic-glx-gl2-06.asm25
1 files changed, 9 insertions, 16 deletions
diff --git a/reference/xonotic-gl2/xonotic-glx-gl2-06.asm b/reference/xonotic-gl2/xonotic-glx-gl2-06.asm
index 71537bc..45a3f44 100644
--- a/reference/xonotic-gl2/xonotic-glx-gl2-06.asm
+++ b/reference/xonotic-gl2/xonotic-glx-gl2-06.asm
@@ -6,31 +6,24 @@
@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, 4, r0.x
bary.f r0.w, 5, r0.x
bary.f r1.x, 3, r0.x
bary.f r1.y, 2, r0.x
-mov.f32f32 r0.z, r0.z
-mov.f32f32 r0.w, r0.w
-bary.f r1.z, 1, r0.x
+bary.f r2.x, 1, r0.x
bary.f (ei)r0.x, 0, r0.x
-mov.f32f32 r0.y, r0.z
-mov.f32f32 r0.z, r0.w
-(rpt5)nop
-sam (f32)(xyzw)r1.w, r0.y, s#0, t#0
-(sy)(ss)mul.f r0.y, r1.x, r2.z
-mul.f r0.z, r1.y, r2.y
-mul.f r0.w, r1.z, r2.x
-mul.f r0.x, r0.x, r1.w
-mov.f32f32 r1.w, r0.y
-mov.f32f32 r1.z, r0.z
-mov.f32f32 r1.y, r0.w
-mov.f32f32 r1.x, r0.x
+(rpt1)nop
+sam (f32)(xyzw)r2.y, r0.z, s#0, t#0
+(sy)mul.f r1.w, r1.x, r3.x
+mul.f r1.z, r1.y, r2.w
+mul.f r1.y, r2.x, r2.z
+mul.f r1.x, r0.x, r2.y
end
nop
nop
nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs: r0.y (5:20,cm=f,il=8,b=1) r1.x (5:21,cm=f,il=12,b=1)
-; FRAG: 26 instructions, 0 half, 3 full
+; FRAG: 14 instructions, 0 half, 4 full