drm/i915: Swap primary planes on gen2 for FBC
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 Nov 2013 15:30:01 +0000 (17:30 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Dec 2013 11:09:36 +0000 (12:09 +0100)
commit1f1c2e2468f937cefd6bcb645c959c7b5d9821df
tree0244bf9b28e2a42895171f2a957735f0daaac84a
parent40045465a91cad4e4bcd2691f0bece5f8b2910e3
drm/i915: Swap primary planes on gen2 for FBC

Only plane A is FBC capable on gen2 (like gen3), but the panel fitter
is hooked up to pipe B, so we want to prefer pipe B + plane A.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Add the code comment Chris requested in his review.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_display.c