diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-01-18 19:48:14 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-01-18 19:48:14 -0600 |
| commit | 7e64869185d47a835d22016c232cef09a3a53615 (patch) | |
| tree | d8f5d19bf319be9a25ae46917d6341b02a89d18c /Source/Core/VideoCommon/VertexLoader_Normal.cpp | |
| parent | 5357b9c95ff2458e3b8c3112e303924a0d460ce6 (diff) | |
| parent | d3f49097c5226dc9ff0dd2fa37dc4896a38d9448 (diff) | |
Merge pull request #1887 from Tilka/vertex_loader_jit
VertexLoader: rewrite x64 JIT
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_Normal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp index 70081ead11..0d794d9944 100644 --- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp @@ -50,7 +50,7 @@ __forceinline void ReadIndirect(const T* data) dst.Write(FracAdjust(Common::FromBigEndian(data[i]))); } - dst.WritePointer(&g_vertex_manager_write_ptr); + g_vertex_manager_write_ptr = dst.GetPointer(); LOG_NORM(); } @@ -110,7 +110,7 @@ struct Normal_Direct_SSSE3 { const T* pData = reinterpret_cast<const T*>(DataGetPosition()); const float frac = 1. / float(1u << (sizeof(T) * 8 - std::is_signed<T>::value - 1)); - const __m128 scale = _mm_set_ps(frac, frac, frac, frac); + const __m128 scale = _mm_set_ps1(frac); for (int i = 0; i < N; i++, pData += 3) Vertex_Read_SSSE3<T, true, true>(pData, scale); DataSkip<N * 3 * sizeof(T)>(); @@ -128,7 +128,7 @@ __forceinline void Normal_Index_Offset_SSSE3() const T* pData = (const T*)(cached_arraybases[ARRAY_NORMAL] + (index * g_main_cp_state.array_strides[ARRAY_NORMAL]) + sizeof(T) * 3 * Offset); const float frac = 1. / float(1u << (sizeof(T) * 8 - std::is_signed<T>::value - 1)); - const __m128 scale = _mm_set_ps(frac, frac, frac, frac); + const __m128 scale = _mm_set_ps1(frac); for (int i = 0; i < N; i++, pData += 3) Vertex_Read_SSSE3<T, true, true>(pData, scale); } |
