forked from suyu/suyu
shader_decode: Fixup R2P
This commit is contained in:
parent
8b5588e776
commit
c68c13e1aa
1 changed files with 3 additions and 2 deletions
|
@ -37,10 +37,11 @@ u32 ShaderIR::DecodeRegisterSetPredicate(BasicBlock& bb, u32 pc) {
|
||||||
|
|
||||||
const Node apply_compare =
|
const Node apply_compare =
|
||||||
Operation(OperationCode::UBitwiseAnd, NO_PRECISE, apply_mask, shift);
|
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_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);
|
const Node code = Operation(OperationCode::LogicalAssign, GetPredicate(pred), value);
|
||||||
bb.push_back(Conditional(condition, {code}));
|
bb.push_back(Conditional(condition, {code}));
|
||||||
|
|
Loading…
Reference in a new issue