loader: Wrap nouveau_zink_predicate with HAVE_LIBDRM

Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Fixes: 265afd9bfd ("loader: Don't fall back to nouveau GL without zink")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14290
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38429>
This commit is contained in:
Yurii Kolesnykov 2025-11-13 16:17:34 +00:00 committed by Marge Bot
parent d7f03c649e
commit 4913177b14

View file

@ -139,6 +139,9 @@ iris_predicate(int fd, const char *driver)
bool
nouveau_zink_predicate(int fd, const char *driver)
{
#ifndef HAVE_LIBDRM
return true;
#else
/* Never load on nv proprietary driver */
if (!drm_fd_is_nouveau(fd))
return false;
@ -191,6 +194,7 @@ nouveau_zink_predicate(int fd, const char *driver)
if (!use_zink && !strcmp(driver, "nouveau"))
return true;
return false;
#endif
}