diff options
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/gte.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libpcsxcore/gte.c b/libpcsxcore/gte.c index 11568575..22000b4a 100644 --- a/libpcsxcore/gte.c +++ b/libpcsxcore/gte.c @@ -265,10 +265,11 @@ static inline void MTC2(unsigned long value, int reg) { break; case 30: - { + {
+ int a; gteLZCS = value; - int a = gteLZCS; + a = gteLZCS; if (a > 0) { int i; for (i = 31; (a & (1 << i)) == 0 && i >= 0; i--); @@ -643,16 +644,15 @@ void gteOP() { void gteDCPL() { int shift = 12 * GTE_SF(gteop); int lm = GTE_LM(gteop); + s64 iR = (gteR << 4) * gteIR1;
+ s64 iG = (gteG << 4) * gteIR2;
+ s64 iB = (gteB << 4) * gteIR3;
#ifdef GTE_LOG GTE_LOG("DCPL\n"); #endif gteFLAG = 0; - s64 iR = (gteR << 4) * gteIR1; - s64 iG = (gteG << 4) * gteIR2; - s64 iB = (gteB << 4) * gteIR3; - gteMAC1 = A1(iR + gteIR0 * Lm_B1(gteRFC - iR, 0)) >> shift; gteMAC2 = A2(iG + gteIR0 * Lm_B1(gteGFC - iG, 0)) >> shift; gteMAC3 = A3(iB + gteIR0 * Lm_B1(gteBFC - iB, 0)) >> shift; |
