]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract intel_crtc_dbuf_weights()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Jan 2021 20:56:31 +0000 (22:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Jan 2021 13:41:37 +0000 (15:41 +0200)
commitb98ad14703211ff3208631b3eddda94e7b5db99a
tree0ec9fc74ac74a3bf0b0dd41f50834eefdf172ca9
parent2102b94ca3f21004d881682a7746fc5293ca9810
drm/i915: Extract intel_crtc_dbuf_weights()

Extract the code to calculate the weights used to chunk up the dbuf
between pipes. There's still extra stuff in there that shouldn't be
there and must be moved out, but that requires a bit more state to
be tracked in the dbuf state.

v2: Keep crtc_state->wm.skl.ddb

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