Skip to content

Commit d62a1ca

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

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
@@ -1351,7 +1351,9 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
13511351
return TRUE;
13521352
}
13531353
}
1354-
} else if (drmmode->shadow_enable && drmmode->gbm) {
1354+
} else
1355+
#endif
1356+
if (!drmmode->glamor && drmmode->gbm) {
13551357
/* We don't need glamor if modifiers aren't used */
13561358
bo->gbm = gbm_bo_create(drmmode->gbm, width, height,
13571359
/* libgbm expects this for dumb scanout buffers for some reason */
@@ -1363,7 +1365,6 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
13631365
return TRUE;
13641366
}
13651367
}
1366-
#endif
13671368

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

0 commit comments

Comments
 (0)