drm/i915: Use the correct plane source width in watermark calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Dec 2021 14:43:10 +0000 (16:43 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 26 Jan 2022 19:18:44 +0000 (21:18 +0200)
commitd05824796d9cf6c0e59a0aa86333584bde8b51c6
treef70fa21d4cca5b7e47c6cb36182a21a07e0ece7e
parent4be990af2f7ed8bf209cce3b86e1abac33742763
drm/i915: Use the correct plane source width in watermark calculations

Currently we sometimes use the plane destination width, or just the
pipe src width as the plane source width in the watermark calculatons.
Use the correct thing everywhere.

v2: convert ilk cur/fbc cases too

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211209144311.3221-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c