diff options
author | Philipp Zabel <[email protected]> | 2017-04-12 12:31:01 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-04-15 01:47:18 +0200 |
commit | 36f21017237ab536db74c84e0f778d3a58271c75 (patch) | |
tree | 399a8b2a5831dc764be6a80f4eafb76db62a8d78 /src/gallium/drivers/etnaviv/etnaviv_fence.h | |
parent | 96dfc014fd33a4f38e31fa1d4c9c4ea52d85a0b8 (diff) |
etnaviv: native fence fd support
This adds native fence fd support to etnaviv, similarly to commit
0b98e84e9ba0 ("freedreno: native fence fd"), enabled for kernel
driver version 1.1 or later.
Signed-off-by: Philipp Zabel <[email protected]>
Reviewed-By: Wladimir J. van der Laan <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_fence.h')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_fence.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_fence.h b/src/gallium/drivers/etnaviv/etnaviv_fence.h index cd91d2e19ed..cd68a428d3f 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_fence.h +++ b/src/gallium/drivers/etnaviv/etnaviv_fence.h @@ -30,8 +30,20 @@ #include "pipe/p_context.h" +void +etna_create_fence_fd(struct pipe_context *pctx, + struct pipe_fence_handle **pfence, int fd); + +void +etna_fence_server_sync(struct pipe_context *pctx, + struct pipe_fence_handle *fence); + +int +etna_fence_get_fd(struct pipe_screen *pscreen, + struct pipe_fence_handle *pfence); + struct pipe_fence_handle * -etna_fence_create(struct pipe_context *pctx); +etna_fence_create(struct pipe_context *pctx, int fence_fd); void etna_fence_screen_init(struct pipe_screen *pscreen); |