mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
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: Sylvia Tsai <sylvia.tsai@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e266fdf694
commit
8f16f28936
1 changed files with 5 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue