]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Initialize dsc_caps to 0
authorIvan Lipski <ivan.lipski@amd.com>
Wed, 13 May 2026 21:53:57 +0000 (17:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:51:13 +0000 (10:51 -0400)
[Why&How]
If we don't do that we make DSC decisions based on random
inputs, which might result in disallowing DSC when the
monitor and HW support it.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index ba7f98a87808ccea6a5a3e72904c33b26d9bdb10..c5a5e6ca4958a35ef17bba5bbe8e06d8e2647a10 100644 (file)
@@ -7473,7 +7473,7 @@ create_stream_for_sink(struct drm_connector *connector,
        int preferred_refresh = 0;
        enum color_transfer_func tf = TRANSFER_FUNC_UNKNOWN;
 #if defined(CONFIG_DRM_AMD_DC_FP)
-       struct dsc_dec_dpcd_caps dsc_caps;
+       struct dsc_dec_dpcd_caps dsc_caps = {0};
 #endif
        struct dc_link *link = NULL;
        struct dc_sink *sink = NULL;