Similar to what is done for tracking CRTC color mgmt property changes with CRTC `color_mgmt_changed` flag, track colorop updates of a given plane color pipeline by setting plane `color_mgmt_changed` flag. Also true if setting a different color pipeline to a given plane. That way, the driver can react accordingly and update their color blocks.
This small series fix shaper/3D LUT updates when changing night mode settings on gamescope with a custom branch that supports `COLOR_PIPELINE`[1]. This series doesn't cover 1D/3D LUT interpolation, since it's documented as read-only properties. Let me know your thoughts! [1] https://github.com/ValveSoftware/gamescope/pull/2113 Melissa Wen Melissa Wen (2): drm/atomic: track individual colorop updates drm/amd/display: use plane color_mgmt_changed to track colorop changes .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++- drivers/gpu/drm/drm_atomic_uapi.c | 53 +++++++++++++++---- include/drm/drm_atomic_uapi.h | 2 +- 3 files changed, 48 insertions(+), 13 deletions(-) -- 2.51.0
