summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-24 06:26:40 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:53 +0100
commita2e22b435947fd5fb835572c02369af83ceeafce (patch)
tree175e95e16fbd7759d022a061cc10e5bd37cb7f23
parentvideo_core: Implement IR based geometry shaders (diff)
downloadyuzu-a2e22b435947fd5fb835572c02369af83ceeafce.tar
yuzu-a2e22b435947fd5fb835572c02369af83ceeafce.tar.gz
yuzu-a2e22b435947fd5fb835572c02369af83ceeafce.tar.bz2
yuzu-a2e22b435947fd5fb835572c02369af83ceeafce.tar.lz
yuzu-a2e22b435947fd5fb835572c02369af83ceeafce.tar.xz
yuzu-a2e22b435947fd5fb835572c02369af83ceeafce.tar.zst
yuzu-a2e22b435947fd5fb835572c02369af83ceeafce.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/decode/half_set.cpp3
-rw-r--r--src/video_core/shader/decode/register_set_predicate.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/half_set.cpp b/src/video_core/shader/decode/half_set.cpp
index b4ac06144..e34deeff4 100644
--- a/src/video_core/shader/decode/half_set.cpp
+++ b/src/video_core/shader/decode/half_set.cpp
@@ -54,7 +54,8 @@ u32 ShaderIR::DecodeHalfSet(BasicBlock& bb, u32 pc) {
Operation(OperationCode::LogicalPick2, comparison_pair, Immediate(i));
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]);
diff --git a/src/video_core/shader/decode/register_set_predicate.cpp b/src/video_core/shader/decode/register_set_predicate.cpp
index 796039cd9..bbfe2ce05 100644
--- a/src/video_core/shader/decode/register_set_predicate.cpp
+++ b/src/video_core/shader/decode/register_set_predicate.cpp
@@ -35,7 +35,8 @@ u32 ShaderIR::DecodeRegisterSetPredicate(BasicBlock& bb, u32 pc) {
for (u64 pred = 0; pred < programmable_preds; ++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 value_compare = Operation(OperationCode::UBitwiseAnd, NO_PRECISE, mask, shift);