]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Use mode_config->cursor_width for cursor DDB allocation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Nov 2025 18:11:24 +0000 (20:11 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Nov 2025 21:00:49 +0000 (23:00 +0200)
commit3107fc63078bf1c3df235eabf6609155fd1c239c
treebdcd5f7412bc075e2082abc63bd74d59b5961b8e
parent608a7d3f21755e2c3c3c6e6a404e41afb725b4de
drm/i915: Use mode_config->cursor_width for cursor DDB allocation

Replace the hardcoded 256 with mode_config->cursor_width
when doing the cursor DDB allocation. Currently 256 is correct
for all SKL+, but this might change in the future. One less place
to change should that happen.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251107181126.5743-8-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/skl_watermark.c