]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb889c057293419c362646d09af379122e2f8e7c5
tree0d94f45b442df75c6eb2151ab747d850a260077e
parentedddb1c8641863ec5854f85f407f9e30c58c88a1
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