Remove x86_32 from VertexLoader.

This commit is contained in:
Ryan Houdek 2014-05-27 23:00:18 -05:00
parent 35bebe9ce0
commit d9b5482840

View File

@ -755,12 +755,8 @@ void VertexLoader::CompileVertexTranslator()
#ifdef USE_VERTEX_LOADER_JIT #ifdef USE_VERTEX_LOADER_JIT
// End loop here // End loop here
#if _M_X86_64
MOV(64, R(RAX), Imm64((u64)&loop_counter)); MOV(64, R(RAX), Imm64((u64)&loop_counter));
SUB(32, MatR(RAX), Imm8(1)); SUB(32, MatR(RAX), Imm8(1));
#else
SUB(32, M(&loop_counter), Imm8(1));
#endif
J_CC(CC_NZ, loop_start); J_CC(CC_NZ, loop_start);
ABI_PopAllCalleeSavedRegsAndAdjustStack(); ABI_PopAllCalleeSavedRegsAndAdjustStack();
@ -771,12 +767,8 @@ void VertexLoader::CompileVertexTranslator()
void VertexLoader::WriteCall(TPipelineFunction func) void VertexLoader::WriteCall(TPipelineFunction func)
{ {
#ifdef USE_VERTEX_LOADER_JIT #ifdef USE_VERTEX_LOADER_JIT
#if _M_X86_64
MOV(64, R(RAX), Imm64((u64)func)); MOV(64, R(RAX), Imm64((u64)func));
CALLptr(R(RAX)); CALLptr(R(RAX));
#else
CALL((void*)func);
#endif
#else #else
m_PipelineStages[m_numPipelineStages++] = func; m_PipelineStages[m_numPipelineStages++] = func;
#endif #endif
@ -786,24 +778,16 @@ void VertexLoader::WriteCall(TPipelineFunction func)
void VertexLoader::WriteGetVariable(int bits, OpArg dest, void *address) void VertexLoader::WriteGetVariable(int bits, OpArg dest, void *address)
{ {
#ifdef USE_VERTEX_LOADER_JIT #ifdef USE_VERTEX_LOADER_JIT
#if _M_X86_64
MOV(64, R(RAX), Imm64((u64)address)); MOV(64, R(RAX), Imm64((u64)address));
MOV(bits, dest, MatR(RAX)); MOV(bits, dest, MatR(RAX));
#else
MOV(bits, dest, M(address));
#endif
#endif #endif
} }
void VertexLoader::WriteSetVariable(int bits, void *address, OpArg value) void VertexLoader::WriteSetVariable(int bits, void *address, OpArg value)
{ {
#ifdef USE_VERTEX_LOADER_JIT #ifdef USE_VERTEX_LOADER_JIT
#if _M_X86_64
MOV(64, R(RAX), Imm64((u64)address)); MOV(64, R(RAX), Imm64((u64)address));
MOV(bits, MatR(RAX), value); MOV(bits, MatR(RAX), value);
#else
MOV(bits, M(address), value);
#endif
#endif #endif
} }
#endif #endif