From 2f181bc3919b87b8bebfae7ad8568330d1780193 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 23 Jul 2014 15:08:40 -0400 Subject: [PATCH] freedreno/a3xx/compiler: fix p0 (kill, etc) Don't assert (debug builds) or assign random uninitialized value for predicate register (p0).. that screws up kill, etc. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a3xx/ir3_ra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a3xx/ir3_ra.c b/src/gallium/drivers/freedreno/a3xx/ir3_ra.c index a9a510f3bc2..67f92e670e9 100644 --- a/src/gallium/drivers/freedreno/a3xx/ir3_ra.c +++ b/src/gallium/drivers/freedreno/a3xx/ir3_ra.c @@ -576,7 +576,8 @@ static void ir3_instr_ra(struct ir3_ra_ctx *ctx, dst->flags &= ~IR3_REG_ADDR; num = regid(REG_A0, 0) | REG_HALF; } else { - assert(0); + /* predicate register (p0).. etc */ + return; } ra_assign(ctx, instr, num); -- 2.30.2