shader: mask V_MAD_U64_U32 carry-out bits of lanes outside EXEC

This commit is contained in:
nmzik committed 2026-10-27 04:23:00 +01:00
1 parent 986721f5bc
commit 2483573651
2 files changed
+25 -1

No files matched your search

@@ -291,7 +291,7 @@ void Translator::V_MAD_U64_U32(const Decoder::Instruction& inst) {
inst.dst2.kind != Decoder::OperandKind::Unknown) {
// The 32x32 product fits in 64 bits, so only the addition can carry.
const auto carry = IR::U1(ir.Emit(IR::ValueOpcode::ULessThan64, {result, product}));
WriteMask(inst.dst2, carry, VectorMask(carry));
WriteVectorMask(inst.dst2, carry);
}
}