]> asedeno.scripts.mit.edu Git - linux.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)
commit086247a4b2fba49800b27807f22bb894cd8363fb
treecfccae6e7d7936d66dd8c2d677ed89404d3b5f4f
parent11fffe45b76d2849a684f2d769bc76901ba0d301
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