• Dave Airlie's avatar
    prime: add rotation support for offloaded outputs (v2) · 90db5edf
    Dave Airlie authored
    One of the lacking features with output offloading was
    that screen rotation didn't work at all.
    This patch makes 0/90/180/270 rotation work with USB output
    and GPU outputs.
    When it allocates the shared pixmap it allocates it rotated,
    and any updates to the shared pixmap are done using a composite
    path that does the rotation. The slave GPU then doesn't need
    to know about the rotation and just displays the pixmap.
    rewrite the sync dirty helper to use the dst pixmap, and
    avoid any strange hobbits and rotations.
    This breaks ABI in two places.
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
xf86Rotate.c 16 KB