egl_dri2: allow RGBA masks to be specified for matching
[mesa.git] / src / egl / drivers / dri2 / egl_dri2.h
index 83ea21e5dc85479420b5fde02c06f36eda654682..be272f9bb25c39ee1378f1fbb7429cbd97c1ee5a 100644 (file)
@@ -44,7 +44,9 @@
 #include <GL/gl.h>
 #include <GL/internal/dri_interface.h>
 
+#ifdef HAVE_DRM_PLATFORM
 #include <gbm_driint.h>
+#endif
 
 #include "eglconfig.h"
 #include "eglcontext.h"
@@ -82,7 +84,10 @@ struct dri2_egl_display
    __DRIimageExtension      *image;
    int                       fd;
 
+#ifdef HAVE_DRM_PLATFORM
    struct gbm_dri_device    *gbm_dri;
+   int                       own_gbm_device;
+#endif
 
    char                     *device_name;
    char                     *driver_name;
@@ -118,8 +123,6 @@ enum wayland_buffer_type {
    WL_BUFFER_THIRD,
    WL_BUFFER_COUNT
 };
-
-#define __DRI_BUFFER_COUNT 10
 #endif
 
 enum dri2_surface_type {
@@ -205,7 +208,8 @@ dri2_lookup_egl_image(__DRIscreen *screen, void *image, void *data);
 
 struct dri2_egl_config *
 dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
-               int depth, EGLint surface_type, const EGLint *attr_list);
+               int depth, EGLint surface_type, const EGLint *attr_list,
+               const unsigned int *rgba_masks);
 
 _EGLImage *
 dri2_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,