modesetting: Don't allocate a gbm bo for the root pixmap with no accel

ShadowFB usually has far better performance

Signed-off-by: stefan11111 <stefan11111github@gmail.com>
This commit is contained in:
stefan11111 2026-08-26 16:36:30 +03:00 • committed by Enrico Weigelt
commit 2e03d4e0d4

View file

@ -1149,7 +1149,7 @@ try_enable_glamor(ScrnInfoPtr pScrn)
if (load_glamor(pScrn)) {
int caps = GLAMOR_EGL_CAP_NONE;
if (ms->glamor.egl_init2(pScrn, ms->fd, &caps, 0)) {
ms->drmmode.glamor_gbm = !!(caps & GLAMOR_EGL_CAP_TEXTURE_GBM_BO);
ms->drmmode.glamor_gbm = !no_accel && (caps & GLAMOR_EGL_CAP_TEXTURE_GBM_BO);
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "glamor initialized%s\n",
no_accel ? " without render acceleration" : "");
ms->drmmode.glamor = TRUE;