From 631e6f284702250d609d34d56ba2278bac2fa637 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 30 Jun 2011 02:03:25 +0300 Subject: [PATCH] gte: fix MAC0 shift (pcsxr issue #8874, shalma) fixes missing elements in Soul Reaver and Spyro. --- libpcsxcore/gte.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() { -- 2.39.5