mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
78a202157e
commit
f7d45cb362
1 changed files with 10 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue