VirtualBox

Changeset 52865 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 26, 2014 9:29:33 AM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: drop custom ioctl to kernel driver, as the standard one works just as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r52677 r52865  
    11641164    {
    11651165        /* Tell the kernel driver, if present, that we are taking over. */
    1166         drmIoctl(pVBox->drmFD, VBOXVIDEO_IOCTL_DISABLE_HGSMI, NULL);
    11671166        drmSetMaster(pVBox->drmFD);
    11681167    }
     
    11981197        DRILock(xf86ScrnToScreen(pScrn), 0);
    11991198#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)
    12081201        VBOXRestoreMode(pScrn);
     1202#endif
     1203#if !defined(VBOX_DRI) || defined(VBOX_DRI_OLD)
     1204    VBOXRestoreMode(pScrn);
     1205#endif
    12091206#ifdef SET_HAVE_VT_PROPERTY
    12101207    updateHasVTProperty(pScrn, FALSE);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette