gsdx sw JIT: dynamically select ISA for SetupPrim

This commit is contained in:
Gregory Hainaut committed 2016-11-19 17:00:33 +01:00
1 parent 574a2c774e
commit 8fd46e96aa
6 files changed
+60 -34

No files matched your search

+13
View File
@@ -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