From 585daa237807ad4bc8ce3bf40610113333a529de Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Mon, 4 Dec 2017 15:27:08 -0500 Subject: gallium: add type parameter to create_fence_fd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An fd can potentially have different types of objects backing it. Specifying the type helps us make sure we treat the FD correctly. This is in preparation to allow importing syncobj fence FDs in addition to native sync FDs. Signed-off-by: Andres Rodriguez Reviewed-by: Marek Olšák --- src/gallium/drivers/freedreno/freedreno_fence.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 c1a9fd3f1cc..0842a1d618d 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.h +++ b/src/gallium/drivers/freedreno/freedreno_fence.h @@ -41,7 +41,8 @@ boolean fd_fence_finish(struct pipe_screen *screen, struct pipe_fence_handle *pfence, uint64_t timeout); void fd_create_fence_fd(struct pipe_context *pctx, - struct pipe_fence_handle **pfence, int fd); + struct pipe_fence_handle **pfence, int fd, + enum pipe_fd_type type); void fd_fence_server_sync(struct pipe_context *pctx, struct pipe_fence_handle *fence); int fd_fence_get_fd(struct pipe_screen *pscreen, -- cgit v1.2.3