drm/i915: Pass plane to watermark calculation functions
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Mon, 24 Jan 2022 09:06:50 +0000 (11:06 +0200)
committerStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Wed, 26 Jan 2022 07:58:18 +0000 (09:58 +0200)
commit41e096da18b357ff1d2108c514b9634d67364c41
tree0d94f45b442df75c6eb2151ab747d850a260077e
parentd8f7f8831bce9ef6a1f562037e137f57b5951501
drm/i915: Pass plane to watermark calculation functions

Sometimes we might need to change the way we calculate
watermarks, based on which particular plane it is calculated
for. Thus it would be convenient to pass plane struct to those
functions.

v2: Pass plane instead of plane_id
v3: Do not pass plane to skl_cursor_allocation(Ville Syrjälä)
v4: - Make intel_crtc_get_plane static again(Ville Syrjälä)
    - s/cursor_plane/plane(Ville Syrjälä)
    - Pass plane to skl_compute_wm_* instead of plane_id(Ville Syrjälä)

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220124090653.14547-2-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_atomic_plane.h
drivers/gpu/drm/i915/intel_pm.c