freedreno/a3xx: little extra debug

Catch things which should not happen in debug builds.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2014-03-29 11:42:01 -04:00
parent 92141afd0e
commit ae5efaf285
2 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,8 @@ find_output(const struct fd3_shader_variant *so, fd3_semantic semantic)
return find_output(so, fd3_semantic_name(TGSI_SEMANTIC_COLOR, idx));
}
assert(0);
return 0;
}

View File

@ -440,6 +440,9 @@ static void ra_assign_reg(struct ir3_visitor *v,
reg->flags &= ~IR3_REG_SSA;
reg->num = a->num & ~REG_HALF;
assert(reg->num >= 0);
if (a->num & REG_HALF) {
reg->flags |= IR3_REG_HALF;
/* if dst reg being assigned, patch up the instr: */