From aea1efd5f25af3436f2b42703490a3641888e9a9 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 16 Mar 2025 03:48:16 +0300 Subject: [PATCH] rsx: Fix instancing constants lookup layout when running interpreter --- rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp | 3 +++ rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp b/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp index f043947f1f..406ece755c 100644 --- a/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp +++ b/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp @@ -131,6 +131,9 @@ namespace gl : 0; GLVertexDecompilerThread comp(null_prog, shader_str, arr); + // Initialize compiler properties + comp.properties.has_indexed_constants = true; + ParamType uniforms = { PF_PARAM_UNIFORM, "vec4" }; uniforms.items.emplace_back("vc[468]", -1); diff --git a/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp b/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp index 94deb013b1..c0a713ec00 100644 --- a/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp +++ b/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp @@ -30,6 +30,9 @@ namespace vk : 0; VKVertexDecompilerThread comp(null_prog, shader_str, arr, vk_prog); + // Initialize compiler properties + comp.properties.has_indexed_constants = true; + ParamType uniforms = { PF_PARAM_UNIFORM, "vec4" }; uniforms.items.emplace_back("vc[468]", -1);