Skip to content

Commit ab02776

Browse files
committed
modesetting: get gbm device even when not using glamor
Signed-off-by: stefan11111 <[email protected]>
1 parent dbf2dba commit ab02776

File tree

1 file changed

+4
-1
lines changed
  • hw/xfree86/drivers/video/modesetting

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,8 +1951,11 @@ ScreenInit(ScreenPtr pScreen, int argc, char **argv)
19511951
return FALSE;
19521952

19531953
#ifdef GLAMOR_HAS_GBM
1954-
if (ms->drmmode.glamor)
1954+
if (ms->drmmode.glamor) {
19551955
ms->drmmode.gbm = ms->glamor.egl_get_gbm_device(pScreen);
1956+
} else {
1957+
ms->drmmode.gbm = gbm_create_device(ms->drmmode.fd);
1958+
}
19561959
#endif
19571960

19581961
/* HW dependent - FIXME */

0 commit comments

Comments
 (0)