On Fri, Nov 18, 2016 at 2:39 PM, Rob Clark <robdcl...@gmail.com> wrote:
> From: Rob Clark <robcl...@freedesktop.org>
>
> This will be needed for explicit synchronization with devices outside
> the gpu, ie. EGL_ANDROID_native_fence_sync.
>
> Signed-off-by: Rob Clark <robcl...@freedesktop.org>
> Reviewed-by: Marek Olšák <marek.ol...@amd.com>
> ---
>  src/gallium/include/pipe/p_context.h  | 6 ++++++
>  src/gallium/state_trackers/dri/dri2.c | 6 +++++-
>  2 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/include/pipe/p_context.h 
> b/src/gallium/include/pipe/p_context.h
> index b97aad5..ee8a511 100644
> --- a/src/gallium/include/pipe/p_context.h
> +++ b/src/gallium/include/pipe/p_context.h
> @@ -475,6 +475,12 @@ struct pipe_context {
>                   unsigned flags);
>
>     /**
> +    * Insert commands to have GPU wait for fence to be signaled.
> +    */
> +   void (*fence_server_sync)(struct pipe_context *pipe,
> +                             struct pipe_fence_handle *fence);

BTW, why is it called "server_sync"? Do we have a server in gallium?

Marek
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to