VirtualBox

Changeset 63807 in vbox for trunk


Ignore:
Timestamp:
Sep 13, 2016 8:19:12 AM (8 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: better work-around in the kernel vboxvideo driver for clients that do not send dirty rectangle information. However it only currently works for the first guest screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r63791 r63807  
    241241     * do not advertise dynamic modes on the first query and send a
    242242     * tentative hotplug notification after that to see if they query again. */
    243     vbox->initial_mode_queried = false;
    244     return 0;
    245 }
    246 
    247 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
    248 static void vbox_master_drop(struct drm_device *dev,
    249                              struct drm_file *file_priv,
    250                              bool from_release)
    251 #else
    252 static void vbox_master_drop(struct drm_device *dev,
    253                              struct drm_file *file_priv)
    254 #endif
    255 {
    256     struct vbox_private *vbox = dev->dev_private;
    257243    vbox->initial_mode_queried = false;
    258244    mutex_lock(&vbox->hw_mutex);
     
    266252    vbox_disable_accel(vbox);
    267253    mutex_unlock(&vbox->hw_mutex);
     254    return 0;
     255}
     256
     257#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
     258static void vbox_master_drop(struct drm_device *dev,
     259                             struct drm_file *file_priv,
     260                             bool from_release)
     261#else
     262static void vbox_master_drop(struct drm_device *dev,
     263                             struct drm_file *file_priv)
     264#endif
     265{
     266    struct vbox_private *vbox = dev->dev_private;
     267    /* See vbox_master_set() */
     268    vbox->initial_mode_queried = false;
     269    mutex_lock(&vbox->hw_mutex);
     270    vbox_disable_accel(vbox);
     271    mutex_unlock(&vbox->hw_mutex);
    268272}
    269273
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