diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2025-08-19 11:29:05 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-08-29 10:13:58 -0400 |
commit | de63b05593573cb0106875452c706ebaf6faa8f7 (patch) | |
tree | d3f1eaa20784d282f47a32311cd6c8bbe6a5f01b /rust/helpers/vmalloc.c | |
parent | 002a612023c8b105bd3829d81862dee04368d6de (diff) |
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>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions