]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/dp: Add drm_dp_dsc_sink_slice_count_mask()
authorImre Deak <imre.deak@intel.com>
Mon, 15 Dec 2025 19:23:42 +0000 (21:23 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 19 Dec 2025 14:46:30 +0000 (16:46 +0200)
commit92a73fec6acdcef3f2da7b2d1d4574308ebbe975
treeb27f93a5643efdc9aaed8be7eb70545994b14215
parentcc1b753487bb23e5a1c96c9864d515690e15b605
drm/dp: Add drm_dp_dsc_sink_slice_count_mask()

A DSC sink supporting DSC slice count N, not necessarily supports slice
counts less than N. Hence the driver should check the sink's support for
a particular slice count before using that slice count. Add the helper
functions required for this.

Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251215192357.172201-3-imre.deak@intel.com
drivers/gpu/drm/display/drm_dp_helper.c
include/drm/display/drm_dp_helper.h