From 7acd5eba1777000038f2ccde5a236a663e3d7543 Mon Sep 17 00:00:00 2001 From: Fiora Date: Fri, 28 Nov 2014 20:26:00 -0800 Subject: [PATCH] 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). --- Source/Core/VideoCommon/VertexLoader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 80a891ff26..3fd644ec97 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -410,8 +410,7 @@ void VertexLoader::CompileVertexTranslator() void VertexLoader::WriteCall(TPipelineFunction func) { #ifdef USE_VERTEX_LOADER_JIT - MOV(64, R(RAX), Imm64((u64)func)); - CALLptr(R(RAX)); + ABI_CallFunction((const void*)func); #else m_PipelineStages[m_numPipelineStages++] = func; #endif