mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
drm/amd/display: Fix timing bandwidth calculation for HDMI
[Why && How] The current bandwidth calculation for timing doesn't account for certain HDMI modes overhead which leads to DSC can't be enabled. Add support to calculate the actual bandwidth for these HDMI modes. Reviewed-by: Chris Park <chris.park@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
aa708057c4
commit
c597479f27
|
|
@ -942,6 +942,7 @@ struct dc_crtc_timing {
|
|||
uint32_t hdmi_vic;
|
||||
uint32_t rid;
|
||||
uint32_t fr_index;
|
||||
uint32_t frl_uncompressed_video_bandwidth_in_kbps;
|
||||
enum dc_timing_3d_format timing_3d_format;
|
||||
enum dc_color_depth display_color_depth;
|
||||
enum dc_pixel_encoding pixel_encoding;
|
||||
|
|
|
|||
|
|
@ -137,6 +137,11 @@ uint32_t dc_bandwidth_in_kbps_from_timing(
|
|||
if (link_encoding == DC_LINK_ENCODING_DP_128b_132b)
|
||||
kbps = apply_128b_132b_stream_overhead(timing, kbps);
|
||||
|
||||
if (link_encoding == DC_LINK_ENCODING_HDMI_FRL &&
|
||||
timing->vic == 0 && timing->hdmi_vic == 0 &&
|
||||
timing->frl_uncompressed_video_bandwidth_in_kbps != 0)
|
||||
kbps = timing->frl_uncompressed_video_bandwidth_in_kbps;
|
||||
|
||||
return kbps;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user