zink: block inferred loading for swrast

this should always load llvmpipe

Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34163>
This commit is contained in:
Mike Blumenkrantz 2025-03-24 16:26:08 -04:00 committed by Marge Bot
parent 9ee435f92a
commit 49aec32f57

View file

@ -1681,7 +1681,7 @@ choose_pdev(struct zink_screen *screen, int64_t dev_major, int64_t dev_minor, ui
VKSCR(GetPhysicalDeviceProperties)(screen->pdev, &screen->info.props);
/* allow software rendering only if forced by the user */
if (!cpu && screen->info.props.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU) {
if (((!cpu || screen->driver_name_is_inferred) && screen->info.props.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU)) {
screen->pdev = VK_NULL_HANDLE;
return;
}