mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 10:40:39 +01:00
gsdx sw JIT: dynamically select ISA for SetupPrim
This commit is contained in:
1 parent
574a2c774e
commit
8fd46e96aa
6 files changed
+60
-34
No files matched your search
@@ -22,6 +22,8 @@
|
||||
#include "stdafx.h"
|
||||
#include "GSSetupPrimCodeGenerator.h"
|
||||
|
||||
using namespace Xbyak;
|
||||
|
||||
#if _M_SSE >= 0x501
|
||||
GSVector8 GSSetupPrimCodeGenerator::m_shift[9];
|
||||
#else
|
||||
@@ -75,3 +77,14 @@ GSSetupPrimCodeGenerator::GSSetupPrimCodeGenerator(void* param, uint64 key, void
|
||||
|
||||
Generate();
|
||||
}
|
||||
|
||||
#if _M_SSE >= 0x501
|
||||
#else
|
||||
void GSSetupPrimCodeGenerator::Generate()
|
||||
{
|
||||
if(g_cpu.has(util::Cpu::tAVX))
|
||||
Generate_AVX();
|
||||
else
|
||||
Generate_SSE();
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user