From 15ebc48383aa8160d12c47417d96dc0968c0fd6e Mon Sep 17 00:00:00 2001 From: starfrost013 Date: Mon, 3 Mar 2025 01:27:50 +0000 Subject: [PATCH] Raise the correct cache error on DEBUG_0 if lookup fails --- src/video/nv/nv3/subsystems/nv3_pramin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/nv/nv3/subsystems/nv3_pramin.c b/src/video/nv/nv3/subsystems/nv3_pramin.c index 25f6b36e1..ece982f0e 100644 --- a/src/video/nv/nv3/subsystems/nv3_pramin.c +++ b/src/video/nv/nv3/subsystems/nv3_pramin.c @@ -406,16 +406,16 @@ bool nv3_ramin_find_object(uint32_t name, uint32_t cache_num, uint8_t channel, u if (!found_object) { - nv3->pfifo.debug_0 |= NV3_PFIFO_CACHE0_ERROR_PENDING; - if (!cache_num) { + nv3->pfifo.debug_0 |= NV3_PFIFO_CACHE0_ERROR_PENDING; nv3->pfifo.cache0_settings.puller_control |= NV3_PFIFO_CACHE0_PULLER_CONTROL_HASH_FAILURE; //It turns itself off on failure, the drivers turn it back on nv3->pfifo.cache0_settings.puller_control &= ~NV3_PFIFO_CACHE0_PULLER_CONTROL_ENABLED; } else { + nv3->pfifo.debug_0 |= NV3_PFIFO_CACHE1_ERROR_PENDING; nv3->pfifo.cache1_settings.puller_control |= NV3_PFIFO_CACHE1_PULLER_CONTROL_HASH_FAILURE; //It turns itself off on failure, the drivers turn it back on nv3->pfifo.cache1_settings.puller_control &= ~NV3_PFIFO_CACHE1_PULLER_CONTROL_ENABLED;