drm/i915/wm: Reorder the arguments to skl_allocate_plane_ddb()

Group the ddb and data_rate together in the skl_allocate_plane_ddb()
arguments. Upcoming changes will adjust the UV plane handling and
keeing the ddb allocation and the data rate used to calculate it
together will help with clarity.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260319114034.7093-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Ville Syrjälä 2026-03-19 13:40:27 +02:00
parent c2d3e41f6e
commit cdb41e341c

View File

@ -1391,9 +1391,8 @@ struct skl_plane_ddb_iter {
static void
skl_allocate_plane_ddb(struct skl_plane_ddb_iter *iter,
struct skl_ddb_entry *ddb,
const struct skl_wm_level *wm,
u64 data_rate)
struct skl_ddb_entry *ddb, u64 data_rate)
{
u16 size, extra = 0;
@ -1523,13 +1522,13 @@ skl_crtc_allocate_plane_ddb(struct intel_atomic_state *state,
if (DISPLAY_VER(display) < 11 &&
crtc_state->nv12_planes & BIT(plane_id)) {
skl_allocate_plane_ddb(&iter, ddb_y, &wm->wm[level],
crtc_state->rel_data_rate_y[plane_id]);
skl_allocate_plane_ddb(&iter, ddb, &wm->uv_wm[level],
crtc_state->rel_data_rate[plane_id]);
skl_allocate_plane_ddb(&iter, &wm->wm[level],
ddb_y, crtc_state->rel_data_rate_y[plane_id]);
skl_allocate_plane_ddb(&iter, &wm->uv_wm[level],
ddb, crtc_state->rel_data_rate[plane_id]);
} else {
skl_allocate_plane_ddb(&iter, ddb, &wm->wm[level],
crtc_state->rel_data_rate[plane_id]);
skl_allocate_plane_ddb(&iter, &wm->wm[level],
ddb, crtc_state->rel_data_rate[plane_id]);
}
if (DISPLAY_VER(display) >= 30) {