egl: replace _EGLDriver param with _EGLDisplay->Driver in dri{2_x11,3}_create_window_...
authorEric Engestrom <eric@engestrom.ch>
Sun, 22 Apr 2018 14:48:15 +0000 (16:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 16 Aug 2020 13:49:17 +0000 (13:49 +0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>

src/egl/drivers/dri2/platform_x11.c
src/egl/drivers/dri2/platform_x11_dri3.c

index 68520f82022496fea93f6b9991d7ac4a53529521..9d3e4484c53df5920f56c7594fcfa6009c04ebd7 100644 (file)
@@ -379,7 +379,7 @@ dri2_x11_create_window_surface(const _EGLDriver *drv, _EGLDisplay *disp,
       surf->SwapInterval = 1;
 
       /* Override that with a driconf-set value. */
-      dri2_x11_swap_interval(drv, disp, surf, dri2_dpy->default_swap_interval);
+      dri2_x11_swap_interval(disp->Driver, disp, surf, dri2_dpy->default_swap_interval);
    }
 
    return surf;
index e1bacd804a7c9450b23fbc8bd3d06334c9f8948d..bf694287a04202476dc4ebe503576a621af36a96 100644 (file)
@@ -232,7 +232,7 @@ dri3_create_window_surface(const _EGLDriver *drv, _EGLDisplay *disp,
    surf = dri3_create_surface(drv, disp, EGL_WINDOW_BIT, conf,
                               native_window, attrib_list);
    if (surf != NULL)
-      dri3_set_swap_interval(drv, disp, surf, dri2_dpy->default_swap_interval);
+      dri3_set_swap_interval(disp->Driver, disp, surf, dri2_dpy->default_swap_interval);
 
    return surf;
 }