From: Ville Syrjälä Date: Tue, 8 Jul 2014 05:01:56 +0000 (+0530) Subject: drm: Add drm_rotation_simplify() X-Git-Tag: cleanup-for-v3.18~84^2~20^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c9855f6dc1c68f7c4028f49bd8e3df7e4faae67;p=pandora-kernel.git drm: Add drm_rotation_simplify() drm_rotation_simplify() can be used to eliminate unsupported rotation flags. It will check if any unsupported flags are present, and if so it will modify the rotation to an alternate form by adding 180 degrees to rotation angle, and flipping the reflect x and y bits. The hope is that this identity transform will eliminate the unsupported flags. Of course that might not result in any more supported rotation, so the caller is still responsible for checking the result afterwards. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak Acked-by: Dave Airlie Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed