summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-01 06:25:15 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:22 +0200
commitbec7d3111d3de2a7a8384b1e761bc3692afef9c7 (patch)
tree9439129aa03a181b411da1da2a8cf28e6f5b5d79 /src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp
parentshader: Implement ICMP (diff)
downloadyuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.tar
yuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.tar.gz
yuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.tar.bz2
yuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.tar.lz
yuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.tar.xz
yuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.tar.zst
yuzu-bec7d3111d3de2a7a8384b1e761bc3692afef9c7.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp
index 25fc6b437..93baa75a9 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp
@@ -13,13 +13,13 @@ void SEL(TranslatorVisitor& v, u64 insn, const IR::U32& src) {
union {
u64 raw;
BitField<0, 8, IR::Reg> dest_reg;
- BitField<8, 8, IR::Reg> op_a;
+ BitField<8, 8, IR::Reg> src_reg;
BitField<39, 3, IR::Pred> pred;
BitField<42, 1, u64> neg_pred;
} const sel{insn};
const IR::U1 pred = v.ir.GetPred(sel.pred);
- IR::U32 op_a{v.X(sel.op_a)};
+ IR::U32 op_a{v.X(sel.src_reg)};
IR::U32 op_b{src};
if (sel.neg_pred != 0) {
std::swap(op_a, op_b);