wayland: Don't rely on static variable for identifying wl_drm buffers
[mesa.git] / src / gbm / backends / dri / gbm_driint.h
index 18fc3c0919ee752c48119c99921ecffd3f39c510..90d764fb44f1dd37b78e082c84d1be42900c5bdf 100644 (file)
@@ -66,6 +66,8 @@ struct gbm_dri_device {
                             int *width, int *height,
                             unsigned int *attachments, int count,
                             int *out_count, void *data);
                             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_dri_bo {