Skip to content

Commit abc0ad6

Browse files
Gabe Teegeralexdeucher
authored andcommitted
drm/amd/display: Limit Scaling Ratio on DCN3.01
[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 <[email protected]> Signed-off-by: Gabe Teeger <[email protected]> Signed-off-by: Tom Chung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d477e39 commit abc0ad6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/amd/display/dc/resource/dcn301/dcn301_resource.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,9 @@ static const struct dc_plane_cap plane_cap = {
671671

672672
/* 6:1 downscaling ratio: 1000/6 = 166.666 */
673673
.max_downscale_factor = {
674-
.argb8888 = 167,
675-
.nv12 = 167,
676-
.fp16 = 167
674+
.argb8888 = 358,
675+
.nv12 = 358,
676+
.fp16 = 358
677677
},
678678
64,
679679
64
@@ -693,7 +693,7 @@ static const struct dc_debug_options debug_defaults_drv = {
693693
.disable_dcc = DCC_ENABLE,
694694
.vsr_support = true,
695695
.performance_trace = false,
696-
.max_downscale_src_width = 7680,/*upto 8K*/
696+
.max_downscale_src_width = 4096,/*upto true 4k*/
697697
.scl_reset_length10 = true,
698698
.sanity_checks = false,
699699
.underflow_assert_delay_us = 0xFFFFFFFF,

0 commit comments

Comments
 (0)