drm/amd/display: Add signal type check when verify stream backends same
authorjsg <jsg@openbsd.org>
Thu, 14 Apr 2022 08:32:15 +0000 (08:32 +0000)
committerjsg <jsg@openbsd.org>
Thu, 14 Apr 2022 08:32:15 +0000 (08:32 +0000)
From Dale Zhao
c4b64a80554e57a68b594f2920988f4bc39768d9 in linux 5.15.y/5.15.34
047db281c026de5971cedb5bb486aa29bd16a39d in mainline linux

sys/dev/pci/drm/amd/display/dc/core/dc_resource.c

index f6907c0..df49952 100644 (file)
@@ -1599,6 +1599,9 @@ static bool are_stream_backends_same(
        if (is_timing_changed(stream_a, stream_b))
                return false;
 
+       if (stream_a->signal != stream_b->signal)
+               return false;
+
        if (stream_a->dpms_off != stream_b->dpms_off)
                return false;