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 <derekf@osg.samsung.com>
* (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;