tu: Do not print anything on systems without Adreno GPU

Output debug info only when explicitly requested with
TU_DEBUG=startup otherwise we should be silent.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10213
Fixes: a669147689
("tu: Always print startup failure messages")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27527>
This commit is contained in:
Danylo Piliaiev
2024-02-08 17:57:17 +01:00
committed by Marge Bot
parent 7b0fd4cc05
commit c8cc7c5c18

View File

@@ -247,7 +247,7 @@ tu_physical_device_try_create(struct vk_instance *vk_instance,
#ifdef TU_HAS_VIRTIO
result = tu_knl_drm_virtio_load(instance, fd, version, &device);
#endif
} else {
} else if (TU_DEBUG(STARTUP)) {
result = vk_startup_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
"device %s (%s) is not compatible with turnip",
path, version->name);