drm/amd/display: change dsc image width cap for dcn32 and dcn321
authorDillon Varone <dillon.varone@amd.com>
Mon, 11 Apr 2022 14:29:57 +0000 (10:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:45:00 +0000 (16:45 -0400)
Set appropriate caps for DCN3.2.x.

Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c

index 3f93b1f..f285007 100644 (file)
@@ -1695,6 +1695,9 @@ static struct display_stream_compressor *dcn32_dsc_create(
        }
 
        dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask);
+
+       dsc->max_image_width = 6016;
+
        return &dsc->base;
 }
 
index 27d3aa7..376dd58 100644 (file)
@@ -1679,6 +1679,9 @@ static struct display_stream_compressor *dcn321_dsc_create(
        }
 
        dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask);
+
+       dsc->max_image_width = 6016;
+
        return &dsc->base;
 }