mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-03-04 09:45:23 +01:00
shader_jit_x64_compiler.cpp: Make register conversions more consistent
Needed as xbyak v7.23+ is more strict about register sizes. Not doing so leads to "bad size of register" errors during the tests phase.
This commit is contained in:
parent
cd76db881d
commit
d27f322ddd
@ -409,20 +409,20 @@ void JitShader::Compile_EvaluateCondition(Instruction instr) {
|
||||
break;
|
||||
|
||||
case Instruction::FlowControlType::And:
|
||||
mov(al, COND0);
|
||||
mov(bl, COND1);
|
||||
mov(al, COND0.cvt8());
|
||||
mov(bl, COND1.cvt8());
|
||||
xor_(al, (instr.flow_control.refx.Value() ^ 1));
|
||||
xor_(bl, (instr.flow_control.refy.Value() ^ 1));
|
||||
and_(al, bl);
|
||||
break;
|
||||
|
||||
case Instruction::FlowControlType::JustX:
|
||||
mov(al, COND0);
|
||||
mov(al, COND0.cvt8());
|
||||
xor_(al, (instr.flow_control.refx.Value() ^ 1));
|
||||
break;
|
||||
|
||||
case Instruction::FlowControlType::JustY:
|
||||
mov(al, COND1);
|
||||
mov(al, COND1.cvt8());
|
||||
xor_(al, (instr.flow_control.refy.Value() ^ 1));
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user