It would be broken if NULL was passed to it anyway, since it wouldn't
participate in screen->bo_handles management.
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)
{