drm/i915/glk: Fix watermark computations for third sprite plane
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 23 Feb 2017 07:15:57 +0000 (09:15 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 9 Mar 2017 08:43:01 +0000 (10:43 +0200)
commit1d972d6021a1388021df51a58248e68372ce2b5d
treeca3280f9978d3fd2adfa8612165577fde4e12703
parent89cf83d4e065ff9fbd2ddc674489c8058eeca758
drm/i915/glk: Fix watermark computations for third sprite plane

Geminilake has a third sprite plane (or fourth universal plane) that is
independent from the cursor. Make sure that for_each_plane_id_on_crtc()
is aware of that extra plane so that the watermark code takes it into
account.

Fixes: e9c9882556fc ("drm/i915/glk: Configure number of sprite planes properly")
Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Cc: <drm-intel-fixes@lists.freedesktop.org>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223071600.14356-2-ander.conselvan.de.oliveira@intel.com
(cherry picked from commit 19c3164db457e0fc65d4501fd354506228576241)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.h