From 2db74e7f21cdad4abc7f5148ffcdd9e801093b42 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Sat, 17 Sep 2022 14:19:13 +0200 Subject: OpcodeDecoding: Get vertex size from the loader --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index c8f2f2c53a..bc19a1c2de 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -228,6 +228,12 @@ public: return g_main_cp_state; } + OPCODE_CALLBACK(u32 GetVertexSize(u8 vat)) + { + VertexLoaderBase* loader = VertexLoaderManager::RefreshLoader(vat); + return loader->m_vertex_size; + } + u32 m_cycles = 0; bool m_in_display_list = false; }; -- cgit v1.2.3