diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-21 03:12:06 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-05 00:52:52 +0200 |
commit | 2e9a810423ef36178ac3947f8feeb7b9a5b29bce (patch) | |
tree | cad196eab22eafd8766a51e7086b8812e510b1c6 /src/video_core/shader/control_flow.cpp | |
parent | vk_shader_compiler: Implement the decompiler in SPIR-V (diff) | |
download | yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.gz yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.bz2 yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.lz yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.xz yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.zst yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/control_flow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index c4351969b..c2fa734e7 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp @@ -516,7 +516,8 @@ std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, std::sort(state.block_info.begin(), state.block_info.end(), [](const BlockInfo& a, const BlockInfo& b) -> bool { return a.start < b.start; }); if (decompiled && settings.depth != CompileDepth::NoFlowStack) { - ASTManager manager{settings.depth != CompileDepth::DecompileBackwards}; + ASTManager manager{settings.depth != CompileDepth::DecompileBackwards, + settings.disable_else_derivation}; state.manager = &manager; DecompileShader(state); decompiled = state.manager->IsFullyDecompiled(); |