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:
parent
92141afd0e
commit
ae5efaf285
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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: */
|
||||
|
|
Loading…
Reference in New Issue