mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-23 06:43:07 +00:00
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:
parent
978d35f0b2
commit
2e03d4e0d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue