freedreno/ir3: clear SSA flag when assigning "ARRAY" regs too
authorRob Clark <robdclark@gmail.com>
Sat, 31 Mar 2018 17:58:11 +0000 (13:58 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 31 Mar 2018 19:10:16 +0000 (15:10 -0400)
Avoids a misleading "INVALID FLAGS" warning in debug builds.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_ra.c

index 0da3d43f6eaf5ef6d9b3afd14f18aa228aeecfb6..74d85eaf8e2ee965c947117246f3336b53e4f9bf 100644 (file)
@@ -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;