Changeset 49639 in vbox for trunk/src/VBox/Additions/x11/vboxvideo
- Timestamp:
- Nov 25, 2013 11:56:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r49628 r49639 1227 1227 DRILock(xf86ScrnToScreen(pScrn), 0); 1228 1228 #elif defined(VBOX_DRI) /* DRI2 */ 1229 if ( pVBox->drmFD >= 0)1229 if ( pVBox->drmFD < 0 1230 1230 /* Tell the kernel driver, if present, that it can use the framebuffer 1231 1231 * driver again. */ 1232 drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_ENABLE_HGSMI, NULL); 1233 else 1232 || drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_ENABLE_HGSMI, NULL) < 0) 1234 1233 #endif 1235 1234 VBOXRestoreMode(pScrn); … … 1251 1250 } 1252 1251 #ifdef VBOX_DRI 1253 # ifndef VBOX_DRI_OLD /* DRI2 */1254 if (pVBox->drmFD >= 0)1255 /* Tell the kernel driver, if present, that we are going away. */1256 drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_ENABLE_HGSMI, NULL);1257 # endif1258 1252 if (pVBox->useDRI) 1259 1253 VBOXDRICloseScreen(pScreen, pVBox); 1260 1254 pVBox->useDRI = false; 1261 #endif 1262 1263 if (pScrn->vtSema) { 1264 VBOXRestoreMode(pScrn); 1255 # ifndef VBOX_DRI_OLD /* DRI2 */ 1256 if ( pVBox->drmFD < 0 1257 /* Tell the kernel driver, if present, that we are going away. */ 1258 || drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_ENABLE_HGSMI, NULL) < 0) 1259 # endif 1260 #endif 1261 if (pScrn->vtSema) 1262 VBOXRestoreMode(pScrn); 1263 if (pScrn->vtSema) 1265 1264 VBOXUnmapVidMem(pScrn); 1266 }1267 1265 pScrn->vtSema = FALSE; 1268 1266
Note:
See TracChangeset
for help on using the changeset viewer.