diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-26 02:56:04 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-09 14:14:40 +0200 |
commit | cfb3db1a32975583b94a0df5f3ff0020254208c0 (patch) | |
tree | a0d3b6ed65f6d02d09c376b5033c97d691762d45 /src/video_core/shader/control_flow.cpp | |
parent | shader_ir: Remove unnecessary constructors and use optional for ScanFlow result (diff) | |
download | yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.tar yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.tar.gz yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.tar.bz2 yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.tar.lz yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.tar.xz yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.tar.zst yuzu-cfb3db1a32975583b94a0df5f3ff0020254208c0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/control_flow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index 6259ad594..a26de6795 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp @@ -163,7 +163,7 @@ enum class ParseResult : u32 { ParseResult ParseCode(CFGRebuildState& state, u32 address, ParseInfo& parse_info) { u32 offset = static_cast<u32>(address); - const u32 end_address = static_cast<u32>(state.program_size - 10U) * 8U; + const u32 end_address = static_cast<u32>(state.program_size / 8U); const auto insert_label = ([](CFGRebuildState& state, u32 address) { auto pair = state.labels.emplace(address); |