egl_dri2: make flush extension useable by drm platform

This commit is contained in:
Ander Conselvan de Oliveira 2012-01-25 16:24:15 +02:00 committed by Kristian Høgsberg
parent 03eca9d92d
commit 410aa3eb45
3 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,7 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp)
dri2_dpy->core = dri2_dpy->gbm_dri->core;
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->driver_configs = dri2_dpy->gbm_dri->driver_configs;
dri2_dpy->gbm_dri->lookup_image = dri2_lookup_egl_image;

View File

@ -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 }
};

View File

@ -46,6 +46,7 @@ struct gbm_dri_device {
__DRIcoreExtension *core;
__DRIdri2Extension *dri2;
__DRIimageExtension *image;
__DRI2flushExtension *flush;
const __DRIconfig **driver_configs;
const __DRIextension *extensions[3];