drm/amd/display: Handle Y carry-over in VCP X.Y calculation
authorGeorge Shen <george.shen@amd.com>
Thu, 16 Sep 2021 23:55:39 +0000 (19:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Sep 2021 21:30:00 +0000 (17:30 -0400)
commit3626a6aebe62ce7067cdc460c0c644e9445386bb
tree8b3446cbaa1974c907f21b75c159257972157623
parentc01baf22dab3ea9a449194761ce801feeaab682b
drm/amd/display: Handle Y carry-over in VCP X.Y calculation

[Why/How]
Theoretically rare corner case where ceil(Y) results in rounding
up to an integer. If this happens, the 1 should be carried over to
the X value.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c