summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorNguyen Dac Nam <nam.kazt.91@gmail.com>2020-03-13 09:38:57 +0100
committerGitHub <noreply@github.com>2020-03-13 09:38:57 +0100
commit00607fe1e018e9b9144c2e1d8dac96150455bc0b (patch)
treec4f2233057e38758e9b44a7395082daf875a4294 /src/video_core
parentApply suggestions from code review (diff)
downloadyuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.tar
yuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.tar.gz
yuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.tar.bz2
yuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.tar.lz
yuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.tar.xz
yuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.tar.zst
yuzu-00607fe1e018e9b9144c2e1d8dac96150455bc0b.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/decode/bfe.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/video_core/shader/decode/bfe.cpp b/src/video_core/shader/decode/bfe.cpp
index 7f2647973..80253aee3 100644
--- a/src/video_core/shader/decode/bfe.cpp
+++ b/src/video_core/shader/decode/bfe.cpp
@@ -44,14 +44,18 @@ u32 ShaderIR::DecodeBfe(NodeBlock& bb, u32 pc) {
Node v1 =
SignedOperation(OperationCode::ILogicalShiftRight, is_signed, op_a, Immediate(s));
if (mask != 0) {
- v1 = SignedOperation(OperationCode::IBitwiseAnd, is_signed, std::move(v1), Immediate(mask));
+ v1 = SignedOperation(OperationCode::IBitwiseAnd, is_signed, std::move(v1),
+ Immediate(mask));
}
Node v2 = op_a;
if (mask != 0) {
- v2 = SignedOperation(OperationCode::IBitwiseAnd, is_signed, std::move(v2), Immediate(mask));
+ v2 = SignedOperation(OperationCode::IBitwiseAnd, is_signed, std::move(v2),
+ Immediate(mask));
}
- v2 = SignedOperation(OperationCode::ILogicalShiftLeft, is_signed, std::move(v2), Immediate(s));
- return SignedOperation(OperationCode::IBitwiseOr, is_signed, std::move(v1), std::move(v2));
+ v2 = SignedOperation(OperationCode::ILogicalShiftLeft, is_signed, std::move(v2),
+ Immediate(s));
+ return SignedOperation(OperationCode::IBitwiseOr, is_signed, std::move(v1),
+ std::move(v2));
};
op_a = swap(1, 0x55555555U);
op_a = swap(2, 0x33333333U);