[Shader JIT] Get first JIT trangle

This commit is contained in:
wheremyfoodat 2023-06-09 02:28:59 +03:00
parent 9bb1f31fc9
commit fd411245fa
3 changed files with 82 additions and 18 deletions

View file

@ -51,6 +51,9 @@ class ShaderEmitter : public Xbyak::CodeGenerator {
const vec4f& getDestRef(const PICAShader& shader, u32 dest);
// Instruction recompilation functions
void recADD(const PICAShader& shader, u32 instruction);
void recDP4(const PICAShader& shader, u32 instruction);
void recEND(const PICAShader& shader, u32 instruction);
void recMOV(const PICAShader& shader, u32 instruction);
public:
@ -64,6 +67,9 @@ public:
const auto cpu = Xbyak::util::Cpu();
haveSSE4_1 = cpu.has(Xbyak::util::Cpu::tSSE41);
if (!cpu.has(Xbyak::util::Cpu::tSSE3)) {
Helpers::panic("This CPU does not support SSE3. Please use the shader interpreter instead");
}
}
void compile(const PICAShader& shaderUnit);