• Sinclair Yeh's avatar
    drm/vmwgfx: Fix large topology crash · a1ac6339
    Sinclair Yeh authored
    The previous attempt at this had an issue with with num_clips > 1
    because it would always end up using the coordinates of the last
    clip while using width and height calculated from the bounding
    box of all the clips.
    
    So if the last clip happens to be not at the top-left corner of
    the bounding box, the CPU blit operation would go out of bounds.
    
    The original intent was to coalesce all the clips into one blit,
    and to do that we need to also track the starting point of the
    content buffer.
    Signed-off-by: default avatarSinclair Yeh <syeh@vmware.com>
    Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    a1ac6339
vmwgfx_stdu.c 46 KB