]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp: Drop max_requested_bpc for dsc pipe_min/max bpp
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 17 Dec 2024 09:32:38 +0000 (15:02 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 24 Dec 2024 09:50:00 +0000 (15:20 +0530)
commitad784c97876649ece9dd78a550e96c9386725002
treeb875c240bfa6248b934eae9147e26de4a8a9e9a0
parent1db9bd98e78155fb6be94fedab1520218e7468b1
drm/i915/dp: Drop max_requested_bpc for dsc pipe_min/max bpp

Currently we are including both max_requested_bpc and
limits->pipe.bpp_max while computing maximum possible pipe bpp with dsc.
However, while setting limits->pipe.max_bpp, the max_requested_bpc is
already taken into account.

Drop the redundant check for max_requested_bpc and use only
limits->pipe.bpp_max. This will also result in dropping conn_state
argument in functions where it was used only to get max_requested_bpc.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241217093244.3938132-9-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c