shader_recompiler: fix for crash on inline sampler access

This commit is contained in:
psucien 2024-08-25 00:53:50 +02:00
parent 3e2ccabb5e
commit b2c05dc09d
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}