mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
shader_recompiler: fix for crash on inline sampler access
This commit is contained in:
parent
3e2ccabb5e
commit
b2c05dc09d
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue