mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-02 06:40:20 +01:00
rsx/cfg: Skip literal constants when annotating instructions
This commit is contained in:
parent
fa40cef0b1
commit
8ff3dda5e8
|
|
@ -98,7 +98,11 @@ namespace rsx::assembler::FP
|
|||
for (u32 i = 0; i < operand_count; 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue