mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-01 16:33:05 +00:00
shader_decode: Fixup WriteLogicOperation zero comparison
This commit is contained in:
parent
ab7f52b279
commit
ea78c78253
|
@ -89,7 +89,7 @@ void ShaderIR::WriteLogicOperation(BasicBlock& bb, Register dest, LogicOperation
|
||||||
return;
|
return;
|
||||||
case PredicateResultMode::NotZero: {
|
case PredicateResultMode::NotZero: {
|
||||||
// Set the predicate to true if the result is not zero.
|
// 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<u64>(predicate), compare);
|
SetPredicate(bb, static_cast<u64>(predicate), compare);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue