shader: remaining decode and emitter fixes

Decode and SPIR-V emitter corrections this title's shaders need: image and
memory operand handling, scalar ALU forms, and the IR plumbing that goes with
them.
This commit is contained in:
Mac
2026-08-31 23:41:38 +05:30
parent b56807b75d
commit ed44795511
18 changed files with 205 additions and 36 deletions
@@ -89,9 +89,15 @@ bool Translator::EmitScalar(const Decoder::Instruction& inst) {
EmitIntegerCompare(inst, IR::ValueOpcode::SLessThanEqual32, IR::Type::U32, true, false);
return true;
case O::S_CMP_EQ_U64:
if (S_CMP_MASK_ANY(inst, false)) {
return true;
}
EmitIntegerCompare(inst, IR::ValueOpcode::IEqual64, IR::Type::U64, true, false);
return true;
case O::S_CMP_LG_U64:
if (S_CMP_MASK_ANY(inst, true)) {
return true;
}
EmitIntegerCompare(inst, IR::ValueOpcode::INotEqual64, IR::Type::U64, true, false);
return true;