Skip to content
  • Gerd Hoffmann's avatar
    1331eab2
    qxl: fix surface migration · 1331eab2
    Gerd Hoffmann authored
    Create a helper function qxl_dirty_one_surface() to mark a single qxl
    surface as dirty.  Use the new qxl_get_check_slot_offset function and
    lookup the memory region from the slot instead of assuming the surface
    is stored in vram.
    
    Use the new helper function in qxl_dirty_surfaces, for both primary and
    off-screen surfaces.  For off-screen surfaces this is no functional
    change.  For primary surfaces this will dirty only the memory actually
    used instead of the whole surface0 region.  It will also work correctly
    in case the guest places the primary surface in vram instead of the
    surface0 region (linux kms driver does that).
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1235732
    
    
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    Message-id: 1466597244-5938-3-git-send-email-kraxel@redhat.com
    1331eab2
    qxl: fix surface migration
    Gerd Hoffmann authored
    Create a helper function qxl_dirty_one_surface() to mark a single qxl
    surface as dirty.  Use the new qxl_get_check_slot_offset function and
    lookup the memory region from the slot instead of assuming the surface
    is stored in vram.
    
    Use the new helper function in qxl_dirty_surfaces, for both primary and
    off-screen surfaces.  For off-screen surfaces this is no functional
    change.  For primary surfaces this will dirty only the memory actually
    used instead of the whole surface0 region.  It will also work correctly
    in case the guest places the primary surface in vram instead of the
    surface0 region (linux kms driver does that).
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1235732
    
    
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    Message-id: 1466597244-5938-3-git-send-email-kraxel@redhat.com
Loading