diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-11-22 16:54:05 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-11-22 17:17:11 -0800 |
| commit | 0bcd3c79bb4bbd90fb1f8d02adb26198690709fb (patch) | |
| tree | 22ec9e15aca405a0b4621ff51d1ff51f9c179f3e /Source/Core/VideoCommon/VertexLoaderARM64.cpp | |
| parent | 8ac8d5afb63f65a1bed1a5d089d9fbbd5b8553b4 (diff) | |
VertexLoader: Eliminate use of DataReader
DataReader is generally jank - it has a start and end pointer, but the end pointer is generally not used, and all of the vertex loaders mostly bypassed it anyways.
Wrapper code (the vertex loaer test, as well as Fifo.cpp and OpcodeDecoding.cpp) still uses it, as does the software vertex loader (which is not a subclass of VertexLoader). These can probably be eliminated later.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderARM64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderARM64.cpp | 6 |
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); } |
