mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
ir3: Don't consider r63.x as a GPR
We have to be careful here because r63.x is also used to mean "register not assigned yet," but dummy destinations for prefetches will use r63.x and we don't want them to count as GPRs when determining whether to enable early preamble. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29873>
This commit is contained in:
parent
fa8758fc81
commit
b39b82dfbd
1 changed files with 3 additions and 0 deletions
|
|
@ -1369,6 +1369,9 @@ is_reg_gpr(const struct ir3_register *reg)
|
|||
{
|
||||
if ((reg_num(reg) == REG_A0) || (reg->flags & IR3_REG_PREDICATE))
|
||||
return false;
|
||||
if (!(reg->flags & (IR3_REG_SSA | IR3_REG_RELATIV)) &&
|
||||
reg->num == INVALID_REG)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue