drm/amd/display: Correct fixed point calculation.
authorVitaly Prosyak <vitaly.prosyak@amd.com>
Fri, 24 Nov 2017 21:52:33 +0000 (15:52 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:57:36 +0000 (10:57 -0500)
commit508f60e36a4288beb920b921924742c2b3e12a0d
tree63859abb0e577ee17b7ca2c723d4b023d345e676
parent40e045a9733f3c032ff957d9663c106c82fd5343
drm/amd/display: Correct fixed point calculation.

When convert from fixed31_32 to other fixed point
format use math operation round instead of floor.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/conversion.c