Skip to content
  • Benjamin Defnet's avatar
    hw/xf86/modes: Set crtc mode/rotation/transform before calling set_mode_major · 6f59a816
    Benjamin Defnet authored and Keith Packard's avatar Keith Packard committed
    
    
    This moves code out of each implementation of set_mode_major and back into
    the X server. The real feature here is that the transform is now available
    in the crtc for use by either xf86CrtcRotate or whatever the driver wants to
    do. Without this change, the transform was lost for drivers providing the
    set_mode_major interface.
    
    Note that users of this API will want to stop smashing the transformPresent
    field, and could also stop setting mode/x/y/rotation for new enough X servers,
    but there's no reason to make that change as it will break things when
    running against older X servers.
    
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    Acked-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
    6f59a816