From: Rob Clark Date: Wed, 9 Apr 2014 20:33:23 +0000 (-0400) Subject: freedreno/a3xx: assert() -> debug_assert() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6afd7be1326986d097efc3b0fed0438106e2fba2;p=mesa.git 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 --- 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; }