wayland: Don't rely on static variable for identifying wl_drm buffers
[mesa.git] / src / gbm / backends / dri / gbm_driint.h
index f4043683f11dc1fdf048a31ccff69bc4c10fab0f..90d764fb44f1dd37b78e082c84d1be42900c5bdf 100644 (file)
@@ -66,12 +66,18 @@ struct gbm_dri_device {
                             int *width, int *height,
                             unsigned int *attachments, int count,
                             int *out_count, void *data);
+
+   struct wl_drm *wl_drm;
 };
 
 struct gbm_dri_bo {
    struct gbm_drm_bo base;
 
    __DRIimage *image;
+
+   /* Only used for cursors */
+   uint32_t handle, size;
+   void *map;
 };
 
 struct gbm_dri_surface {