From 79f0819d681a7a3ec1deae7243681db10c33b92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 7 May 2024 11:39:28 +0200 Subject: [PATCH] backend/native: Don't warn when there is no render node Instead log a debug message. This fixes an issue similar to https://gitlab.gnome.org/GNOME/mutter/-/issues/2381, where a system may have a card node, but no render node, in which case we'd log a warning, causing test failures. --- src/backends/native/meta-backend-native.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c index e7c0beff08b..5b9fb7741c3 100644 --- a/src/backends/native/meta-backend-native.c +++ b/src/backends/native/meta-backend-native.c @@ -429,7 +429,7 @@ create_render_device (MetaBackendNative *backend_native, if (!render_node_path) { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, + g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "Couldn't find render node device for '%s'", meta_device_file_get_path (device_file)); return NULL; @@ -667,8 +667,10 @@ init_gpus (MetaBackendNative *native, if (!add_drm_device (native, device, &device_error)) { if (meta_backend_is_headless (backend) && - g_error_matches (device_error, G_IO_ERROR, - G_IO_ERROR_PERMISSION_DENIED)) + (g_error_matches (device_error, G_IO_ERROR, + G_IO_ERROR_PERMISSION_DENIED) || + g_error_matches (device_error, G_IO_ERROR, + G_IO_ERROR_NOT_FOUND))) { meta_topic (META_DEBUG_BACKEND, "Ignoring unavailable gpu '%s': %s'", -- GitLab