diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mali_fbdev.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mali_fbdev.c b/src/mali_fbdev.c index be717e7..9abf2e2 100644 --- a/src/mali_fbdev.c +++ b/src/mali_fbdev.c @@ -947,14 +947,6 @@ static Bool MaliPreInit(ScrnInfoPtr pScrn, int flags) xf86ProcessOptions(pScrn->scrnIndex, fPtr->pEnt->device->options, fPtr->Options); mali_check_dri_options( pScrn ); - - if ( fPtr->dri_render == DRI_NONE && FALSE == mali_drm_open_master( pScrn ) ) - { - xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Failed to be master of DRM!\n"); - return FALSE; - } - - mali_check_dri_options( pScrn ); mali_check_exa_options( pScrn ); mali_check_misc_options( pScrn ); @@ -1028,6 +1020,12 @@ static Bool MaliScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **ar pScrn->offset.red,pScrn->offset.green,pScrn->offset.blue); #endif + if ( fPtr->dri_render == DRI_NONE && FALSE == mali_drm_open_master( pScrn ) ) + { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Failed to be master of DRM!\n"); + return FALSE; + } + if ( fPtr->dri_render == DRI_NONE ) { if ( TRUE == MaliDRI2ScreenInit( pScreen ) ) |