diff options
author | Eric Anholt <[email protected]> | 2017-05-12 16:05:44 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-09-27 10:21:49 -0700 |
commit | a8fd58eae59607ac42eaa7187b0d9e6c51b83af9 (patch) | |
tree | 0adfc15b49ea1fc60eaf84691f18dcce4069e83f /src/gallium/drivers/vc4/vc4_bufmgr.h | |
parent | 673dda8330769309a319d3e7f24a029cd72a1caf (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_bufmgr.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.h b/src/gallium/drivers/vc4/vc4_bufmgr.h index 838314f43df..4e7b23e0862 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.h +++ b/src/gallium/drivers/vc4/vc4_bufmgr.h @@ -132,6 +132,9 @@ vc4_wait_seqno(struct vc4_screen *screen, uint64_t seqno, uint64_t timeout_ns, const char *reason); void +vc4_bo_label(struct vc4_screen *screen, struct vc4_bo *bo, const char *fmt, ...); + +void vc4_bufmgr_destroy(struct pipe_screen *pscreen); #endif /* VC4_BUFMGR_H */ |