mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-15 07:15:01 +00:00
Merge pull request #788 from bunnei/shader-check-zero
gl_shader_decompiler: Check if SetRegister result is ZeroIndex.
This commit is contained in:
commit
c2b4ff5d48
|
@ -488,6 +488,12 @@ private:
|
|||
*/
|
||||
void SetRegister(const Register& reg, u64 elem, const std::string& value,
|
||||
u64 dest_num_components, u64 value_num_components, u64 dest_elem) {
|
||||
if (reg == Register::ZeroIndex) {
|
||||
LOG_CRITICAL(HW_GPU, "Cannot set Register::ZeroIndex");
|
||||
UNREACHABLE();
|
||||
return;
|
||||
}
|
||||
|
||||
std::string dest = GetRegister(reg, static_cast<u32>(dest_elem));
|
||||
if (dest_num_components > 1) {
|
||||
dest += GetSwizzle(elem);
|
||||
|
|
Loading…
Reference in a new issue