From e860cc9faddd74b2d76a28f51d0224cb0846dfc3 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 27 Jul 2025 19:14:06 +0300 Subject: [PATCH] vk: Fix vertex context indexing --- rpcs3/Emu/RSX/VK/VKGSRender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index 6cbea779c2..bde3db47ac 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -2210,7 +2210,7 @@ void VKGSRender::update_vertex_env(u32 id, const vk::vertex_upload_info& vertex_ // Actual allocation must have been done previously const u32 vs_constant_id_offset = static_cast(m_xform_constants_dynamic_offset) / 16u; - const u32 vertex_context_offset = static_cast(m_vertex_env_dynamic_offset) / 128u; + const u32 vertex_context_offset = static_cast(m_vertex_env_dynamic_offset) / 96u; const u32 vertex_layout_offset = static_cast(m_vertex_layout_dynamic_offset) / 144u; const u32 fs_constant_id_offset = static_cast(m_fragment_constants_dynamic_offset) / 16u;