mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-07 07:29:58 +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;
|
break;
|
||||||
|
|
||||||
case Instruction::FlowControlType::And:
|
case Instruction::FlowControlType::And:
|
||||||
mov(al, COND0);
|
mov(al, COND0.cvt8());
|
||||||
mov(bl, COND1);
|
mov(bl, COND1.cvt8());
|
||||||
xor_(al, (instr.flow_control.refx.Value() ^ 1));
|
xor_(al, (instr.flow_control.refx.Value() ^ 1));
|
||||||
xor_(bl, (instr.flow_control.refy.Value() ^ 1));
|
xor_(bl, (instr.flow_control.refy.Value() ^ 1));
|
||||||
and_(al, bl);
|
and_(al, bl);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Instruction::FlowControlType::JustX:
|
case Instruction::FlowControlType::JustX:
|
||||||
mov(al, COND0);
|
mov(al, COND0.cvt8());
|
||||||
xor_(al, (instr.flow_control.refx.Value() ^ 1));
|
xor_(al, (instr.flow_control.refx.Value() ^ 1));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Instruction::FlowControlType::JustY:
|
case Instruction::FlowControlType::JustY:
|
||||||
mov(al, COND1);
|
mov(al, COND1.cvt8());
|
||||||
xor_(al, (instr.flow_control.refy.Value() ^ 1));
|
xor_(al, (instr.flow_control.refy.Value() ^ 1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user