mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 09:04:21 +01:00
shader_decode: Fixup clang-format
This commit is contained in:
parent
e1fea1e0c5
commit
a2e22b4359
@ -54,7 +54,8 @@ u32 ShaderIR::DecodeHalfSet(BasicBlock& bb, u32 pc) {
|
|||||||
Operation(OperationCode::LogicalPick2, comparison_pair, Immediate(i));
|
Operation(OperationCode::LogicalPick2, comparison_pair, Immediate(i));
|
||||||
const Node predicate = Operation(combiner, comparison, second_pred);
|
const Node predicate = Operation(combiner, comparison, second_pred);
|
||||||
|
|
||||||
values[i] = Operation(OperationCode::Select, NO_PRECISE, predicate, true_value, false_value);
|
values[i] =
|
||||||
|
Operation(OperationCode::Select, NO_PRECISE, predicate, true_value, false_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Node value = Operation(OperationCode::UBitwiseOr, NO_PRECISE, values[0], values[1]);
|
const Node value = Operation(OperationCode::UBitwiseOr, NO_PRECISE, values[0], values[1]);
|
||||||
|
@ -35,7 +35,8 @@ u32 ShaderIR::DecodeRegisterSetPredicate(BasicBlock& bb, u32 pc) {
|
|||||||
for (u64 pred = 0; pred < programmable_preds; ++pred) {
|
for (u64 pred = 0; pred < programmable_preds; ++pred) {
|
||||||
const Node shift = Immediate(1u << static_cast<u32>(pred));
|
const Node shift = Immediate(1u << static_cast<u32>(pred));
|
||||||
|
|
||||||
const Node apply_compare = Operation(OperationCode::UBitwiseAnd, NO_PRECISE, apply_mask, shift);
|
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::LogicalUEqual, 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user