ir3: fix recognizing const/imm registers as a0
Fixes: 72bb4d79dc ("ir3/legalize: handle scalar ALU WAR hazards for a0.x")
Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30611>
This commit is contained in:
@@ -1401,6 +1401,8 @@ is_reg_gpr(const struct ir3_register *reg)
|
||||
static inline bool
|
||||
is_reg_a0(const struct ir3_register *reg)
|
||||
{
|
||||
if (reg->flags & (IR3_REG_CONST | IR3_REG_IMMED))
|
||||
return false;
|
||||
return reg->num == regid(REG_A0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user