broadcom/vc4: Fix release build
authorEric Anholt <eric@anholt.net>
Wed, 27 Sep 2017 20:01:04 +0000 (13:01 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 27 Sep 2017 20:03:14 +0000 (13:03 -0700)
commit3e3772c1b3727c67da1cec503e7afb37e3786f53
tree484df8d26707d85f9d017a8437ba8335b8cb2e6f
parenta8fd58eae59607ac42eaa7187b0d9e6c51b83af9
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 <derekf@osg.samsung.com>
src/gallium/drivers/vc4/vc4_bufmgr.c