]> 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)
commit009b0502c84d996f78a9ee012e26c55105cf03f6
tree0ec9fc74ac74a3bf0b0dd41f50834eefdf172ca9
parent177dbe01fa5445394e51fe24a27156bb972142da
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