VirtualBox

Ignore:
Timestamp:
Jan 22, 2019 4:39:05 PM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxvideo: Fix reporting invalid suggested-offset-properties
(Partial commit of kernel change.)
bugref:8282: Additions/linux: track kernel changes to vboxvideo in our own tree

The x and y hints receives from the host are unsigned 32 bit integers and
they get set to -1 (0xffffffff) when invalid. Before this commit the
vboxvideo driver was storing them in an u16 causing the -1 to be truncated
to 65535 which, once reported to userspace, was breaking gnome 3.26+
in Wayland mode.


This commit stores the host values in 32 bit variables, removing the
truncation and checks for -1, replacing it with 0 as -1 is not a valid
suggested-offset-property value. Likewise the properties are now
initialized to 0 instead of -1, since -1 is not a valid value.
This fixes gnome 3.26+ in Wayland mode not working with the vboxvideo
driver.


Reported-by: Gianfranco Costamagna <locutusofborg@…>
Cc: stable@…
Cc: Michael Thayer <michael.thayer@…>
Signed-off-by: Hans de Goede <hdegoede@…>
Signed-off-by: Greg Kroah-Hartman <gregkh@…>

File:
1 edited

Legend:

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

    r76563 r76937  
    237237        struct vbox_crtc *vbox_crtc;
    238238        struct {
    239                 u16 width;
    240                 u16 height;
     239                u32 width;
     240                u32 height;
    241241                bool disconnected;
    242242        } mode_hint;
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