summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-24 06:36:47 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:53 +0100
commit55a10d02e571532bba7a2a7af605a4cda2743d6d (patch)
treeffec97ac9398fce1ddf44363caa504c1627bd86a /src/video_core/shader
parentshader_decode: Fixup clang-format (diff)
downloadyuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.tar
yuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.tar.gz
yuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.tar.bz2
yuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.tar.lz
yuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.tar.xz
yuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.tar.zst
yuzu-55a10d02e571532bba7a2a7af605a4cda2743d6d.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/predicate_set_register.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/predicate_set_register.cpp b/src/video_core/shader/decode/predicate_set_register.cpp
index 04ddd9f9e..6c58496c2 100644
--- a/src/video_core/shader/decode/predicate_set_register.cpp
+++ b/src/video_core/shader/decode/predicate_set_register.cpp
@@ -26,11 +26,12 @@ u32 ShaderIR::DecodePredicateSetRegister(BasicBlock& bb, u32 pc) {
const Node second_pred = GetPredicate(instr.pset.pred39, instr.pset.neg_pred39 != 0);
const OperationCode combiner = GetPredicateCombiner(instr.pset.op);
- const Node result = Operation(combiner, first_pred, second_pred);
+ const Node predicate = Operation(combiner, first_pred, second_pred);
const Node true_value = instr.pset.bf ? Immediate(1.0f) : Immediate(0xffffffff);
const Node false_value = instr.pset.bf ? Immediate(0.0f) : Immediate(0);
- const Node value = Operation(OperationCode::Select, PRECISE, true_value, false_value);
+ const Node value =
+ Operation(OperationCode::Select, PRECISE, predicate, true_value, false_value);
SetRegister(bb, instr.gpr0, value);
return pc;