From 410aa3eb45c88dd939dcecaa2aafa8f5afd6e000 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 25 Jan 2012 16:24:15 +0200 Subject: egl_dri2: make flush extension useable by drm platform --- src/gbm/backends/dri/gbm_dri.c | 1 + src/gbm/backends/dri/gbm_driint.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/gbm/backends') diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 98f14cd5343..1e02287651c 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -70,6 +70,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) }, { NULL, 0, 0 } }; diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h index c5b5e17a4ee..d801a081375 100644 --- a/src/gbm/backends/dri/gbm_driint.h +++ b/src/gbm/backends/dri/gbm_driint.h @@ -46,6 +46,7 @@ struct gbm_dri_device { __DRIcoreExtension *core; __DRIdri2Extension *dri2; __DRIimageExtension *image; + __DRI2flushExtension *flush; const __DRIconfig **driver_configs; const __DRIextension *extensions[3]; -- cgit v1.2.3