aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2025-03-24 12:57:25 -0500
committerAlex Deucher <alexander.deucher@amd.com>2025-04-07 18:01:07 -0400
commit03b979e1025fba1d47cae005022fcdbba140f043 (patch)
tree4f5f898051d3576eb055750e13b2ed3bfed19f99 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
parentdrm/amdgpu: Fix CPER error handling on VFs (diff)
downloadlinux-03b979e1025fba1d47cae005022fcdbba140f043.tar.gz
linux-03b979e1025fba1d47cae005022fcdbba140f043.zip
drm/amd/display: Optimize custom brightness curve
[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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c')
0 files changed, 0 insertions, 0 deletions