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

Philipp Zabel p.zabel at pengutronix.de
Tue May 10 15:35:38 UTC 2016


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>
---
 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;
-- 
2.8.0.rc3



More information about the mesa-dev mailing list