From 6f969623ebd3b7c3e9be415d9143c76c742fc63a Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Mon, 10 Feb 2025 21:42:15 -0300 Subject: [PATCH] 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 --- libweston/backend-drm/drm.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c index e3ba8576d..de9fa3c9c 100644 --- a/libweston/backend-drm/drm.c +++ b/libweston/backend-drm/drm.c @@ -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); }