From 466ec86669c8428cc556bca9aa55767df4579f81 Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Fri, 6 Feb 2026 21:04:15 +0200 Subject: [PATCH] modesetting: Create only gbm front bo's Signed-off-by: stefan11111 --- .../drivers/video/modesetting/drmmode_display.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/xfree86/drivers/video/modesetting/drmmode_display.c b/hw/xfree86/drivers/video/modesetting/drmmode_display.c index 338a65187..6671f39ad 100644 --- a/hw/xfree86/drivers/video/modesetting/drmmode_display.c +++ b/hw/xfree86/drivers/video/modesetting/drmmode_display.c @@ -1172,14 +1172,12 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo, bo->height = height; #ifdef GLAMOR_HAS_GBM - if (drmmode->glamor) { - bo->gbm = gbm_create_best_bo(drmmode, FALSE, width, height, DRMMODE_FRONT_BO); - return bo->gbm != NULL; - } + bo->gbm = gbm_create_best_bo(drmmode, !drmmode->glamor, width, height, DRMMODE_FRONT_BO); + return !!bo->gbm; +#else + bo->gbm = gbm_create_best_bo(drmmode, TRUE, width, height, DRMMODE_FRONT_BO); + return !!bo->gbm; #endif - - bo->dumb = dumb_bo_create(drmmode->fd, width, height, bpp); - return bo->dumb != NULL; } Bool