gallium-egl: Fix compile errors introduced in de315f76a
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 20 Mar 2013 00:16:57 +0000 (20:16 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 20 Mar 2013 00:17:47 +0000 (20:17 -0400)
The commit changed API in a helper library shared by both egl_dri2 and
the gallium egl state tracker, but only egl_dri2 was updated to use the
new interface.

Tested-by: Giulio Camuffo <giuliocamuffo@gmail.com>
src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr_helper.c
src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr_helper.h
src/gallium/state_trackers/egl/drm/native_drm.c
src/gallium/state_trackers/egl/wayland/native_drm.c
src/gallium/state_trackers/egl/x11/native_dri2.c

index 43655530d842a6cf9b92a177c620daa18fc77878..a9e7342b68b7e95cab1288158840eeebe8605c24 100644 (file)
@@ -13,7 +13,7 @@
 #include "native_wayland_drm_bufmgr_helper.h"
 
 void
-egl_g3d_wl_drm_helper_reference_buffer(void *user_data, uint32_t name,
+egl_g3d_wl_drm_helper_reference_buffer(void *user_data, uint32_t name, int fd,
                                        struct wl_drm_buffer *buffer)
 {
    struct native_display *ndpy = user_data;
index 40c46e94d1f32241a0a51e74fe32b205fb1ba9f9..de00580e2461eb48bf126309406ad3021a5c0e3b 100644 (file)
@@ -29,7 +29,7 @@
 #include "wayland-drm.h"
 
 void
-egl_g3d_wl_drm_helper_reference_buffer(void *user_data, uint32_t name,
+egl_g3d_wl_drm_helper_reference_buffer(void *user_data, uint32_t name, int fd,
                                        struct wl_drm_buffer *buffer);
 
 void
index f0c0f5487774949717b33bc2424ee16cbea40824..c153865ea949b43ce39520b60bd6e3ddb87673c6 100644 (file)
@@ -213,7 +213,7 @@ drm_display_bind_wayland_display(struct native_display *ndpy,
 
    drmdpy->wl_server_drm = wayland_drm_init(wl_dpy,
          drmdpy->device_name,
-         &wl_drm_callbacks, ndpy);
+         &wl_drm_callbacks, ndpy, 0);
 
    if (!drmdpy->wl_server_drm)
       return FALSE;
index 3801face2d3a0f6dbaeedcca3aff83ef70bfed68..2eb7043a49e66269f931eb1cdbe47f8dcdfa51e1 100644 (file)
@@ -271,7 +271,7 @@ wayland_drm_display_bind_wayland_display(struct native_display *ndpy,
 
    drmdpy->wl_server_drm =
       wayland_drm_init(wl_dpy, drmdpy->device_name,
-                       &wl_drm_callbacks, ndpy);
+                       &wl_drm_callbacks, ndpy, 0);
 
    if (!drmdpy->wl_server_drm)
       return FALSE;
index a989f9e9108b35f34b114018d80f55c3904af433..fc18a4c9d7a917ed86bddeebc3b818c82206198d 100644 (file)
@@ -861,7 +861,7 @@ dri2_display_bind_wayland_display(struct native_display *ndpy,
 
    dri2dpy->wl_server_drm = wayland_drm_init(wl_dpy,
          x11_screen_get_device_name(dri2dpy->xscr),
-         &wl_drm_callbacks, ndpy);
+         &wl_drm_callbacks, ndpy, 0);
 
    if (!dri2dpy->wl_server_drm)
       return FALSE;