loader: silence implicit-load zink error by the loader

Since commit 7d9ea77b45 ("glx: add automatic zink fallback loading between hw
and sw drivers"), zink could be tried as a fallback. It'd better silence
if the zink loading is implicit and on fail as what commit 4cc975c6e9 ("glx: silence
more implicit-load zink errors") has done. But there seems to be one
left bebind, which is spit when building swrast but no zink with -Dglx=dri.

v2: plumb the flag through from egl/glx to the loader (zmike)

Signed-off-by: Luc Ma <luc@sietium.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28970>
This commit is contained in:
Luc Ma
2024-04-29 22:53:31 +08:00
committed by Marge Bot
parent dc7e80ce85
commit 3825e24085
11 changed files with 22 additions and 14 deletions

View File

@@ -1058,7 +1058,7 @@ dri2CreateScreen(int screen, struct glx_display * priv, bool driver_name_is_infe
}
psc->driverName = driverName;
extensions = driOpenDriver(driverName, &psc->driver);
extensions = driOpenDriver(driverName, &psc->driver, driver_name_is_inferred);
if (extensions == NULL)
goto handle_error;