Skip to content

Commit 1a28dbe

Browse files
committed
modesetting: get unaccelerated, non-shadowfb modesetting working with gbm buffers only
Signed-off-by: stefan11111 <[email protected]>
1 parent c4650ec commit 1a28dbe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hw/xfree86/drivers/video/modesetting/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ modesetCreateScreenResources(ScreenPtr pScreen)
16901690
if (!ms->drmmode.sw_cursor)
16911691
drmmode_map_cursor_bos(pScrn, &ms->drmmode);
16921692

1693-
if (ms->drmmode.shadow_enable) {
1693+
if (!ms->drmmode.glamor) {
16941694
pixels = drmmode_map_front_bo(&ms->drmmode);
16951695
if (!pixels)
16961696
return FALSE;

hw/xfree86/drivers/video/modesetting/drmmode_display.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,9 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
13481348
return TRUE;
13491349
}
13501350
}
1351-
} else if (drmmode->shadow_enable && drmmode->gbm) {
1351+
} else
1352+
#endif
1353+
if (!drmmode->glamor && drmmode->gbm) {
13521354
/* We don't need glamor if modifiers aren't used */
13531355
bo->gbm = gbm_bo_create(drmmode->gbm, width, height,
13541356
/* libgbm expects this for dumb scanout buffers for some reason */
@@ -1360,7 +1362,6 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
13601362
return TRUE;
13611363
}
13621364
}
1363-
#endif
13641365

13651366
if (drmmode->gbm) {
13661367
/* We don't need glamor if modifiers aren't used */

0 commit comments

Comments
 (0)