summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 3f90a2b6e3..bc19a1c2de 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -122,7 +122,7 @@ public:
// HACK
DataReader src{const_cast<u8*>(vertex_data), const_cast<u8*>(vertex_data) + size};
const u32 bytes =
- VertexLoaderManager::RunVertices(vat, primitive, num_vertices, src, is_preprocess);
+ VertexLoaderManager::RunVertices<is_preprocess>(vat, primitive, num_vertices, src);
ASSERT(bytes == size);
@@ -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;
};