- Timestamp:
- Dec 2, 2014 9:17:02 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/x11
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/undefined_xorg
r52225 r53426 29 29 drmGetVersion 30 30 drmIoctl 31 drmModeGetResources 32 drmModeFreeResources 31 33 drmSetMaster 32 34 ___errno -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r53346 r53426 115 115 #ifdef VBOX_DRI 116 116 # include "xf86drm.h" 117 # include "xf86drmMode.h" 117 118 #endif 118 119 … … 1201 1202 DRILock(xf86ScrnToScreen(pScrn), 0); 1202 1203 #elif defined(VBOX_DRI) /* DRI2 */ 1203 /* Expected failure mode: KMS not supported, drmDropMaster() fails. */ 1204 if (pVBox->drmFD < 0 || drmDropMaster(pVBox->drmFD) < 0) 1205 VBOXRestoreMode(pScrn); 1206 #endif 1207 #if !defined(VBOX_DRI) || defined(VBOX_DRI_OLD) 1204 if (pVBox->drmFD >= 0) 1205 drmDropMaster(pVBox->drmFD); 1206 #endif 1208 1207 VBOXRestoreMode(pScrn); 1209 #endif1210 1208 #ifdef SET_HAVE_VT_PROPERTY 1211 1209 updateHasVTProperty(pScrn, FALSE); … … 1396 1394 VBOXPtr pVBox = VBOXGetRec(pScrn); 1397 1395 vgaRegPtr vgaReg; 1396 #ifdef VBOX_DRI 1397 drmModeResPtr pRes; 1398 #endif 1398 1399 1399 1400 TRACE_ENTRY(); 1401 #ifdef VBOX_DRI 1402 /* Do not try to re-set the VGA state if a mode-setting driver is loaded. */ 1403 if ( pVBox->drmFD >= 0 1404 && LoaderSymbol("drmModeGetResources") != NULL 1405 && (pRes == drmModeGetResources(pVBox->drmFD)) != NULL) 1406 { 1407 drmModeFreeResources(pRes); 1408 return; 1409 } 1410 #endif 1400 1411 vgaReg = &VGAHWPTR(pScrn)->SavedReg; 1401 1412 vgaHWRestore(pScrn, vgaReg, VGA_SR_ALL);
Note:
See TracChangeset
for help on using the changeset viewer.