summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-08 21:08:07 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-11-08 23:48:50 +0100
commit096f339a2a817054c9e2dfef188a5e2470126236 (patch)
tree83b293c8ca82a1b6052c6d20063550fd92f10c61 /src/video_core/shader/decode.cpp
parentmicroprofile: Silence conversion warnings (diff)
downloadyuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar
yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.gz
yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.bz2
yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.lz
yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.xz
yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.zst
yuzu-096f339a2a817054c9e2dfef188a5e2470126236.zip
Diffstat (limited to 'src/video_core/shader/decode.cpp')
-rw-r--r--src/video_core/shader/decode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp
index 21fb9cb83..22c3e5120 100644
--- a/src/video_core/shader/decode.cpp
+++ b/src/video_core/shader/decode.cpp
@@ -154,10 +154,10 @@ void ShaderIR::Decode() {
LOG_CRITICAL(HW_GPU, "Unknown decompilation mode!");
[[fallthrough]];
case CompileDepth::BruteForce: {
+ const auto shader_end = static_cast<u32>(program_code.size());
coverage_begin = main_offset;
- const std::size_t shader_end = program_code.size();
coverage_end = shader_end;
- for (u32 label = main_offset; label < shader_end; label++) {
+ for (u32 label = main_offset; label < shader_end; ++label) {
basic_blocks.insert({label, DecodeRange(label, label + 1)});
}
break;