From 8acff5050814a3564e6c44d6f543725504091923 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Wed, 25 Sep 2024 23:42:01 +0200 Subject: [PATCH] backend/drm: Remove DMA-BUF import logging It's not an unusual situation for a dma-buf import to fail. --- backend/drm/drm.c | 2 -- backend/drm/fb.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index a20442d40..267262205 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -756,8 +756,6 @@ static bool drm_connector_state_update_primary_fb(struct wlr_drm_connector *conn &plane->formats); wlr_buffer_unlock(local_buf); if (!ok) { - wlr_drm_conn_log(conn, WLR_DEBUG, - "Failed to import buffer for scan-out"); return false; } diff --git a/backend/drm/fb.c b/backend/drm/fb.c index 575f32d91..89161665c 100644 --- a/backend/drm/fb.c +++ b/backend/drm/fb.c @@ -144,7 +144,6 @@ static struct wlr_drm_fb *drm_fb_create(struct wlr_drm_backend *drm, struct wlr_buffer *buf, const struct wlr_drm_format_set *formats) { struct wlr_dmabuf_attributes attribs; if (!wlr_buffer_get_dmabuf(buf, &attribs)) { - wlr_log(WLR_DEBUG, "Failed to get DMA-BUF from buffer"); return NULL; } @@ -169,9 +168,6 @@ static struct wlr_drm_fb *drm_fb_create(struct wlr_drm_backend *drm, wlr_drm_format_set_has(formats, info->opaque_substitute, attribs.modifier)) { attribs.format = info->opaque_substitute; } else { - wlr_log(WLR_DEBUG, "Buffer format 0x%"PRIX32" with modifier " - "0x%"PRIX64" cannot be scanned out", - attribs.format, attribs.modifier); goto error_fb; } }