drm/i915/gen9: Make skl_wm_level per-plane
authorLyude <cpaul@redhat.com>
Tue, 4 Oct 2016 18:28:20 +0000 (14:28 -0400)
committerLyude <cpaul@redhat.com>
Sun, 16 Oct 2016 23:08:43 +0000 (19:08 -0400)
commita62163e97bafbc072093ee5645873227f33a43ee
treebf1ba42f393ea78ca6320e31fa678e7c401dafe0
parentb707aa50414633b193da99af5d86acd95c2d9dc4
drm/i915/gen9: Make skl_wm_level per-plane

Having skl_wm_level contain all of the watermarks for each plane is
annoying since it prevents us from having any sort of object to
represent a single watermark level, something we take advantage of in
the next commit to cut down on all of the copy paste code in here.

Changes since v1:
- Style nitpicks
- Fix accidental usage of i vs. PLANE_CURSOR
- Split out skl_pipe_wm_active_state simplification into separate patch

Signed-off-by: Lyude <cpaul@redhat.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c