summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp8
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:
1800 Tegra::Shader::IpaMode input_mode{Tegra::Shader::IpaInterpMode::Perspective, 1800 Tegra::Shader::IpaMode input_mode{Tegra::Shader::IpaInterpMode::Perspective,
1801 Tegra::Shader::IpaSampleMode::Default}; 1801 Tegra::Shader::IpaSampleMode::Default};
1802 1802
1803 u32 next_element = instr.attribute.fmt20.element; 1803 u64 next_element = instr.attribute.fmt20.element;
1804 u32 next_index = static_cast<u32>(instr.attribute.fmt20.index.Value()); 1804 u64 next_index = static_cast<u64>(instr.attribute.fmt20.index.Value());
1805 1805
1806 const auto LoadNextElement = [&](u32 reg_offset) { 1806 const auto LoadNextElement = [&](u32 reg_offset) {
1807 regs.SetRegisterToInputAttibute(instr.gpr0.Value() + reg_offset, next_element, 1807 regs.SetRegisterToInputAttibute(instr.gpr0.Value() + reg_offset, next_element,
@@ -1865,8 +1865,8 @@ private:
1865 ASSERT_MSG((instr.attribute.fmt20.immediate.Value() % sizeof(u32)) == 0, 1865 ASSERT_MSG((instr.attribute.fmt20.immediate.Value() % sizeof(u32)) == 0,
1866 "Unaligned attribute loads are not supported"); 1866 "Unaligned attribute loads are not supported");
1867 1867
1868 u32 next_element = instr.attribute.fmt20.element; 1868 u64 next_element = instr.attribute.fmt20.element;
1869 u32 next_index = static_cast<u32>(instr.attribute.fmt20.index.Value()); 1869 u64 next_index = static_cast<u64>(instr.attribute.fmt20.index.Value());
1870 1870
1871 const auto StoreNextElement = [&](u32 reg_offset) { 1871 const auto StoreNextElement = [&](u32 reg_offset) {
1872 regs.SetOutputAttributeToRegister(static_cast<Attribute::Index>(next_index), 1872 regs.SetOutputAttributeToRegister(static_cast<Attribute::Index>(next_index),