summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-25 07:46:14 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:53 +0100
commitc68c13e1aaef63674474861fd7be528a49b72206 (patch)
treeb5f3a340f94dde88e86679031c293cbff0735cdb /src/video_core
parentglsl_decompiler: Fixup TLDS (diff)
downloadyuzu-c68c13e1aaef63674474861fd7be528a49b72206.tar
yuzu-c68c13e1aaef63674474861fd7be528a49b72206.tar.gz
yuzu-c68c13e1aaef63674474861fd7be528a49b72206.tar.bz2
yuzu-c68c13e1aaef63674474861fd7be528a49b72206.tar.lz
yuzu-c68c13e1aaef63674474861fd7be528a49b72206.tar.xz
yuzu-c68c13e1aaef63674474861fd7be528a49b72206.tar.zst
yuzu-c68c13e1aaef63674474861fd7be528a49b72206.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/decode/register_set_predicate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/register_set_predicate.cpp b/src/video_core/shader/decode/register_set_predicate.cpp
index bbfe2ce05..06a3c7539 100644
--- a/src/video_core/shader/decode/register_set_predicate.cpp
+++ b/src/video_core/shader/decode/register_set_predicate.cpp
@@ -37,10 +37,11 @@ u32 ShaderIR::DecodeRegisterSetPredicate(BasicBlock& bb, u32 pc) {
const Node apply_compare =
Operation(OperationCode::UBitwiseAnd, NO_PRECISE, apply_mask, shift);
- const Node condition = Operation(OperationCode::LogicalUEqual, apply_compare, Immediate(0));
+ const Node condition =
+ Operation(OperationCode::LogicalUNotEqual, apply_compare, Immediate(0));
const Node value_compare = Operation(OperationCode::UBitwiseAnd, NO_PRECISE, mask, shift);
- const Node value = Operation(OperationCode::LogicalUEqual, value_compare, Immediate(0));
+ const Node value = Operation(OperationCode::LogicalUNotEqual, value_compare, Immediate(0));
const Node code = Operation(OperationCode::LogicalAssign, GetPredicate(pred), value);
bb.push_back(Conditional(condition, {code}));