OSDN Git Service

drm/amd/display: Convert CTM to 2's complement
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Fri, 23 Feb 2018 17:59:03 +0000 (12:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:08:43 +0000 (15:08 -0500)
commit5e3e341cee51a755b81a660806bfcad3fdcfc906
tree739a6c034d7022c0ba23958842579ec04ebbe41d
parenta7596f25db13b1f5a2f8a068d8e9a60a23e34451
drm/amd/display: Convert CTM to 2's complement

DRM's documentation for the color transform matrix does not specify
whether the values are in signed-magnitude, or 2's complement.
Therefore, it was assumed to use 2's complement.

However, existing usermode implementations use signed-magnitude.
Therefore, conform to existing standards, and convert to 2's complement
internally.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c