From c93eae7f108d81239a03a195db334d41322d9152 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 30 Jul 2019 08:12:46 -0700 Subject: freedreno: drop unused fd_fence_ref param The pscreen param was just there to satisfy pipe_screen::fence_reference But some of the internal uses passed NULL for screen. Which is a bit ugly. Instead drop the param and add a shim function to plug into the screen. Signed-off-by: Rob Clark Reviewed-by: Eric Anholt --- src/gallium/drivers/freedreno/freedreno_fence.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/freedreno/freedreno_fence.h') diff --git a/src/gallium/drivers/freedreno/freedreno_fence.h b/src/gallium/drivers/freedreno/freedreno_fence.h index 425c1906760..f0bc21bc890 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.h +++ b/src/gallium/drivers/freedreno/freedreno_fence.h @@ -31,10 +31,9 @@ void fd_fence_populate(struct pipe_fence_handle *fence, uint32_t timestamp, int fence_fd); -void fd_fence_ref(struct pipe_screen *pscreen, - struct pipe_fence_handle **ptr, +void fd_fence_ref(struct pipe_fence_handle **ptr, struct pipe_fence_handle *pfence); -bool fd_fence_finish(struct pipe_screen *screen, +bool fd_fence_finish(struct pipe_screen *pscreen, struct pipe_context *ctx, struct pipe_fence_handle *pfence, uint64_t timeout); -- cgit v1.2.3