]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Handle interpolation for first data point
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 4 Sep 2025 18:49:35 +0000 (13:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 14:26:56 +0000 (10:26 -0400)
commit6cec25f5b5660602b1953038cf40968b2d71c403
treebc742c90648c55ae3c52a7a4e8ae7b7a4ffefcba
parent74d70e309d155550c9bd8bce74812875df47fb7b
drm/amd/display: Handle interpolation for first data point

[Why]
If the first data point for a custom brightness curve is not 0% luminance
then the first few luminance values will be ignored.

[How]
Check signal is below first data point and if so do linear interpolation to
0 instead.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@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