From 9c8d2744584868aa2655bf3ec047f2f9669e4291 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 May 2020 10:53:57 +0200 Subject: [PATCH] xwayland: don't use GBM_BO_USE_SCANOUT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This flag should only be used when the caller intends to display the buffer on a hardware plane. Xwayland isn't a DRM client, so it doesn't make sense to use this flag. This change will allow the driver to potentially use buffer parameters that are more optimized. Signed-off-by: Simon Ser Reviewed-by: Daniel Stone Reviewed-by: Michel Dänzer --- hw/xwayland/xwayland-glamor-gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index df05bff6c..379fe9c8c 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -239,7 +239,7 @@ xwl_glamor_gbm_create_pixmap(ScreenPtr screen, #endif { bo = gbm_bo_create(xwl_gbm->gbm, width, height, format, - GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING); + GBM_BO_USE_RENDERING); } if (bo) {