VertexLoaderX64: register symbol for code page

This commit is contained in:
Tillmann Karras 2015-01-18 23:20:44 +01:00
parent bc5cf10ad5
commit d3f49097c5
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#endif
#include "Common/CPUDetect.h"
#include "Common/JitRegister.h"
#include "Common/x64ABI.h"
#include "VideoCommon/VertexLoaderX64.h"
@ -27,6 +28,10 @@ VertexLoaderX64::VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att):
ClearCodeSpace();
GenerateVertexLoader();
WriteProtect();
std::string name;
AppendToString(&name);
JitRegister::Register(region, (u32)(GetCodePtr() - region), name.c_str());
}
OpArg VertexLoaderX64::GetVertexAddr(int array, u64 attribute)

View File

@ -7,7 +7,7 @@ public:
VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att);
protected:
std::string GetName() const override { return "VertexLoaderJit"; }
std::string GetName() const override { return "VertexLoaderX64"; }
bool IsInitialized() override;
int RunVertices(int primitive, int count, DataReader src, DataReader dst) override;