Merge pull request #200 from pop-os/asahi-testing

kms: don't fail when encountering render-only devices
This commit is contained in:
Victoria Brekenfeld 2023-10-18 11:22:26 +02:00 committed by GitHub
commit c38a236ffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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