config/output: skip format checks if all are supported

Fixes #8496
This commit is contained in:
mtvare6 2025-01-08 09:40:09 +05:30 committed by Simon Ser
parent a1838c5522
commit c7c0a5a1b3

View file

@ -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;
}