Browse Source

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: 2564e721df
nce_cpp
EmulationEnjoyer 1 year ago
committed by MrPurple666
parent
commit
cb135ba86f
  1. 4
      src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp

4
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 // avoid getting false positives
static constexpr Bias nvn_bias{ static constexpr Bias nvn_bias{
.index = 0, .index = 0,
.offset_begin = 0x110,
.offset_end = 0x610,
.offset_begin = 0x100,
.offset_end = 0x700,
.alignment = 16, .alignment = 16,
}; };
// Track the low address of the instruction // Track the low address of the instruction

Loading…
Cancel
Save