drm: support for rotated scanout
authorRob Clark <rob@ti.com>
Tue, 4 Sep 2012 16:35:56 +0000 (16:35 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Oct 2012 12:16:07 +0000 (22:16 +1000)
commit7c80e128429d639742043f8fbdd7f1551c940ea3
treed387994498a91a65785ab7e0e559531c45395323
parentf7eff60ea0e4e35732604e3591e2ff7b3ef41981
drm: support for rotated scanout

For drivers that can support rotated scanout, the extra parameter
checking in drm-core, while nice, tends to get confused.  To solve
this drivers can set the crtc or plane invert_dimensions field so
that the dimension checking takes into account the rotation that
the driver is performing.

v1: original
v2: remove invert_dimensions from plane, at Ville's suggestion.
    Userspace can give rotated src coordinates, so invert_dimensions
    is not required for planes.

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h