From 972ce757d7f521f9f867594fe5661b8074130821 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 6 Apr 2015 11:42:57 -0400 Subject: 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 --- src/gallium/drivers/freedreno/ir3/ir3.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gallium/drivers/freedreno/ir3/ir3.c b/src/gallium/drivers/freedreno/ir3/ir3.c index 284c6559eb1..e015de91c33 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3.c +++ b/src/gallium/drivers/freedreno/ir3/ir3.c @@ -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; -- cgit v1.2.3