summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-06-29 20:01:44 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-09 14:14:43 +0200
commit2de764931141314357944627524767476d6d2cf9 (patch)
tree69f0b9d2cc346b0deced503565c42548acdc9aa4 /src
parentcontrol_flow: Correct block breaking algorithm. (diff)
downloadyuzu-2de764931141314357944627524767476d6d2cf9.tar
yuzu-2de764931141314357944627524767476d6d2cf9.tar.gz
yuzu-2de764931141314357944627524767476d6d2cf9.tar.bz2
yuzu-2de764931141314357944627524767476d6d2cf9.tar.lz
yuzu-2de764931141314357944627524767476d6d2cf9.tar.xz
yuzu-2de764931141314357944627524767476d6d2cf9.tar.zst
yuzu-2de764931141314357944627524767476d6d2cf9.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp
index 07a154d77..b0bd6630f 100644
--- a/src/video_core/shader/decode.cpp
+++ b/src/video_core/shader/decode.cpp
@@ -39,7 +39,7 @@ void ShaderIR::Decode() {
std::memcpy(&header, program_code.data(), sizeof(Tegra::Shader::Header));
disable_flow_stack = false;
- const auto info = ScanFlow(program_code, MAX_PROGRAM_LENGTH * sizeof(u64), main_offset);
+ const auto info = ScanFlow(program_code, program_size, main_offset);
if (info) {
const auto& shader_info = *info;
coverage_begin = shader_info.start;