]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Limit Scaling Ratio on DCN3.01
authorGabe Teeger <Gabe.Teeger@amd.com>
Fri, 13 Dec 2024 20:15:00 +0000 (15:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Jan 2025 16:59:18 +0000 (11:59 -0500)
[why]
Underflow and flickering was occuring due to high scaling ratios
when resizing videos.

[how]
Limit the scaling ratios by increasing the max scaling factor

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Gabe Teeger <Gabe.Teeger@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn301/dcn301_resource.c

index a9816affd312dbb3e24cff638f10b9bdd45782e5..0cc8a27be5935c831af8f770d67d258380dff864 100644 (file)
@@ -671,9 +671,9 @@ static const struct dc_plane_cap plane_cap = {
 
        /* 6:1 downscaling ratio: 1000/6 = 166.666 */
        .max_downscale_factor = {
-                       .argb8888 = 167,
-                       .nv12 = 167,
-                       .fp16 = 167 
+                       .argb8888 = 358,
+                       .nv12 = 358,
+                       .fp16 = 358
        },
        64,
        64
@@ -693,7 +693,7 @@ static const struct dc_debug_options debug_defaults_drv = {
        .disable_dcc = DCC_ENABLE,
        .vsr_support = true,
        .performance_trace = false,
-       .max_downscale_src_width = 7680,/*upto 8K*/
+       .max_downscale_src_width = 4096,/*upto true 4k*/
        .scl_reset_length10 = true,
        .sanity_checks = false,
        .underflow_assert_delay_us = 0xFFFFFFFF,