zink: allow sw loading with D3D_ALWAYS_SOFTWARE for nine

Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17775>
This commit is contained in:
Mike Blumenkrantz 2022-07-27 17:03:42 -04:00 committed by Marge Bot
parent cbbf25abfd
commit 8f7b892957

View file

@ -1323,7 +1323,8 @@ choose_pdev(struct zink_screen *screen)
assert(pdev_count > 0);
VkPhysicalDeviceProperties props;
bool cpu = debug_get_bool_option("LIBGL_ALWAYS_SOFTWARE", false);
bool cpu = debug_get_bool_option("LIBGL_ALWAYS_SOFTWARE", false) ||
debug_get_bool_option("D3D_ALWAYS_SOFTWARE", false);
/* priority when multiple drivers are available (highest to lowest):
VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU
VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU