summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderARM64.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-11-23 04:40:53 +0000
committerGitHub <noreply@github.com>2022-11-23 04:40:53 +0000
commitcb232155d9160aad82a1cb4a9a13fda22d079293 (patch)
tree59e78d80bd168ccc04849a4a9686239db384c4f6 /Source/Core/VideoCommon/VertexLoaderARM64.cpp
parent31458259b67fe67d4feb0b2d425f629e3792fdf7 (diff)
parente13094766d51c970deb2a00800e4dd033af25665 (diff)
Merge pull request #11298 from Pokechu22/vertexloader-no-DataReader
VertexLoader: Eliminate use of DataReader
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderARM64.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderARM64.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderARM64.cpp b/Source/Core/VideoCommon/VertexLoaderARM64.cpp
index 99ba5b3357..b65425c451 100644
--- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp
@@ -7,7 +7,6 @@
#include "Common/CommonTypes.h"
#include "VideoCommon/CPMemory.h"
-#include "VideoCommon/DataReader.h"
#include "VideoCommon/VertexLoaderManager.h"
using namespace Arm64Gen;
@@ -517,9 +516,8 @@ void VertexLoaderARM64::GenerateVertexLoader()
m_native_vtx_decl.stride = m_dst_ofs;
}
-int VertexLoaderARM64::RunVertices(DataReader src, DataReader dst, int count)
+int VertexLoaderARM64::RunVertices(const u8* src, u8* dst, int count)
{
m_numLoadedVertices += count;
- return ((int (*)(u8 * src, u8 * dst, int count)) region)(src.GetPointer(), dst.GetPointer(),
- count - 1);
+ return ((int (*)(const u8* src, u8* dst, int count))region)(src, dst, count - 1);
}