diff options
author | Rob Clark <[email protected]> | 2016-08-15 14:27:10 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-12-01 20:24:46 -0500 |
commit | 0b98e84e9ba082b9aa00b24fded3fb56224c6fc6 (patch) | |
tree | 8f3800c82abf2e071d2539e5a08d73f6d2bf5ad3 /src/gallium/drivers/freedreno/freedreno_fence.h | |
parent | 16f6ceaca9e25f86bcdc509fc0abb48e2d51c3fa (diff) |
freedreno: native fence fd support
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_fence.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_fence.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_fence.h b/src/gallium/drivers/freedreno/freedreno_fence.h index 32bfacc7627..1de2d0a5146 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.h +++ b/src/gallium/drivers/freedreno/freedreno_fence.h @@ -38,9 +38,15 @@ boolean fd_fence_finish(struct pipe_screen *screen, struct pipe_context *ctx, struct pipe_fence_handle *pfence, uint64_t timeout); +void fd_create_fence_fd(struct pipe_context *pctx, + struct pipe_fence_handle **pfence, int fd); +void fd_fence_server_sync(struct pipe_context *pctx, + struct pipe_fence_handle *fence); +int fd_fence_get_fd(struct pipe_screen *pscreen, + struct pipe_fence_handle *pfence); struct fd_context; struct pipe_fence_handle * fd_fence_create(struct fd_context *ctx, - uint32_t timestamp); + uint32_t timestamp, int fence_fd); #endif /* FREEDRENO_FENCE_H_ */ |