drm/amd/display: explicitly set is_dsc_supported to false before use
authorjsg <jsg@openbsd.org>
Thu, 20 Jan 2022 10:18:26 +0000 (10:18 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jan 2022 10:18:26 +0000 (10:18 +0000)
From Mario Limonciello
ce258c74f8d95e81ce65f53775fcdcbc8ca090da in linux 5.15.y/5.15.16
63ad5371cd1e379519395c49a4b6a652c36c98e5 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index a5b181a..bb3a871 100644 (file)
@@ -5612,6 +5612,7 @@ static void update_dsc_caps(struct amdgpu_dm_connector *aconnector,
                                                        struct dsc_dec_dpcd_caps *dsc_caps)
 {
        stream->timing.flags.DSC = 0;
+       dsc_caps->is_dsc_supported = false;
 
        if (aconnector->dc_link && sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT) {
                dc_dsc_parse_dsc_dpcd(aconnector->dc_link->ctx->dc,