From: Emil Velikov Date: Thu, 11 May 2017 21:31:49 +0000 (+0100) Subject: egl/surfaceless: use the image_driver for image_loader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6ecd1647fe2f568703b533c5070a87bc3e66701;p=mesa.git egl/surfaceless: use the image_driver for image_loader Analogous to previous commit. Cc: Chad Versace Cc: Gurchetan Singh Signed-off-by: Emil Velikov --- diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c index 6aea5876ae0..6563e466c09 100644 --- a/src/egl/drivers/dri2/platform_surfaceless.c +++ b/src/egl/drivers/dri2/platform_surfaceless.c @@ -134,10 +134,10 @@ dri2_surfaceless_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type, goto cleanup_surface; dri2_surf->dri_drawable = - dri2_dpy->dri2->createNewDrawable(dri2_dpy->dri_screen, config, - dri2_surf); + dri2_dpy->image_driver->createNewDrawable(dri2_dpy->dri_screen, config, + dri2_surf); if (dri2_surf->dri_drawable == NULL) { - _eglError(EGL_BAD_ALLOC, "dri2->createNewDrawable"); + _eglError(EGL_BAD_ALLOC, "image->createNewDrawable"); goto cleanup_surface; } @@ -297,7 +297,7 @@ dri2_initialize_surfaceless(_EGLDriver *drv, _EGLDisplay *disp) dri2_dpy->driver_name = loader_get_driver_for_fd(dri2_dpy->fd); if (dri2_dpy->driver_name) { - if (dri2_load_driver(disp)) { + if (dri2_load_driver_dri3(disp)) { driver_loaded = 1; break; }