diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-12-31 07:12:27 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-12-31 07:12:27 +0000 |
commit | 051645c92924bf915d82bf219f2ed67309b5577a (patch) | |
tree | 4aae126dd8e5a18c6a9926a5468d1561e6038a07 /lib/mesa/src/gbm/backends/dri/gbm_driint.h | |
parent | 2dae6fe6f74cf7fb9fd65285302c0331d9786b00 (diff) |
Merge Mesa 17.2.8
Diffstat (limited to 'lib/mesa/src/gbm/backends/dri/gbm_driint.h')
-rw-r--r-- | lib/mesa/src/gbm/backends/dri/gbm_driint.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/mesa/src/gbm/backends/dri/gbm_driint.h b/lib/mesa/src/gbm/backends/dri/gbm_driint.h index 26376efb1..db9038a62 100644 --- a/lib/mesa/src/gbm/backends/dri/gbm_driint.h +++ b/lib/mesa/src/gbm/backends/dri/gbm_driint.h @@ -34,8 +34,6 @@ #include "gbmint.h" #include "c11/threads.h" -#include "common_drm.h" - #include <GL/gl.h> /* dri_interface needs GL types */ #include "GL/internal/dri_interface.h" @@ -43,9 +41,10 @@ struct gbm_dri_surface; struct gbm_dri_bo; struct gbm_dri_device { - struct gbm_drm_device base; + struct gbm_device base; void *driver; + char *driver_name; /* Name of the DRI module, without the _dri suffix */ __DRIscreen *screen; __DRIcontext *context; @@ -57,7 +56,6 @@ struct gbm_dri_device { const __DRIimageExtension *image; const __DRIswrastExtension *swrast; const __DRI2flushExtension *flush; - const __DRIdri2LoaderExtension *loader; const __DRIconfig **driver_configs; const __DRIextension **loader_extensions; @@ -102,7 +100,7 @@ struct gbm_dri_device { }; struct gbm_dri_bo { - struct gbm_drm_bo base; + struct gbm_bo base; __DRIimage *image; @@ -150,12 +148,12 @@ gbm_dri_bo_map_dumb(struct gbm_dri_bo *bo) memset(&map_arg, 0, sizeof(map_arg)); map_arg.handle = bo->handle; - ret = drmIoctl(bo->base.base.gbm->fd, DRM_IOCTL_MODE_MAP_DUMB, &map_arg); + ret = drmIoctl(bo->base.gbm->fd, DRM_IOCTL_MODE_MAP_DUMB, &map_arg); if (ret) return NULL; bo->map = mmap(0, bo->size, PROT_WRITE, - MAP_SHARED, bo->base.base.gbm->fd, map_arg.offset); + MAP_SHARED, bo->base.gbm->fd, map_arg.offset); if (bo->map == MAP_FAILED) { bo->map = NULL; return NULL; |