[Intel-gfx] [PATCH v2 01/15] drm: Add drm_rotation_90_or_270()

2016-09-27 Thread Joonas Lahtinen
On ma, 2016-09-26 at 19:30 +0300, ville.syrjala at linux.intel.com wrote: > > From: Ville Syrjälä > > We have intel_rotation_90_or_270() in i915 to check if the rotation is > 90 or 270 degrees. Similar checks are elsewhere in drm, so let's move > the helper into a central place and use it everw

[PATCH v2 01/15] drm: Add drm_rotation_90_or_270()

2016-09-26 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä We have intel_rotation_90_or_270() in i915 to check if the rotation is 90 or 270 degrees. Similar checks are elsewhere in drm, so let's move the helper into a central place and use it everwhere. v2: Drop the BIT() Convert all new intel_rotation_90_or_270() calls Dea