OSDN Git Service

drm/i915: Use & instead if == to check for rotations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2016 16:53:58 +0000 (18:53 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2016 17:57:42 +0000 (19:57 +0200)
commitf22aa14352cc6f40fdb81cdb2e4f4f9d75613a37
tree02d47d890733b45ec600efc322bbe214cdf42419
parent5697d60f6e56f90e191d00579307eba044d061a4
drm/i915: Use & instead if == to check for rotations

Using == to check for 180 degree rotation only works as long as the
reflection bits aren't set. That will change soon enough for CHV, so
let's stop doing things the wrong way.

v2: Drop the BIT()

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