kopper: Explicitly choose zink

If we pass zink=false to pipe_loader_drm_probe_fd, it could happen that
a Gallium driver that had been already discarded because of not
supporting the graphics CAP will be chosen.

To avoid that, explicitly ask pipe_loader_drm_probe_fd to choose the
zink Gallium driver.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30096>
This commit is contained in:
Tomeu Vizoso 2025-03-03 10:21:30 +01:00 committed by Marge Bot
parent 7e76c67632
commit 854bc2ee05

View file

@ -69,7 +69,7 @@ kopper_init_screen(struct dri_screen *screen, bool driver_name_is_inferred)
bool success;
#ifdef HAVE_LIBDRM
if (screen->fd != -1)
success = pipe_loader_drm_probe_fd(&screen->dev, screen->fd, false);
success = pipe_loader_drm_probe_fd(&screen->dev, screen->fd, true);
else
success = pipe_loader_vk_probe_dri(&screen->dev);
#else