From: Rob Clark Date: Sat, 31 Mar 2018 17:58:11 +0000 (-0400) Subject: freedreno/ir3: clear SSA flag when assigning "ARRAY" regs too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96e7927fb2234bd2358a0da11ca0ce47e3b3c82b;p=mesa.git freedreno/ir3: clear SSA flag when assigning "ARRAY" regs too Avoids a misleading "INVALID FLAGS" warning in debug builds. Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_ra.c b/src/gallium/drivers/freedreno/ir3/ir3_ra.c index 0da3d43f6ea..74d85eaf8e2 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_ra.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_ra.c @@ -995,6 +995,7 @@ reg_assign(struct ir3_ra_ctx *ctx, struct ir3_register *reg, reg->array.offset = num; } else { reg->num = num; + reg->flags &= ~IR3_REG_SSA; } reg->flags &= ~IR3_REG_ARRAY;