From 574be50dc58c333d8d8df54c5af2e8214f761c79 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 15 Aug 2024 03:12:41 +0000 Subject: [PATCH] drm/amd/display: Skip Recompute DSC Params if no Stream on Link From Fangzhi Zuo 718d83f66fb07b2cab89a1fc984613a00e3db18f in linux-6.6.y/6.6.46 50e376f1fe3bf571d0645ddf48ad37eb58323919 in mainline linux --- sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c index 2104511f3b8..3880ddf1c82 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c @@ -1266,6 +1266,9 @@ static bool is_dsc_need_re_compute( } } + if (new_stream_on_link_num == 0) + return false; + /* check current_state if there stream on link but it is not in * new request state */ -- 2.20.1