diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-18 01:25:53 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-18 01:25:55 +0200 |
commit | 9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d (patch) | |
tree | 0043fc7841b1e729eb78e6e37ed90bb65bba1044 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #1311 from FernandoS27/fast-swizzle (diff) | |
download | yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.tar yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.tar.gz yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.tar.bz2 yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.tar.lz yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.tar.xz yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.tar.zst yuzu-9a8dbba1e59fb9d8cbd2c394802b18eb7dc9330d.zip |
Diffstat (limited to '')
-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 252ff18fc..4e7d4a24e 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1779,8 +1779,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, @@ -1844,8 +1844,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), |