diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-19 04:11:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 04:11:48 +0200 |
commit | bd88d4108f47a13e44635a8e525b5e3088a0454b (patch) | |
tree | 035820e1203c5db0e82d68a027888376c5993b84 /src | |
parent | Merge pull request #1279 from FernandoS27/csetp (diff) | |
parent | gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code (diff) | |
download | yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.tar yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.tar.gz yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.tar.bz2 yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.tar.lz yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.tar.xz yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.tar.zst yuzu-bd88d4108f47a13e44635a8e525b5e3088a0454b.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 393ab5eab..b3e95187e 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1800,8 +1800,8 @@ private: Tegra::Shader::IpaMode input_mode{Tegra::Shader::IpaInterpMode::Perspective, Tegra::Shader::IpaSampleMode::Default}; - u32 next_element = instr.attribute.fmt20.element; - u32 next_index = static_cast<u32>(instr.attribute.fmt20.index.Value()); + u64 next_element = instr.attribute.fmt20.element; + u64 next_index = static_cast<u64>(instr.attribute.fmt20.index.Value()); const auto LoadNextElement = [&](u32 reg_offset) { regs.SetRegisterToInputAttibute(instr.gpr0.Value() + reg_offset, next_element, @@ -1865,8 +1865,8 @@ private: ASSERT_MSG((instr.attribute.fmt20.immediate.Value() % sizeof(u32)) == 0, "Unaligned attribute loads are not supported"); - u32 next_element = instr.attribute.fmt20.element; - u32 next_index = static_cast<u32>(instr.attribute.fmt20.index.Value()); + u64 next_element = instr.attribute.fmt20.element; + u64 next_index = static_cast<u64>(instr.attribute.fmt20.index.Value()); const auto StoreNextElement = [&](u32 reg_offset) { regs.SetOutputAttributeToRegister(static_cast<Attribute::Index>(next_index), |