tu/virtio: silence startup spam on asahi

quiet a big pile of:

TU: error: ../src/freedreno/vulkan/tu_knl_drm_virtio.cc:1299: could not get connect vdrm: No such file or directory (VK_ERROR_INCOMPATIBLE_DRIVER)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31243>
This commit is contained in:
Alyssa Rosenzweig 2024-09-18 13:29:25 -04:00 committed by Marge Bot
parent 78a202157e
commit f7d45cb362

View file

@ -1297,10 +1297,18 @@ tu_knl_drm_virtio_load(struct tu_instance *instance,
version->name);
}
/* Try to connect. If this doesn't work, it's probably because we're running
* in a non-Adreno VM. Unless startup debug info is specifically requested,
* we should silently exit and let another Vulkan driver try probing instead.
*/
vdrm = vdrm_device_connect(fd, VIRTGPU_DRM_CONTEXT_MSM);
if (!vdrm) {
return vk_startup_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
"could not get connect vdrm: %s", strerror(errno));
if (TU_DEBUG(STARTUP)) {
return vk_startup_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
"could not get connect vdrm: %s", strerror(errno));
} else {
return VK_ERROR_INCOMPATIBLE_DRIVER;
}
}
caps = vdrm->caps;