mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
VertexLoaderX64: register symbol for code page
This commit is contained in:
parent
bc5cf10ad5
commit
d3f49097c5
@ -5,6 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Common/CPUDetect.h"
|
#include "Common/CPUDetect.h"
|
||||||
|
#include "Common/JitRegister.h"
|
||||||
#include "Common/x64ABI.h"
|
#include "Common/x64ABI.h"
|
||||||
#include "VideoCommon/VertexLoaderX64.h"
|
#include "VideoCommon/VertexLoaderX64.h"
|
||||||
|
|
||||||
@ -27,6 +28,10 @@ VertexLoaderX64::VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att):
|
|||||||
ClearCodeSpace();
|
ClearCodeSpace();
|
||||||
GenerateVertexLoader();
|
GenerateVertexLoader();
|
||||||
WriteProtect();
|
WriteProtect();
|
||||||
|
|
||||||
|
std::string name;
|
||||||
|
AppendToString(&name);
|
||||||
|
JitRegister::Register(region, (u32)(GetCodePtr() - region), name.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
OpArg VertexLoaderX64::GetVertexAddr(int array, u64 attribute)
|
OpArg VertexLoaderX64::GetVertexAddr(int array, u64 attribute)
|
||||||
|
@ -7,7 +7,7 @@ public:
|
|||||||
VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att);
|
VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string GetName() const override { return "VertexLoaderJit"; }
|
std::string GetName() const override { return "VertexLoaderX64"; }
|
||||||
bool IsInitialized() override;
|
bool IsInitialized() override;
|
||||||
int RunVertices(int primitive, int count, DataReader src, DataReader dst) override;
|
int RunVertices(int primitive, int count, DataReader src, DataReader dst) override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user