Changeset 52865 in vbox for trunk/src/VBox
- Timestamp:
- Sep 26, 2014 9:29:33 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r52677 r52865 1164 1164 { 1165 1165 /* Tell the kernel driver, if present, that we are taking over. */ 1166 drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_DISABLE_HGSMI, NULL);1167 1166 drmSetMaster(pVBox->drmFD); 1168 1167 } … … 1198 1197 DRILock(xf86ScrnToScreen(pScrn), 0); 1199 1198 #elif defined(VBOX_DRI) /* DRI2 */ 1200 if (pVBox->drmFD >= 0) 1201 drmDropMaster(pVBox->drmFD); 1202 /* Tell the kernel driver, if present, that it can use the framebuffer 1203 * driver again. If not, or if that fails, restore the old mode ourselves. 1204 */ 1205 if ( pVBox->drmFD < 0 1206 || drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_ENABLE_HGSMI, NULL) < 0) 1207 #endif 1199 /* Expected failure mode: KMS not supported, drmDropMaster() fails. */ 1200 if (pVBox->drmFD < 0 || drmDropMaster(pVBox->drmFD) < 0) 1208 1201 VBOXRestoreMode(pScrn); 1202 #endif 1203 #if !defined(VBOX_DRI) || defined(VBOX_DRI_OLD) 1204 VBOXRestoreMode(pScrn); 1205 #endif 1209 1206 #ifdef SET_HAVE_VT_PROPERTY 1210 1207 updateHasVTProperty(pScrn, FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.