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:
Reg Tiangha 2025-02-13 14:17:36 -07:00 committed by OpenSauce
parent cd76db881d
commit d27f322ddd

View File

@ -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;
}