Module: Mesa
Branch: master
Commit: 6afd7be1326986d097efc3b0fed0438106e2fba2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6afd7be1326986d097efc3b0fed0438106e2fba2

Author: Rob Clark <[email protected]>
Date:   Wed Apr  9 16:33:23 2014 -0400

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 <[email protected]>

---

 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 b5544e8..2e2a66d 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;
 }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to