drm/i915: Add horizontal mirroring support for CHV pipe B planes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2016 16:54:00 +0000 (18:54 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2016 17:58:48 +0000 (19:58 +0200)
commit4ea7be2b562802c42f0dd232220f38119a0b9431
tree1966e1a4998f96f6f0e5223e096cfe46e76905d3
parentdf0cd455e720e4c0a04a85eb8ec4d2dab2e37795
drm/i915: Add horizontal mirroring support for CHV pipe B planes

The primary and sprite planes on CHV pipe B support horizontal
mirroring. Expose it to the world.

Sadly the hardware ignores the mirror bit when the rotate bit is
set, so we'll have to reject the 180+X case.

v2: Drop the BIT()
v3: Pass dev_priv instead of dev to IS_CHERRYVIEW()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479142440-25283-4-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_atomic_plane.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_sprite.c