vc4: Add labels to BOs for debug builds or with VC4_DEBUG=surf set.
authorEric Anholt <eric@anholt.net>
Fri, 12 May 2017 23:05:44 +0000 (16:05 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 27 Sep 2017 17:21:49 +0000 (10:21 -0700)
commita8fd58eae59607ac42eaa7187b0d9e6c51b83af9
tree0adfc15b49ea1fc60eaf84691f18dcce4069e83f
parent673dda8330769309a319d3e7f24a029cd72a1caf
vc4: Add labels to BOs for debug builds or with VC4_DEBUG=surf set.

This has proven to be incredibly useful for debugging CMA allocation
failures and driving memory management improvements.  However, we don't
want to burden entry and exit from the BO cache with the labeling ioctl's
overhead on release builds.
src/gallium/drivers/vc4/vc4_bufmgr.c
src/gallium/drivers/vc4/vc4_bufmgr.h
src/gallium/drivers/vc4/vc4_resource.c
src/gallium/drivers/vc4/vc4_state.c