diff options
| author | Scott Mansell <phiren@gmail.com> | 2015-05-30 00:42:45 +1200 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2015-05-30 04:09:27 +1200 |
| commit | f57517f1a05db1790f853bf43d6093c19478b4ce (patch) | |
| tree | 4874138fabc5e0c892013d6151e6d19dd2b2c1ba /Source/Core/VideoCommon/VertexLoaderX64.cpp | |
| parent | 6d916762fb52a85aa086ef0cb6516cc63fbe775b (diff) | |
Clean up cached_arraybases. Update VideoSW to new scheme.
Move ownership of cached_arraybases from CPMemory to VertexLoaderManager
to better match it usage.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderX64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderX64.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index 476566ab49..65d43b9688 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -7,6 +7,7 @@ #include "Common/Intrinsics.h" #include "Common/JitRegister.h" #include "Common/x64ABI.h" +#include "VideoCommon/VertexLoaderManager.h" #include "VideoCommon/VertexLoaderX64.h" using namespace Gen; @@ -58,7 +59,7 @@ OpArg VertexLoaderX64::GetVertexAddr(int array, u64 attribute) } // TODO: Move cached_arraybases into CPState and use MDisp() relative to a constant register loaded with &g_main_cp_state. IMUL(32, scratch1, M(&g_main_cp_state.array_strides[array])); - MOV(64, R(scratch2), M(&cached_arraybases[array])); + MOV(64, R(scratch2), M(&VertexLoaderManager::cached_arraybases[array])); return MRegSum(scratch1, scratch2); } else |
