don't fail when encountering render-only devices

This commit is contained in:
Victoria Brekenfeld 2023-10-17 16:40:24 +02:00
parent 806e10fcd9
commit 02d818bfee

View file

@ -386,9 +386,9 @@ pub fn init_backend(
state.launch_xwayland(Some(primary)); state.launch_xwayland(Some(primary));
for (dev, path) in udev_dispatcher.as_source_ref().device_list() { for (dev, path) in udev_dispatcher.as_source_ref().device_list() {
state if let Err(err) = state.device_added(dev, path.into(), dh, false) {
.device_added(dev, path.into(), dh, false) warn!("Failed to add device {}: {:?}", path.display(), err);
.with_context(|| format!("Failed to add drm device: {}", path.display()))?; }
} }
// HACK: amdgpu doesn't like us initializing vulkan too early.. // HACK: amdgpu doesn't like us initializing vulkan too early..