drm/amd/display: use clamping rather than truncation for CM fp conversions
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tue, 28 Nov 2017 21:20:45 +0000 (16:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 16:00:53 +0000 (11:00 -0500)
commit78b56c52349596374dd47584d1f1db4d08609b7b
tree46ab247d6c38b42fa0ffbb02189159eaa61bb663
parent51ca0b036223660e0db10e2bf6097a0689f5fa44
drm/amd/display: use clamping rather than truncation for CM fp conversions

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@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>
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c
drivers/gpu/drm/amd/display/include/fixed31_32.h