summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Fredriksson <john.xj.fredriksson@stericsson.com>2011-05-18 14:16:58 +0000
committerJohn Fredriksson <john.xj.fredriksson@stericsson.com>2011-05-18 15:40:05 +0000
commit258f15ade2f97b7b81a3a12eb9c7ddec21f37459 (patch)
tree5e2d39f64de6e718c35d48aab91e3674e423e915
parente4d853338323231e1959c66281ac17a9c3884cdf (diff)
Correct drm device handling
Correct a problem with the open / close handling of the drm device.
-rw-r--r--src/mali_fbdev.c14
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 ) )