diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2025-03-24 20:57:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-06 12:04:26 +0300 |
commit | d5df87e3fccecde67866f587e187e67b503a0be9 (patch) | |
tree | 86435b38c4934a01b690ecc46dbead562b3d25ab /scripts/gdb/linux/xarray.py | |
parent | cd711c87c2862be5e71eee79901f94e1c943f9fc (diff) | |
download | linux-d5df87e3fccecde67866f587e187e67b503a0be9.tar.xz |
drm/amd/display: Optimize custom brightness curve
commit 03b979e1025fba1d47cae005022fcdbba140f043 upstream.
[Why]
When BIOS includes a lot of custom brightness data points, walking
the entire list can be time consuming. This is most noticed when
dragging a power slider. The "higher" values are "slower" to drag
around.
[How]
Move custom brightness calculation loop into a static function. Before
starting the loop check the "half way" data point to see how it compares
to the input. If greater than the half way data point use that as the
starting point instead.
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions