freedreno/ir3/asm: change assert to warning

It probably *should* be an assert, but for now TGSI f/e isn't very good
about dealing w/ CONST vs ABS/NEG.  So for debug builds, print a warning
instead of crashing with an assert for now.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2015-04-06 11:42:57 -04:00
parent 09cbd97a47
commit 972ce757d7
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ static uint32_t reg(struct ir3_register *reg, struct ir3_info *info,
{
reg_t val = { .dummy32 = 0 };
assert(!(reg->flags & ~valid_flags));
if (reg->flags & ~valid_flags) {
debug_printf("INVALID FLAGS: %x vs %x\n",
reg->flags, valid_flags);
}
if (!(reg->flags & IR3_REG_R))
repeat = 0;