mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-08-04 03:07:07 -04:00
PS2: Don't pointlessly set W to 1
This commit is contained in:
parent
1e414ac871
commit
323f87dfe6
@ -33,8 +33,8 @@ FUNC LoadMvpMatrix
|
|||||||
# Loads clipping scaling factors into VU0 registers
|
# Loads clipping scaling factors into VU0 registers
|
||||||
# $a0 = addresss of factors
|
# $a0 = addresss of factors
|
||||||
FUNC LoadClipScaleFactors
|
FUNC LoadClipScaleFactors
|
||||||
lqc2 $vf5, 0x00($a0) # vf5 = factors
|
|
||||||
jr $ra
|
jr $ra
|
||||||
|
lqc2 $vf5, 0x00($a0) # vf5 = factors
|
||||||
|
|
||||||
# Loads viewport origin into VU0 registers
|
# Loads viewport origin into VU0 registers
|
||||||
# $a0 = addresss of origin
|
# $a0 = addresss of origin
|
||||||
@ -139,10 +139,6 @@ FUNC LoadViewportScale
|
|||||||
# $a2 = address of tmp vertex
|
# $a2 = address of tmp vertex
|
||||||
# $a3 = address of clip flags
|
# $a3 = address of clip flags
|
||||||
FUNC TransformTexturedQuad
|
FUNC TransformTexturedQuad
|
||||||
# LOAD 1.0 into W
|
|
||||||
lw $t0,ONE_VALUE # t0 = 1.0f
|
|
||||||
sw $t0,0x0C($a2) # tmp.w = f5
|
|
||||||
|
|
||||||
# LOAD VERTEX 1
|
# LOAD VERTEX 1
|
||||||
ld $t0,0x00($a0) # t0 = src[0].x,y
|
ld $t0,0x00($a0) # t0 = src[0].x,y
|
||||||
sd $t0,0x00($a2) # tmp.x,y = t0
|
sd $t0,0x00($a2) # tmp.x,y = t0
|
||||||
@ -179,10 +175,6 @@ FUNC TransformTexturedQuad
|
|||||||
# $a2 = address of tmp vertex
|
# $a2 = address of tmp vertex
|
||||||
# $a3 = address of clip flags
|
# $a3 = address of clip flags
|
||||||
FUNC TransformColouredQuad
|
FUNC TransformColouredQuad
|
||||||
# LOAD 1.0 into W
|
|
||||||
lw $t0,ONE_VALUE # t0 = 1.0f
|
|
||||||
sw $t0,0x0C($a2) # tmp.w = f5
|
|
||||||
|
|
||||||
# LOAD VERTEX 1
|
# LOAD VERTEX 1
|
||||||
ld $t0,0x00($a0) # t0 = src[0].x,y
|
ld $t0,0x00($a0) # t0 = src[0].x,y
|
||||||
sd $t0,0x00($a2) # tmp.x,y = t0
|
sd $t0,0x00($a2) # tmp.x,y = t0
|
||||||
@ -213,9 +205,6 @@ FUNC TransformColouredQuad
|
|||||||
|
|
||||||
TransformFinish
|
TransformFinish
|
||||||
|
|
||||||
.global ONE_VALUE
|
|
||||||
ONE_VALUE: .float 1.0
|
|
||||||
|
|
||||||
|
|
||||||
# $a0 = addresss of src
|
# $a0 = addresss of src
|
||||||
# $a1 = addresss of dst
|
# $a1 = addresss of dst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user