mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-23 13:55:50 +12:00
[Shader JIT] Mix in AVX-128 in some places, fix cmp
This commit is contained in:
parent
18df6f9531
commit
48b2af6a17
2 changed files with 29 additions and 10 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue