From: Rob Clark Date: Wed, 23 Jul 2014 19:08:40 +0000 (-0400) Subject: freedreno/a3xx/compiler: fix p0 (kill, etc) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f181bc3919b87b8bebfae7ad8568330d1780193;p=mesa.git 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 --- 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);