[Mesa-dev] [PATCH 2/2] egl_dri2: Enable the DRI2 fence extension

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


To support the EGL_KHR_fence_sync extension on the DRM EGL platform,
copy the DRI2 fence extension from the GBM DRI backend.

Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
 src/egl/drivers/dri2/platform_drm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c
index 3f4f7e7..9cc9324 100644
--- a/src/egl/drivers/dri2/platform_drm.c
+++ b/src/egl/drivers/dri2/platform_drm.c
@@ -647,6 +647,7 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp)
    dri2_dpy->dri2 = dri2_dpy->gbm_dri->dri2;
    dri2_dpy->image = dri2_dpy->gbm_dri->image;
    dri2_dpy->flush = dri2_dpy->gbm_dri->flush;
+   dri2_dpy->fence = dri2_dpy->gbm_dri->fence;
    dri2_dpy->swrast = dri2_dpy->gbm_dri->swrast;
    dri2_dpy->driver_configs = dri2_dpy->gbm_dri->driver_configs;
 
-- 
2.8.0.rc3



More information about the mesa-dev mailing list