Skip to content
  • Dave Airlie's avatar
    randr: add initial scanout pixmap support (v3) · f2da2c12
    Dave Airlie authored
    
    
    When randr notices a crtc configuration request for a slave device,
    it checks if the slave allocated pixmap exists and is suitable,
    if not it allocates a new shared pixmap from the master, shares
    it to the slave, and starts the master tracking damage to it,
    to keep it updated from the current front pixmap.
    
    If the resize means the crtc is no longer used it will destroy
    the slave pixmap.
    
    This adds the concept of a scanout_pixmap to the randr_crtc object,
    and also adds a master pixmap pointer to the pixmap object, along
    with defining some pixmap helper functions for getting pixmap box/regions.
    
    v2: split out pixmap sharing to a separate function.
    
    v3: update for void *
    
    Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
    Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    f2da2c12