Skip to content

Commit cec4d8c

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

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
@@ -1343,7 +1343,9 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
13431343
return TRUE;
13441344
}
13451345
}
1346-
} else if (drmmode->shadow_enable && drmmode->gbm) {
1346+
} else
1347+
#endif
1348+
if (!drmmode->glamor && drmmode->gbm) {
13471349
/* We don't need glamor if modifiers aren't used */
13481350
bo->gbm = gbm_bo_create(drmmode->gbm, width, height,
13491351
/* libgbm expects this for dumb scanout buffers for some reason */
@@ -1355,7 +1357,6 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
13551357
return TRUE;
13561358
}
13571359
}
1358-
#endif
13591360

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

0 commit comments

Comments
 (0)