diff options
| author | Scott Mansell <phire@gmail.com> | 2015-03-17 00:49:55 +1300 |
|---|---|---|
| committer | Scott Mansell <phire@gmail.com> | 2015-03-17 18:49:30 +1300 |
| commit | 858ff69c010182400f20a82fb0a9e72f359b4fdf (patch) | |
| tree | e9d49becea6ca6c40c081a532528f77ecd83ba91 /Source/Core/VideoCommon/VertexLoaderX64.cpp | |
| parent | 6262a9bcbecf802d73bd85ef6e5d02f10f21324b (diff) | |
Make OpArg.offset and operandReg private.
Also cleaned up WriteRest function.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderX64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderX64.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index 8d01a5d598..3971a6bf4e 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -244,7 +244,7 @@ void VertexLoaderX64::ReadColor(OpArg data, u64 attribute, int format) case FORMAT_24B_6666: // RRRRRRGG GGGGBBBB BBAAAAAA // AAAAAAAA BBBBBBBB GGGGGGGG RRRRRRRR - data.offset -= 1; + data.AddMemOffset(-1); // subtract one from address so we can use a 32bit load and bswap LoadAndSwap(32, scratch1, data); if (cpu_info.bBMI2) { @@ -346,10 +346,10 @@ void VertexLoaderX64::GenerateVertexLoader() { data = GetVertexAddr(ARRAY_NORMAL, m_VtxDesc.Normal); int elem_size = 1 << (m_VtxAttr.NormalFormat / 2); - data.offset += i * elem_size * 3; + data.AddMemOffset(i * elem_size * 3); } - data.offset += ReadVertex(data, m_VtxDesc.Normal, m_VtxAttr.NormalFormat, 3, 3, - true, scaling_exponent, &m_native_vtx_decl.normals[i]); + data.AddMemOffset(ReadVertex(data, m_VtxDesc.Normal, m_VtxAttr.NormalFormat, 3, 3, + true, scaling_exponent, &m_native_vtx_decl.normals[i])); } m_native_components |= VB_HAS_NRM0; |
