drm/amd/display: temporary clamp the vratio used to 1.0
authorLewis Huang <Lewis.Huang@amd.com>
Wed, 22 Apr 2020 02:01:23 +0000 (10:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2020 17:11:36 +0000 (13:11 -0400)
commitb130cc4eec04d2cedf1af9e630530859c8a60d7c
tree01c63b9f6c8a77c3446571ccdd1814bf1210cb0b
parentf00889dc7157fa32d2319483b713752ed37ea0e5
drm/amd/display: temporary clamp the vratio used to 1.0

[Why]
in Is_Support function, driver report different caps between
same timing but different scaling cause OS inconsistent.

[How]
min_row_time is a local that’s only used for verifying immediate
flip support. Clamp the vratio used for its calculation to 1.0.

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c