drm: Add drm_rect rotation functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Jul 2014 05:01:55 +0000 (10:31 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Jul 2014 21:44:12 +0000 (23:44 +0200)
commit07074006cd951f7a952512c57d60788ee7ea18db
tree9ddc3b8eda1f941782f09adfdd0a30658c2720b1
parenta4969dd78735ea61bf67712987e1bd69d32e243c
drm: Add drm_rect rotation functions

Add some helper functions to move drm_rects between different rotated
coordinate spaces. One function does the forward transform and
another does the inverse.

Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Acked-by: Dave Airlie <airlied@linux.ie>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_rect.c
include/drm/drm_rect.h