rsx/cfg: Skip literal constants when annotating instructions

This commit is contained in:
kd-11 2025-12-03 14:15:55 +03:00 committed by kd-11
parent fa40cef0b1
commit 8ff3dda5e8

View File

@ -98,7 +98,11 @@ namespace rsx::assembler::FP
for (u32 i = 0; i < operand_count; i++) for (u32 i = 0; i < operand_count; i++)
{ {
RegisterRef reg = get_src_register(prog, &instruction, i); RegisterRef reg = get_src_register(prog, &instruction, i);
ensure(reg.mask, "Invalid register read"); if (!reg.mask)
{
// Likely a literal constant
continue;
}
instruction.srcs.push_back(reg); instruction.srcs.push_back(reg);
} }