drm/i915: Use enum plane_id for frontbuffer tracking
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Jan 2018 18:33:43 +0000 (20:33 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Jan 2018 17:13:59 +0000 (19:13 +0200)
commitc19e1124e7e8cb1f8fbb685fd9b7d0a42087bd62
tree651dfa7c5642b5a083f4003c0ae40da3573dce79
parent84a1074920523430f9dc30ff907f4801b4820072
drm/i915: Use enum plane_id for frontbuffer tracking

Replace the ad-hoc plane indexing scheme used by the frontbuffer
tracking with enum plane_id.

The old video overlay not being part of the plane_id namespace
will just be given the high bit.

v2: Drop the unintended whitespace change (Chris)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180123183343.9181-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_fbc.c
drivers/gpu/drm/i915/intel_sprite.c