mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Vertex loader: use ABI_CallFunction
Should result in faster/shorter code sequences on platforms where generated code is close enough to the code segment (e.g. Windows).
This commit is contained in:
parent
ce059769f6
commit
7acd5eba17
@ -410,8 +410,7 @@ void VertexLoader::CompileVertexTranslator()
|
|||||||
void VertexLoader::WriteCall(TPipelineFunction func)
|
void VertexLoader::WriteCall(TPipelineFunction func)
|
||||||
{
|
{
|
||||||
#ifdef USE_VERTEX_LOADER_JIT
|
#ifdef USE_VERTEX_LOADER_JIT
|
||||||
MOV(64, R(RAX), Imm64((u64)func));
|
ABI_CallFunction((const void*)func);
|
||||||
CALLptr(R(RAX));
|
|
||||||
#else
|
#else
|
||||||
m_PipelineStages[m_numPipelineStages++] = func;
|
m_PipelineStages[m_numPipelineStages++] = func;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user