freedreno/a3xx: assert() -> debug_assert()
authorRob Clark <robclark@freedesktop.org>
Wed, 9 Apr 2014 20:33:23 +0000 (16:33 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 9 Apr 2014 20:37:04 +0000 (16:37 -0400)
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 <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_program.c

index b5544e8c358b14ef9ef0d06f0b7ed59596edeedc..2e2a66dc616e474c1b4bb0771ebfc470a82ba80a 100644 (file)
@@ -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;
 }