PS2: Don't pointlessly set W to 1

This commit is contained in:
UnknownShadow200 2025-05-04 12:17:52 +10:00
parent 1e414ac871
commit 323f87dfe6

View File

@ -33,8 +33,8 @@ FUNC LoadMvpMatrix
# Loads clipping scaling factors into VU0 registers
# $a0 = addresss of factors
FUNC LoadClipScaleFactors
lqc2 $vf5, 0x00($a0) # vf5 = factors
jr $ra
lqc2 $vf5, 0x00($a0) # vf5 = factors
# Loads viewport origin into VU0 registers
# $a0 = addresss of origin
@ -139,10 +139,6 @@ FUNC LoadViewportScale
# $a2 = address of tmp vertex
# $a3 = address of clip flags
FUNC TransformTexturedQuad
# LOAD 1.0 into W
lw $t0,ONE_VALUE # t0 = 1.0f
sw $t0,0x0C($a2) # tmp.w = f5
# LOAD VERTEX 1
ld $t0,0x00($a0) # t0 = src[0].x,y
sd $t0,0x00($a2) # tmp.x,y = t0
@ -179,10 +175,6 @@ FUNC TransformTexturedQuad
# $a2 = address of tmp vertex
# $a3 = address of clip flags
FUNC TransformColouredQuad
# LOAD 1.0 into W
lw $t0,ONE_VALUE # t0 = 1.0f
sw $t0,0x0C($a2) # tmp.w = f5
# LOAD VERTEX 1
ld $t0,0x00($a0) # t0 = src[0].x,y
sd $t0,0x00($a2) # tmp.x,y = t0
@ -213,9 +205,6 @@ FUNC TransformColouredQuad
TransformFinish
.global ONE_VALUE
ONE_VALUE: .float 1.0
# $a0 = addresss of src
# $a1 = addresss of dst