drm/amd/display: Skip Recompute DSC Params if no Stream on Link
authorjsg <jsg@openbsd.org>
Thu, 15 Aug 2024 03:12:41 +0000 (03:12 +0000)
committerjsg <jsg@openbsd.org>
Thu, 15 Aug 2024 03:12:41 +0000 (03:12 +0000)
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

index 2104511..3880ddf 100644 (file)
@@ -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
         */