diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-01-19 18:33:08 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-01-20 01:51:07 +0100 |
| commit | 873902b4a3cc40b6a03bef197e54c5165f98d842 (patch) | |
| tree | 7d7fdc6ddbbdc752c7a2de0750b5c86ddfb06c87 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 38cb9bbfae0999c9f74fffce6029330659a70df1 (diff) | |
VertexLoader: remove non-JIT SSE code
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 1122a04f72..732f0db696 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -28,16 +28,6 @@ u8* g_video_buffer_read_ptr; u8* g_vertex_manager_write_ptr; -void* VertexLoader::operator new (size_t size) -{ - return AllocateAlignedMemory(size, 16); -} - -void VertexLoader::operator delete (void *p) -{ - FreeAlignedMemory(p); -} - static void LOADERDECL PosMtx_ReadDirect_UByte(VertexLoader* loader) { u8 posmtx = BoundingBox::posMtxIdx = DataReadU8() & 0x3f; @@ -66,15 +56,9 @@ static void LOADERDECL TexMtx_Write_Float2(VertexLoader* loader) static void LOADERDECL TexMtx_Write_Float3(VertexLoader* loader) { -#if _M_SSE >= 0x200 - __m128 output = _mm_cvtsi32_ss(_mm_castsi128_ps(_mm_setzero_si128()), loader->m_curtexmtx[loader->m_texmtxwrite++]); - _mm_storeu_ps((float*)g_vertex_manager_write_ptr, _mm_shuffle_ps(output, output, 0x45 /* 1, 1, 0, 1 */)); - g_vertex_manager_write_ptr += sizeof(float) * 3; -#else DataWrite(0.f); DataWrite(0.f); DataWrite(float(loader->m_curtexmtx[loader->m_texmtxwrite++])); -#endif } static void LOADERDECL SkipVertex(VertexLoader* loader) @@ -92,15 +76,13 @@ VertexLoader::VertexLoader(const TVtxDesc &vtx_desc, const VAT &vtx_attr) : VertexLoaderBase(vtx_desc, vtx_attr) { VertexLoader_Normal::Init(); - VertexLoader_Position::Init(); - VertexLoader_TextCoord::Init(); CompileVertexTranslator(); // generate frac factors - m_posScale[0] = m_posScale[1] = m_posScale[2] = m_posScale[3] = 1.0f / (1U << m_VtxAttr.PosFrac); + m_posScale = 1.0f / (1U << m_VtxAttr.PosFrac); for (int i = 0; i < 8; i++) - m_tcScale[i][0] = m_tcScale[i][1] = 1.0f / (1U << m_VtxAttr.texCoord[i].Frac); + m_tcScale[i] = 1.0f / (1U << m_VtxAttr.texCoord[i].Frac); for (int i = 0; i < 2; i++) m_colElements[i] = m_VtxAttr.color[i].Elements; |
