From 08b333774702ffc2d6a61bb0c8d690d9946a65c7 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 15 Oct 2022 00:37:43 +0300 Subject: [PATCH] gpulib: update gpuinfo according to nocash --- plugins/gpulib/gpu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index d08b2b50..797431c0 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -134,17 +134,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; } } -- 2.39.5