[Mesa-dev] [PATCH 1/2] gbm: Enable DRI2 fence extension in the GBM DRI backend

Philipp Zabel p.zabel at pengutronix.de
Wed May 25 13:44:18 UTC 2016


Am Dienstag, den 10.05.2016, 17:35 +0200 schrieb Philipp Zabel:
> To support the EGL_KHR_fence_sync extension on the DRM EGL platform,
> add the DRI2 fence extension to the dri_core_extensions match table.
> 
> Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>

Gentle ping. Is this about the right way to enable the
EGL_KHR_fence_sync extension on DRM EGL platforms?

regards
Philipp

> ---
>  src/gbm/backends/dri/gbm_dri.c    | 1 +
>  src/gbm/backends/dri/gbm_driint.h | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
> index 236f2ae..4241636 100644
> --- a/src/gbm/backends/dri/gbm_dri.c
> +++ b/src/gbm/backends/dri/gbm_dri.c
> @@ -243,6 +243,7 @@ struct dri_extension_match {
>  static struct dri_extension_match dri_core_extensions[] = {
>     { __DRI2_FLUSH, 1, offsetof(struct gbm_dri_device, flush) },
>     { __DRI_IMAGE, 1, offsetof(struct gbm_dri_device, image) },
> +   { __DRI2_FENCE, 1, offsetof(struct gbm_dri_device, fence) },
>     { NULL, 0, 0 }
>  };
>  
> diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h
> index 3f46eff..4a6e28b 100644
> --- a/src/gbm/backends/dri/gbm_driint.h
> +++ b/src/gbm/backends/dri/gbm_driint.h
> @@ -52,6 +52,7 @@ struct gbm_dri_device {
>     const __DRIswrastExtension *swrast;
>     const __DRI2flushExtension *flush;
>     const __DRIdri2LoaderExtension *loader;
> +   const __DRI2fenceExtension *fence;
>  
>     const __DRIconfig   **driver_configs;
>     const __DRIextension **extensions;




More information about the mesa-dev mailing list