drm/i915: Check 5/6 DDB split only when sprites are enabled
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2013 12:26:26 +0000 (15:26 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Oct 2013 08:13:22 +0000 (10:13 +0200)
commita5db6b62577b14a9fbe639af0aba9ec7ae85ae3e
tree358c073a3d91cc857059d405212aa98379368745
parenta485bfb8d0d70ba24662aab5e00b2914c646220b
drm/i915: Check 5/6 DDB split only when sprites are enabled

Using the 5/6 DDB split make sense only when sprites are enabled.
So check that before we waste any cycles computing the merged
watermarks with the 5/6 DDB split.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c