summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h
diff options
context:
space:
mode:
authorSu Sung Chung <su.chung@amd.com>2018-09-07 23:51:42 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-09-27 05:09:06 +0300
commitfb2b1ea325b411262031435c951d189a75de94b9 (patch)
tree721dd9ae8e4b1cc5539093a5485f693a16d18f27 /drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h
parentc2791297013e531d1b7d8e17722bebec69386ab2 (diff)
downloadlinux-fb2b1ea325b411262031435c951d189a75de94b9.tar.xz
drm/amd/display: program v_update and v_ready with proper field
[WHY] There are two different variables used to calculate v_update and v_ready, one for validation and the other for performance parameter calculation. Before the variable for validation was used which caused underflow on 1080edp with vsr enabled [HOW] program v_update and v_ready with the variables for performance parameter calculation Signed-off-by: Su Sung Chung <su.chung@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h b/drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h
index ddbb673caa08..e688eb9b975c 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h
@@ -504,10 +504,10 @@ struct dcn_bw_internal_vars {
float prefetch_mode;
float dstx_after_scaler;
float dsty_after_scaler;
- float v_update_offset_pix;
+ float v_update_offset_pix[number_of_planes_minus_one + 1];
float total_repeater_delay_time;
- float v_update_width_pix;
- float v_ready_offset_pix;
+ float v_update_width_pix[number_of_planes_minus_one + 1];
+ float v_ready_offset_pix[number_of_planes_minus_one + 1];
float t_setup;
float t_wait;
float bandwidth_available_for_immediate_flip;