From ea78c78253c6183938da6fc87bc763ed93957499 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 24 Dec 2018 18:13:50 -0300 Subject: shader_decode: Fixup WriteLogicOperation zero comparison --- src/video_core/shader/decode/arithmetic_integer_immediate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_core/shader/decode/arithmetic_integer_immediate.cpp b/src/video_core/shader/decode/arithmetic_integer_immediate.cpp index a158d345a..3b8a60c6b 100644 --- a/src/video_core/shader/decode/arithmetic_integer_immediate.cpp +++ b/src/video_core/shader/decode/arithmetic_integer_immediate.cpp @@ -89,7 +89,7 @@ void ShaderIR::WriteLogicOperation(BasicBlock& bb, Register dest, LogicOperation return; case PredicateResultMode::NotZero: { // Set the predicate to true if the result is not zero. - const Node compare = Operation(OperationCode::LogicalIEqual, result, Immediate(0)); + const Node compare = Operation(OperationCode::LogicalINotEqual, result, Immediate(0)); SetPredicate(bb, static_cast(predicate), compare); break; } -- cgit v1.2.3