]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit5363096f822e46104146f08ca8b6aa5c2382429e
tree0ec9fc74ac74a3bf0b0dd41f50834eefdf172ca9
parent47a14955106f71e9d6cb2a807bd30dacd403a3fe
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