mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-01 15:02:40 +00:00
shader_recompiler: fix for crash on inline sampler access
This commit is contained in:
parent
3e2ccabb5e
commit
b2c05dc09d
@ -246,10 +246,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
// Samplers with different bindings might still be the same.
|
||||
const auto old_sharp =
|
||||
info.ReadUd<AmdGpu::Sampler>(existing.sgpr_base, existing.dword_offset);
|
||||
const auto new_sharp = info.ReadUd<AmdGpu::Sampler>(desc.sgpr_base, desc.dword_offset);
|
||||
return old_sharp == new_sharp;
|
||||
return existing.GetSsharp(info) == desc.GetSsharp(info);
|
||||
})};
|
||||
return index;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user