summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glasm/reg_alloc.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-08 21:46:32 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:30 +0200
commit3e841f6441903c6e97307dd49a2543ce82654044 (patch)
treed6fb26667d43589b17aba1c51017c420c5b2696c /src/shader_recompiler/backend/glasm/reg_alloc.cpp
parentglasm: Remove unused argument in identity instructions on GLASM (diff)
downloadyuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar
yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.gz
yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.bz2
yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.lz
yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.xz
yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.zst
yuzu-3e841f6441903c6e97307dd49a2543ce82654044.zip
Diffstat (limited to 'src/shader_recompiler/backend/glasm/reg_alloc.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/reg_alloc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.cpp b/src/shader_recompiler/backend/glasm/reg_alloc.cpp
index 55e8107e9..010ad0275 100644
--- a/src/shader_recompiler/backend/glasm/reg_alloc.cpp
+++ b/src/shader_recompiler/backend/glasm/reg_alloc.cpp
@@ -68,11 +68,11 @@ Id RegAlloc::Alloc() {
}
num_used_registers = std::max(num_used_registers, reg + 1);
register_use[reg] = true;
- return Id{
- .index = static_cast<u32>(reg),
- .is_spill = 0,
- .is_condition_code = 0,
- };
+ Id ret{};
+ ret.index.Assign(static_cast<u32>(reg));
+ ret.is_spill.Assign(0);
+ ret.is_condition_code.Assign(0);
+ return ret;
}
throw NotImplementedException("Register spilling");
}