VirtualBox

Changeset 76978 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jan 24, 2019 2:44:27 PM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxvideo: Pass a new framebuffer to vbox_crtc_do_set_base
bugref:8282: Additions/linux: track kernel changes to vboxvideo in our own tree

This modifies vbox_crtc_do_set_base() to take a new framebuffer to
be activated, instead of the existing framebuffer attached to the crtc.
This change allows the function to be given the new framebuffer from
a page-flip request.


Signed-off-by: Steve Longerbeam <steve_longerbeam@…>
Signed-off-by: Greg Kroah-Hartman <gregkh@…>

Adjusted by the VirtualBox team.

File:
1 edited

Legend:

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

    r76974 r76978  
    203203
    204204static int vbox_crtc_set_base(struct drm_crtc *crtc,
    205                                  struct drm_framebuffer *old_fb, int x, int y)
     205                                 struct drm_framebuffer *old_fb,
     206                                 struct drm_framebuffer *new_fb,
     207                                 int x, int y)
    206208{
    207209        struct vbox_private *vbox = crtc->dev->dev_private;
     
    213215        u64 gpu_addr;
    214216
    215         vbox_fb = to_vbox_framebuffer(CRTC_FB(crtc));
     217        vbox_fb = to_vbox_framebuffer(new_fb);
    216218        obj = vbox_fb->obj;
    217219        bo = gem_to_vbox_bo(obj);
     
    263265{
    264266        struct vbox_private *vbox = crtc->dev->dev_private;
    265         int ret = vbox_crtc_set_base(crtc, old_fb, x, y);
     267        int ret = vbox_crtc_set_base(crtc, old_fb, CRTC_FB(crtc), x, y);
    266268        if (ret)
    267269                return ret;
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