diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-16 23:49:45 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:22 +0200 |
commit | 4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e (patch) | |
tree | fe6c5ce49cdbf521cf9a17032954d2b17c82d8c7 | |
parent | shader: Add utility to resolve identities on a value (diff) | |
download | yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.gz yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.bz2 yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.lz yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.xz yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.zst yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.zip |
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp index f92c0bbd6..f06046d4d 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp @@ -50,12 +50,7 @@ void ISCADD(TranslatorVisitor& v, u64 insn, IR::U32 op_b) { } // Anonymous namespace void TranslatorVisitor::ISCADD_reg(u64 insn) { - union { - u64 raw; - BitField<20, 8, IR::Reg> op_b; - } const iscadd{insn}; - - ISCADD(*this, insn, X(iscadd.op_b)); + ISCADD(*this, insn, GetReg20(insn)); } void TranslatorVisitor::ISCADD_cbuf(u64) { |