Merge branch 'gallium-drm-driver-drescriptor'
[mesa.git] / src / gallium / state_trackers / egl / x11 / native_x11.c
index 5d71778410b5c5d778db0ea378d3d519517e2e1c..6f1e5998732c547a72fc93c9b435f34535406fdf 100644 (file)
@@ -45,7 +45,7 @@ x11_probe_destroy(struct native_probe *nprobe)
 }
 
 struct native_probe *
-native_create_probe(EGLNativeDisplayType dpy)
+native_create_probe(void *dpy)
 {
    struct native_probe *nprobe;
    struct x11_screen *xscr;
@@ -117,8 +117,7 @@ native_get_name(void)
 }
 
 struct native_display *
-native_create_display(EGLNativeDisplayType dpy,
-                      struct native_event_handler *event_handler)
+native_create_display(void *dpy, struct native_event_handler *event_handler)
 {
    struct native_display *ndpy = NULL;
    boolean force_sw;
@@ -128,14 +127,14 @@ native_create_display(EGLNativeDisplayType dpy,
       force_sw = TRUE;
 
    if (!force_sw) {
-      ndpy = x11_create_dri2_display(dpy, event_handler);
+      ndpy = x11_create_dri2_display((Display *) dpy, event_handler);
    }
 
    if (!ndpy) {
       EGLint level = (force_sw) ? _EGL_INFO : _EGL_WARNING;
 
       _eglLog(level, "use software fallback");
-      ndpy = x11_create_ximage_display(dpy, event_handler);
+      ndpy = x11_create_ximage_display((Display *) dpy, event_handler);
    }
 
    return ndpy;