diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-01-18 23:20:44 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-01-18 23:20:44 +0100 |
| commit | d3f49097c5226dc9ff0dd2fa37dc4896a38d9448 (patch) | |
| tree | 9291a8930cbeb6833c5e4719a0c4e04a83f2d0a1 /Source/Core | |
| parent | bc5cf10ad5077b2d1e88224c09f216c50dc15daf (diff) | |
VertexLoaderX64: register symbol for code page
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderX64.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderX64.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index 91cf01b608..c9b435bae3 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -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) diff --git a/Source/Core/VideoCommon/VertexLoaderX64.h b/Source/Core/VideoCommon/VertexLoaderX64.h index e578fb49d8..3cf9d7c8ba 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.h +++ b/Source/Core/VideoCommon/VertexLoaderX64.h @@ -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; |
