summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-07-23 15:08:40 -0400
committerRob Clark <[email protected]>2014-07-23 15:10:53 -0400
commit2f181bc3919b87b8bebfae7ad8568330d1780193 (patch)
treeafbcbfd2d6d175d7c88a787c429d24c4b3b2789e /src/gallium/drivers
parentfb237ba746b494f74c6584666f1184c4453700e1 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/ir3_ra.c3
1 files changed, 2 insertions, 1 deletions
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);