]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use 4096 lut entries
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Mon, 12 Feb 2018 18:20:56 +0000 (13:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:33:09 +0000 (15:33 -0500)
commitc59a2b7c4b6f9689fc80e411a64b6f8c8399ba09
treecfccae6e7d7936d66dd8c2d677ed89404d3b5f4f
parentab40a5c7102cda525681cc6658de380e7a889363
drm/amd/display: Use 4096 lut entries

Points in the DRM LUT are spaced linearly. Points in hardware are spaced
exponentially, with greater density towards 0. To maintain low-end
accuracy in hardware when sampling the DRM LUT, more points are needed.

However, X doesn't seem to play with legacy LUTs of such size.
Therefore, check for legacy lut when updating DC states, and update
accordingly.

v2: Use a macro for the maximum drm LUT value.

v3: Update commit to reflect that this does not map 1-1 to HW

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.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c