From 20eddec0bb52552cb53461fda11a0b0ac3d3b449 Mon Sep 17 00:00:00 2001 From: Daivik Bhatia Date: Wed, 2 Jul 2025 20:00:29 +0530 Subject: [PATCH] v3d: remove unused functions from v3d_bufmgr.h v3d_bo_set_reference, v3d_bo_unreference_locked_timed and v3d_wait_seqno functions available since first v3d commit 45bb8f29571 ("broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.") are not used since the beginning or since the removal of its usage at 85f26828fea ("broadcom: only support v42 and v71") and b225cdceccb ("broadcom/vc5: Update the UABI for in/out syncobjs"). Reviewed-by: Iago Toral Quiroga Part-of: --- src/gallium/drivers/v3d/v3d_bufmgr.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.h b/src/gallium/drivers/v3d/v3d_bufmgr.h index 68d506ed26b..5363bf92fcb 100644 --- a/src/gallium/drivers/v3d/v3d_bufmgr.h +++ b/src/gallium/drivers/v3d/v3d_bufmgr.h @@ -65,14 +65,6 @@ struct v3d_bo *v3d_bo_open_dmabuf(struct v3d_screen *screen, int fd); bool v3d_bo_flink(struct v3d_bo *bo, uint32_t *name); int v3d_bo_get_dmabuf(struct v3d_bo *bo); -static inline void -v3d_bo_set_reference(struct v3d_bo **old_bo, struct v3d_bo *new_bo) -{ - if (pipe_reference(&(*old_bo)->reference, &new_bo->reference)) - v3d_bo_last_unreference(*old_bo); - *old_bo = new_bo; -} - static inline struct v3d_bo * v3d_bo_reference(struct v3d_bo *bo) { @@ -107,17 +99,6 @@ v3d_bo_unreference(struct v3d_bo **bo) *bo = NULL; } -static inline void -v3d_bo_unreference_locked_timed(struct v3d_bo **bo, time_t time) -{ - if (!*bo) - return; - - if (pipe_reference(&(*bo)->reference, NULL)) - v3d_bo_last_unreference_locked_timed(*bo, time); - *bo = NULL; -} - void * v3d_bo_map(struct v3d_bo *bo); @@ -127,10 +108,6 @@ v3d_bo_map_unsynchronized(struct v3d_bo *bo); bool v3d_bo_wait(struct v3d_bo *bo, uint64_t timeout_ns, const char *reason); -bool -v3d_wait_seqno(struct v3d_screen *screen, uint64_t seqno, uint64_t timeout_ns, - const char *reason); - void v3d_bufmgr_destroy(struct pipe_screen *pscreen);