From: notaz Date: Fri, 14 Oct 2022 21:37:43 +0000 (+0300) Subject: gpulib: update gpuinfo X-Git-Tag: r24~291 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d04b892423f6753c369fb1a8df641d39d04952bf;p=pcsx_rearmed.git gpulib: update gpuinfo according to nocash --- diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index bef297fb..32a797d5 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -126,17 +126,16 @@ static noinline void get_gpu_info(uint32_t data) case 0x02: case 0x03: case 0x04: - case 0x05: gpu.gp0 = gpu.ex_regs[data & 7] & 0xfffff; break; - case 0x06: - gpu.gp0 = gpu.ex_regs[5] & 0xfffff; + case 0x05: + gpu.gp0 = gpu.ex_regs[5] & 0x3fffff; break; case 0x07: gpu.gp0 = 2; break; default: - gpu.gp0 = 0; + // gpu.gp0 unchanged break; } }