mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Buildfix for sse2 builds.
This commit is contained in:
1 parent
08803c101e
commit
04b338f39e
3 files changed
+4
-2
No files matched your search
@@ -36,7 +36,7 @@
|
||||
#undef _interlockedbittestandreset64
|
||||
#else
|
||||
|
||||
#if !defined(_M_GENERIC) && !defined(MIPS)
|
||||
#ifdef _M_SSE
|
||||
#include <xmmintrin.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -146,6 +146,8 @@ private:
|
||||
# define _M_SSE 0x301
|
||||
# elif defined __SSE3__
|
||||
# define _M_SSE 0x300
|
||||
# elif defined __SSE2__
|
||||
# define _M_SSE 0x200
|
||||
# endif
|
||||
#elif ((_MSC_VER >= 1500) || __INTEL_COMPILER) // Visual Studio 2008
|
||||
# define _M_SSE 0x402
|
||||
|
||||
@@ -704,7 +704,7 @@ inline bool TextureCache::TexCacheEntry::Matches(u16 dim2, u8 format2, int maxLe
|
||||
void TextureCache::LoadClut() {
|
||||
u32 clutAddr = gstate.getClutAddress();
|
||||
if (Memory::IsValidAddress(clutAddr)) {
|
||||
#if defined(_M_IX86) || defined(_M_X64)
|
||||
#ifdef _M_SSE
|
||||
int numBlocks = gstate.getClutLoadBlocks();
|
||||
clutTotalBytes_ = numBlocks * 32;
|
||||
const __m128i *source = (const __m128i *)Memory::GetPointerUnchecked(clutAddr);
|
||||
|
||||
Reference in new issue
Block a user