diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-16 16:37:11 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-07-17 01:49:23 +0200 |
commit | bebbdc20677c900aec5a6fa9481b1861f202ca02 (patch) | |
tree | b11ca2c6d687f276ed53318c0aa7e4ab4080c8a6 /src/video_core/shader/decode.cpp | |
parent | shader_ir: Rename Get/SetTemporal to Get/SetTemporary (diff) | |
download | yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.tar yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.tar.gz yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.tar.bz2 yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.tar.lz yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.tar.xz yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.tar.zst yuzu-bebbdc20677c900aec5a6fa9481b1861f202ca02.zip |
Diffstat (limited to 'src/video_core/shader/decode.cpp')
-rw-r--r-- | src/video_core/shader/decode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp index 29c8895c5..afffd157f 100644 --- a/src/video_core/shader/decode.cpp +++ b/src/video_core/shader/decode.cpp @@ -46,12 +46,12 @@ void ShaderIR::Decode() { coverage_end = shader_info.end; if (shader_info.decompilable) { disable_flow_stack = true; - const auto insert_block = ([this](NodeBlock& nodes, u32 label) { + const auto insert_block = [this](NodeBlock& nodes, u32 label) { if (label == exit_branch) { return; } basic_blocks.insert({label, nodes}); - }); + }; const auto& blocks = shader_info.blocks; NodeBlock current_block; u32 current_label = exit_branch; @@ -103,7 +103,7 @@ void ShaderIR::DecodeRangeInner(NodeBlock& bb, u32 begin, u32 end) { } void ShaderIR::InsertControlFlow(NodeBlock& bb, const ShaderBlock& block) { - const auto apply_conditions = ([&](const Condition& cond, Node n) -> Node { + const auto apply_conditions = [&](const Condition& cond, Node n) -> Node { Node result = n; if (cond.cc != ConditionCode::T) { result = Conditional(GetConditionCode(cond.cc), {result}); @@ -117,7 +117,7 @@ void ShaderIR::InsertControlFlow(NodeBlock& bb, const ShaderBlock& block) { result = Conditional(GetPredicate(pred, is_neg), {result}); } return result; - }); + }; if (block.branch.address < 0) { if (block.branch.kills) { Node n = Operation(OperationCode::Discard); |