From: notaz Date: Wed, 29 Jun 2011 23:03:25 +0000 (+0300) Subject: gte: fix MAC0 shift (pcsxr issue #8874, shalma) X-Git-Tag: r9~49 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=631e6f284702250d609d34d56ba2278bac2fa637;p=pcsx_rearmed.git gte: fix MAC0 shift (pcsxr issue #8874, shalma) fixes missing elements in Soul Reaver and Spyro. --- diff --git a/libpcsxcore/gte.c b/libpcsxcore/gte.c index ec173b56..7efe7cfb 100644 --- a/libpcsxcore/gte.c +++ b/libpcsxcore/gte.c @@ -377,8 +377,8 @@ void gteRTPS() { gteSX2 = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16); gteSY2 = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16); - gteMAC0 = F((s64)(gteDQB + ((s64)gteDQA * quotient)) >> 12); - gteIR0 = limH(gteMAC0); + gteMAC0 = F((s64)gteDQB + ((s64)gteDQA * quotient)); + gteIR0 = limH(gteMAC0 >> 12); } void gteRTPT() { @@ -407,8 +407,8 @@ void gteRTPT() { fSX(v) = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16); fSY(v) = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16); } - gteMAC0 = F((s64)(gteDQB + ((s64)gteDQA * quotient)) >> 12); - gteIR0 = limH(gteMAC0); + gteMAC0 = F((s64)gteDQB + ((s64)gteDQA * quotient)); + gteIR0 = limH(gteMAC0 >> 12); } void gteMVMVA() {