提交 8f16f289 编写于 作者: S Sylvia Tsai 提交者: Alex Deucher

drm/amd/display: Set ignore_msa_timing flag for freesync modes

- Set ignore_msa_timing_param to 1 only for modes that can support freesync
Signed-off-by: NSylvia Tsai <sylvia.tsai@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e266fdf6
......@@ -262,7 +262,11 @@ bool mod_freesync_add_stream(struct mod_freesync *mod_freesync,
enable_for_video = false;
}
if (caps->supported)
unsigned int nom_refresh_rate_micro_hz = (unsigned int)
(((unsigned long long) core_stream->public.timing.pix_clk_khz) * 1000ULL * 1000ULL * 1000ULL
/ core_stream->public.timing.h_total / core_stream->public.timing.v_total);
if (caps->supported && nom_refresh_rate_micro_hz >= caps->min_refresh_in_micro_hz && nom_refresh_rate_micro_hz <= caps->max_refresh_in_micro_hz)
core_stream->public.ignore_msa_timing_param = 1;
core_freesync->num_entities++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册