mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
egl/wayland: bail on zink init in non-sw mode if extension check fails
cc: mesa-stable Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30479>
This commit is contained in:
parent
4e777bb19b
commit
d120992e1a
1 changed files with 4 additions and 2 deletions
|
|
@ -2949,8 +2949,10 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
|
|||
dri2_dpy->formats.num_formats))
|
||||
goto cleanup;
|
||||
|
||||
if (disp->Options.Zink)
|
||||
dri2_initialize_wayland_drm_extensions(dri2_dpy);
|
||||
if (disp->Options.Zink) {
|
||||
if (!dri2_initialize_wayland_drm_extensions(dri2_dpy) && !disp->Options.ForceSoftware)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
dri2_dpy->driver_name = strdup(disp->Options.Zink ? "zink" : "swrast");
|
||||
if (!dri2_load_driver(disp))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue