freedreno/ir3: handle flat bypass for a4xx
[mesa.git] / src / gallium / drivers / freedreno / ir3 / ir3.c
index a02b06f059a7baaf77486da7152c2fe5a198f996..fe0ffc98c9751d61f84f3408c1afd9a31fb8062a 100644 (file)
@@ -113,6 +113,8 @@ static uint32_t reg(struct ir3_register *reg, struct ir3_info *info,
 
                if (reg->flags & IR3_REG_CONST) {
                        info->max_const = MAX2(info->max_const, max);
+               } else if (val.num == 63) {
+                       /* ignore writes to dummy register r63.x */
                } else if ((max != REG_A0) && (max != REG_P0)) {
                        if (reg->flags & IR3_REG_HALF) {
                                info->max_half_reg = MAX2(info->max_half_reg, max);