From 6afd7be1326986d097efc3b0fed0438106e2fba2 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 9 Apr 2014 16:33:23 -0400 Subject: [PATCH] freedreno/a3xx: assert() -> debug_assert() We hit this assert with some piglit tests. Which appears to be a bug outside of freedreno. Previously we were relying on assert() being redefined to debug_assert() so that we didn't crash in release builds. Somehow that stopped working. So just use debug_assert() directly. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a3xx/fd3_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_program.c b/src/gallium/drivers/freedreno/a3xx/fd3_program.c index b5544e8c358..2e2a66dc616 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_program.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_program.c @@ -300,7 +300,7 @@ find_output(const struct fd3_shader_variant *so, fd3_semantic semantic) return find_output(so, fd3_semantic_name(TGSI_SEMANTIC_COLOR, idx)); } - assert(0); + debug_assert(0); return 0; } -- 2.30.2