From bb142c965770e0f66eac5c7682defc7f26347a43 Mon Sep 17 00:00:00 2001 From: EmulationEnjoyer Date: Tue, 12 Nov 2024 21:49:49 +0000 Subject: [PATCH] shader/recompiler: Revert NVN storage buffer bias range - Return to original NVN bias values which better cover the full range of storage buffer accesses: - offset_begin: 0x110 -> 0x100 - offset_end: 0x610 -> 0x700 The wider range ensures we catch all valid storage buffer accesses while maintaining the same alignment requirements. ref: https://git.citron-emu.org/Citron/Citron/commit/2564e721df8b11e81df66c3fd5b04ae760e9550b --- .../ir_opt/global_memory_to_storage_buffer_pass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp index 0cea799455..2d4feca02c 100644 --- a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp +++ b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp @@ -372,8 +372,8 @@ void CollectStorageBuffers(IR::Block& block, IR::Inst& inst, StorageInfo& info) // avoid getting false positives static constexpr Bias nvn_bias{ .index = 0, - .offset_begin = 0x110, - .offset_end = 0x610, + .offset_begin = 0x100, + .offset_end = 0x700, .alignment = 16, }; // Track the low address of the instruction