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

Author: Eric Anholt <[email protected]>
Date:   Wed Sep 27 13:01:04 2017 -0700

broadcom/vc4: Fix release build

I remember thinking "gosh, it would be nice if I could do a kernel-style
'if (!IS_ENABLED(DEBUG))' instead of using an #ifdef, so the code was
compiled on both builds", and then forgot to test a release build anyway.

Fixes: a8fd58eae596 ("vc4: Add labels to BOs for debug builds or with 
VC4_DEBUG=surf set.")
Reported-by: Derek Foreman <[email protected]>

---

 src/gallium/drivers/vc4/vc4_bufmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c 
b/src/gallium/drivers/vc4/vc4_bufmgr.c
index 9c4cc4cba8..b300fa5bd0 100644
--- a/src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
@@ -56,7 +56,7 @@ vc4_bo_label(struct vc4_screen *screen, struct vc4_bo *bo, 
const char *fmt, ...)
          * (for debugging a single app's allocation).
          */
 #ifndef DEBUG
-        if (!(VC4_DEBUG & VC4_DEBUG_SURFACE))
+        if (!(vc4_debug & VC4_DEBUG_SURFACE))
                 return;
 #endif
         va_list va;

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

Reply via email to