diff options
author | Rob Clark <[email protected]> | 2017-11-19 10:36:19 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-03 14:17:40 -0500 |
commit | 15ebf387fc43632be0e68365cf92ac8fb1b64a9c (patch) | |
tree | c38457eb447df994c138d01a155122406accda3c /src/gallium/drivers/freedreno/freedreno_fence.h | |
parent | deb57fb237c3be9629a39ef1978dfac4563d6bda (diff) |
freedreno: rework fence tracking
ctx->last_fence isn't such a terribly clever idea, if batches can be
flushed out of order. Instead, each batch now holds a fence, which is
created before the batch is flushed (useful for next patch), that later
gets populated after the batch is actually flushed.
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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_fence.h b/src/gallium/drivers/freedreno/freedreno_fence.h index 1de2d0a5146..c1a9fd3f1cc 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.h +++ b/src/gallium/drivers/freedreno/freedreno_fence.h @@ -31,6 +31,8 @@ #include "pipe/p_context.h" +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, struct pipe_fence_handle *pfence); @@ -45,8 +47,7 @@ void fd_fence_server_sync(struct pipe_context *pctx, 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, int fence_fd); +struct fd_batch; +struct pipe_fence_handle * fd_fence_create(struct fd_batch *batch); #endif /* FREEDRENO_FENCE_H_ */ |