summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorRobin Kertels <robin.kertels@gmail.com>2022-09-17 14:19:13 +0200
committerRobin Kertels <robin.kertels@gmail.com>2022-09-19 01:14:53 +0200
commit2db74e7f21cdad4abc7f5148ffcdd9e801093b42 (patch)
tree68af5f93fb35a324eaa5f931e101d14a6f4b460d /Source/Core/VideoCommon/OpcodeDecoding.cpp
parenta6c6ec012ce6d5355b776379ec8b2cbd94552cf3 (diff)
OpcodeDecoding: Get vertex size from the loader
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp6
1 files changed, 6 insertions, 0 deletions
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<is_preprocess>(vat);
+ return loader->m_vertex_size;
+ }
+
u32 m_cycles = 0;
bool m_in_display_list = false;
};