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;
|
return true;
|
||||||
}
|
}
|
||||||
// Samplers with different bindings might still be the same.
|
// Samplers with different bindings might still be the same.
|
||||||
const auto old_sharp =
|
return existing.GetSsharp(info) == desc.GetSsharp(info);
|
||||||
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 index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue