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:
Job Noorman
2024-08-21 09:52:02 +02:00
committed by Marge Bot
parent 43d65e0ff0
commit 7cc24aa506
+2
View File
@@ -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);
}