broadcom/vc4: Remove dead vc4_bo_set_reference().
authorEric Anholt <eric@anholt.net>
Tue, 20 Feb 2018 15:59:10 +0000 (15:59 +0000)
committerEric Anholt <eric@anholt.net>
Fri, 23 Feb 2018 16:42:13 +0000 (08:42 -0800)
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

index e0f6bbcfd8b4d7da8855d92d9f7008650ff6dafb..ecd0daa7c70f48742d93ebd1dfa270f58adebcd0 100644 (file)
@@ -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)
 {