]> Gentwo Git Trees - linux/.git/commit
drm/amd/display: Optimize custom brightness curve interpolation
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 19 Aug 2025 16:29:05 +0000 (11:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Aug 2025 14:13:58 +0000 (10:13 -0400)
commitde63b05593573cb0106875452c706ebaf6faa8f7
treed3f1eaa20784d282f47a32311cd6c8bbe6a5f01b
parent002a612023c8b105bd3829d81862dee04368d6de
drm/amd/display: Optimize custom brightness curve interpolation

[Why]
Custom brightness curve works by walking through all data points one
by one.  When the brightness value is at either extreme this is a lot
of data points to walk.  This is especially noticeable when moving a
brightness slider around how it can lag.

[How]
Bisect the data points to find the closest for interpolation.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c