aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2019-11-27 11:22:11 +0100
committerPierre-Eric Pelloux-Prayer <[email protected]>2019-12-10 09:25:28 +0100
commitcc0d0afe3b06e628fdd5576da07c50a15f859e98 (patch)
tree9393076330ae786fd17e704734311851e209e97b /src/gallium/include
parentf5c1cb23835d79faafc1819069c28b82cfcb5fc2 (diff)
st/mesa: add a notify_before_flush callback param to flush
The new callback is called right before the flush is done to allow users of st->flush to do some work after all the previous work has been flushed. This will be used by dri_flush in the next commit. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/state_tracker/st_api.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h
index 9fd36447c7b..258da8fdeaf 100644
--- a/src/gallium/include/state_tracker/st_api.h
+++ b/src/gallium/include/state_tracker/st_api.h
@@ -389,7 +389,9 @@ struct st_context_iface
* Flush all drawing from context to the pipe also flushes the pipe.
*/
void (*flush)(struct st_context_iface *stctxi, unsigned flags,
- struct pipe_fence_handle **fence);
+ struct pipe_fence_handle **fence,
+ void (*notify_before_flush_cb) (void*),
+ void* notify_before_flush_cb_args);
/**
* Replace the texture image of a texture object at the specified level.