Mesa (master): broadcom/vc4: Remove dead vc4_bo_set_reference().

Eric Anholt anholt at kemper.freedesktop.org
Fri Feb 23 16:44:23 UTC 2018


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Feb 20 15:59:10 2018 +0000

broadcom/vc4: Remove dead vc4_bo_set_reference().

It would be broken if NULL was passed to it anyway, since it wouldn't
participate in screen->bo_handles management.

---

 src/gallium/drivers/vc4/vc4_bufmgr.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.h b/src/gallium/drivers/vc4/vc4_bufmgr.h
index e0f6bbcfd8..ecd0daa7c7 100644
--- a/src/gallium/drivers/vc4/vc4_bufmgr.h
+++ b/src/gallium/drivers/vc4/vc4_bufmgr.h
@@ -73,14 +73,6 @@ struct vc4_bo *vc4_bo_open_dmabuf(struct vc4_screen *screen, int fd,
 bool vc4_bo_flink(struct vc4_bo *bo, uint32_t *name);
 int vc4_bo_get_dmabuf(struct vc4_bo *bo);
 
-static inline void
-vc4_bo_set_reference(struct vc4_bo **old_bo, struct vc4_bo *new_bo)
-{
-        if (pipe_reference(&(*old_bo)->reference, &new_bo->reference))
-                vc4_bo_last_unreference(*old_bo);
-        *old_bo = new_bo;
-}
-
 static inline struct vc4_bo *
 vc4_bo_reference(struct vc4_bo *bo)
 {




More information about the mesa-commit mailing list