diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2017-07-28 18:21:22 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:15:59 -0400 |
commit | e51bf71e8c827e1d71235f6b1fe12a952c3a0514 (patch) | |
tree | 2d3ff01d6f9f19c3f122832b2eb15d59ff9b887d /drivers/gpu/drm/amd/display/dc/calcs | |
parent | d70ccd4a65373599fe9aa999dff07c05ea2893e6 (diff) | |
download | blackbird-op-linux-e51bf71e8c827e1d71235f6b1fe12a952c3a0514.tar.gz blackbird-op-linux-e51bf71e8c827e1d71235f6b1fe12a952c3a0514.zip |
drm/amd/display: fix bw_calc for hdmi and 420 outputs
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/calcs')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c index be6e3ca9fb0d..c809ad3738e9 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c @@ -923,8 +923,10 @@ bool dcn_validate_bandwidth( if (v->is_line_buffer_bpp_fixed == dcn_bw_yes) v->lb_bit_per_pixel[input_idx] = v->line_buffer_fixed_bpp; v->dcc_rate[input_idx] = 1; /*TODO: Worst case? does this change?*/ - v->output_format[input_idx] = dcn_bw_444; - v->output[input_idx] = dcn_bw_dp; + v->output_format[input_idx] = pipe->stream->timing.pixel_encoding == + PIXEL_ENCODING_YCBCR420 ? dcn_bw_420 : dcn_bw_444; + v->output[input_idx] = pipe->stream->sink->sink_signal == + SIGNAL_TYPE_HDMI_TYPE_A ? dcn_bw_hdmi : dcn_bw_dp; input_idx++; } |