summaryrefslogtreecommitdiff
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-02-16 19:49:45 -0300
committerGravatar ameerj2021-07-22 21:51:22 -0400
commit4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e (patch)
treefe6c5ce49cdbf521cf9a17032954d2b17c82d8c7 /src/shader_recompiler
parentshader: Add utility to resolve identities on a value (diff)
downloadyuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.gz
yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.tar.xz
yuzu-4b438f94cf56ac065cb3682a8e6ce1ea8df0ae7e.zip
shader: Simplify ISCADD
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/integer_scaled_add.cpp7
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) {
50} // Anonymous namespace 50} // Anonymous namespace
51 51
52void TranslatorVisitor::ISCADD_reg(u64 insn) { 52void TranslatorVisitor::ISCADD_reg(u64 insn) {
53 union { 53 ISCADD(*this, insn, GetReg20(insn));
54 u64 raw;
55 BitField<20, 8, IR::Reg> op_b;
56 } const iscadd{insn};
57
58 ISCADD(*this, insn, X(iscadd.op_b));
59} 54}
60 55
61void TranslatorVisitor::ISCADD_cbuf(u64) { 56void TranslatorVisitor::ISCADD_cbuf(u64) {