backend-drm: do not disable underlay planes based on b->format

Since commit "backend-drm: improve code that chooses output->format", we
changed how b->format (the GBM format from the config file) is used.

There are config options in weston.ini that allow us to ignore the GBM
format set. So what matters to us is which output->format is being used,
and we compute that in drm_output_pick_format_egl() and
drm_output_pick_format_pixman().

So remove these checks that disable underlay planes based on b->format,
keeping only the ones that depend on the output->format selection.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2025-02-10 21:42:15 -03:00
parent 56c27ea248
commit 6f969623eb

View file

@ -1510,14 +1510,6 @@ create_sprites(struct drm_device *device)
}
if (b->has_underlay && !b->format->opaque_substitute) {
weston_log("WARNING: Unable to use hardware underlay "
"planes as the output format is opaque. In "
"order to make use of hardware overlay planes "
"adjust the output format.\n");
b->has_underlay = false;
}
drmModeFreePlaneResources(kplane_res);
}