diff options
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, 9 insertions, 3 deletions
diff --git a/lib/mesa/src/gbm/backends/dri/gbm_driint.h b/lib/mesa/src/gbm/backends/dri/gbm_driint.h index 3f46effbe..26376efb1 100644 --- a/lib/mesa/src/gbm/backends/dri/gbm_driint.h +++ b/lib/mesa/src/gbm/backends/dri/gbm_driint.h @@ -28,8 +28,11 @@ #ifndef _GBM_DRI_INTERNAL_H_ #define _GBM_DRI_INTERNAL_H_ +#include <xf86drm.h> +#include <string.h> #include <sys/mman.h> #include "gbmint.h" +#include "c11/threads.h" #include "common_drm.h" @@ -45,16 +48,19 @@ struct gbm_dri_device { void *driver; __DRIscreen *screen; + __DRIcontext *context; + mtx_t mutex; const __DRIcoreExtension *core; const __DRIdri2Extension *dri2; + const __DRI2fenceExtension *fence; const __DRIimageExtension *image; const __DRIswrastExtension *swrast; const __DRI2flushExtension *flush; const __DRIdri2LoaderExtension *loader; const __DRIconfig **driver_configs; - const __DRIextension **extensions; + const __DRIextension **loader_extensions; const __DRIextension **driver_extensions; __DRIimage *(*lookup_image)(__DRIscreen *screen, void *image, void *data); @@ -130,7 +136,7 @@ gbm_dri_surface(struct gbm_surface *surface) } static inline void * -gbm_dri_bo_map(struct gbm_dri_bo *bo) +gbm_dri_bo_map_dumb(struct gbm_dri_bo *bo) { struct drm_mode_map_dumb map_arg; int ret; @@ -159,7 +165,7 @@ gbm_dri_bo_map(struct gbm_dri_bo *bo) } static inline void -gbm_dri_bo_unmap(struct gbm_dri_bo *bo) +gbm_dri_bo_unmap_dumb(struct gbm_dri_bo *bo) { munmap(bo->map, bo->size); bo->map = NULL; |