From c7c0a5a1b36a5ac93baacdf0098e121817d0d642 Mon Sep 17 00:00:00 2001 From: mtvare6 Date: Wed, 8 Jan 2025 09:40:09 +0530 Subject: [PATCH] config/output: skip format checks if all are supported Fixes #8496 --- sway/config/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sway/config/output.c b/sway/config/output.c index f8922ea52..9ae2ee6a9 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -783,7 +783,8 @@ static bool search_render_format(struct search_context *ctx, size_t output_idx) if (needed_bits < format_bits) { continue; } - if (!wlr_drm_format_set_get(primary_formats, fmts[idx])) { + // If primary_formats is NULL, all formats are supported + if (primary_formats && !wlr_drm_format_set_get(primary_formats, fmts[idx])) { // This is not a supported format for this output continue; }