]> Gentwo Git Trees - linux/.git/commit
drm/amd/display: change dc stream color settings only in atomic commit
authorMelissa Wen <mwen@igalia.com>
Thu, 11 Sep 2025 17:21:20 +0000 (14:21 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 14:36:15 +0000 (10:36 -0400)
commit51cb93aa0c4a9bb126b76f6e9fd640d88de25cee
treec17c671c13443f5e57a444f181cfdf2c9980edb2
parent2330437da0994321020777c605a2a8cb0ecb7001
drm/amd/display: change dc stream color settings only in atomic commit

Don't update DC stream color components during atomic check. The driver
will continue validating the new CRTC color state but will not change DC
stream color components. The DC stream color state will only be
programmed at commit time in the `atomic_setup_commit` stage.

It fixes gamma LUT loss reported by KDE users when changing brightness
quickly or changing Display settings (such as overscan) with nightlight
on and HDR. As KWin can do a test commit with color settings different
from those that should be applied in a non-test-only commit, if the
driver changes DC stream color state in atomic check, this state can be
eventually HW programmed in commit tail, instead of the respective state
set by the non-blocking commit.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4444
Reported-by: Xaver Hugl <xaver.hugl@gmail.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c