mesa/src/egl/drivers/dri2
José Expósito 4c3f8d3af8 egl/wayland: fix crash in dri2_initialize_wayland_swrast
When "dri2_wl_formats_init" fails in "dri2_initialize_wayland_swrast",
the "dri2_display_destroy" function is called for clean up. However, the
"dri2_egl_display" was not associated with the display in its
"DriverData" field yet.

The following cast in "dri2_display_destroy":

  struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);

Expands to:

  _EGL_DRIVER_TYPECAST(drvname ## _display, _EGLDisplay, obj->DriverData)

Crashing.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13972>
2022-03-07 08:26:01 +00:00
..
egl_dri2.c egl: Use the new no-error driver interface 2022-02-04 18:36:24 +00:00
egl_dri2.h android: Push in-fence-fd down to driver 2022-03-04 22:16:20 +00:00
platform_android.c egl+libsync: Add helper to complain about invalid fence fd's 2022-03-04 22:16:20 +00:00
platform_android.h egl/android: restore image creation fallback path used by virgl 2021-07-09 16:18:23 +00:00
platform_android_mapper.cpp egl/android: restore image creation fallback path used by virgl 2021-07-09 16:18:23 +00:00
platform_device.c egl/dri: Enable FP16 for EGL_EXT_platform_device 2021-10-13 16:36:27 +00:00
platform_drm.c gbm/dri: implement image lookup extension version 2 2021-09-09 01:42:39 +00:00
platform_surfaceless.c egl/surfaceless: try kms_swrast before swrast 2021-07-21 23:12:58 +00:00
platform_wayland.c egl/wayland: fix crash in dri2_initialize_wayland_swrast 2022-03-07 08:26:01 +00:00
platform_x11.c
platform_x11_dri3.c loader/dri3: replace is_pixmap with drawable type 2021-12-07 03:26:13 +00:00
platform_x11_dri3.h