[Shader JIT] Mix in AVX-128 in some places, fix cmp

This commit is contained in:
wheremyfoodat 2023-06-11 01:49:08 +03:00
parent 18df6f9531
commit 48b2af6a17
2 changed files with 29 additions and 10 deletions

View file

@ -32,6 +32,7 @@ class ShaderEmitter : public Xbyak::CodeGenerator {
u32 recompilerPC = 0; // PC the recompiler is currently recompiling @
bool haveSSE4_1 = false; // Shows if the CPU supports SSE4.1
bool haveAVX = false; // Shows if the CPU supports AVX (NOT AVX2, NOT AVX512. Regular AVX)
// Compile all instructions from [current recompiler PC, end)
void compileUntil(const PICAShader& shaderUnit, u32 endPC);
@ -101,6 +102,8 @@ public:
const auto cpu = Xbyak::util::Cpu();
haveSSE4_1 = cpu.has(Xbyak::util::Cpu::tSSE41);
haveAVX = cpu.has(Xbyak::util::Cpu::tAVX);
if (!cpu.has(Xbyak::util::Cpu::tSSE3)) {
Helpers::panic("This CPU does not support SSE3. Please use the shader interpreter instead");
}