drm/i915: Store frontbuffer_bits in the plane
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Jun 2015 18:59:34 +0000 (21:59 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 25 Jun 2015 12:11:44 +0000 (14:11 +0200)
commita9ff8714d911b1f9417af75525eb29ac31e014fc
tree35a6496104b669e30e65fc6765391c3e8f057330
parentacd3f3d3516838ebe001b7048fe59ab5b93bb645
drm/i915: Store frontbuffer_bits in the plane

Avoid some 'switch (plane->type)' by storing the fronbuffer_bits in
intel_plane.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[danvet: use singular frontbuffer_bits in intel_plane since a plan can
only ever have one bit. Discussed with Ville on irc.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c