]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atomic: Add affected colorops with affected planes
authorChaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Tue, 10 Mar 2026 11:32:38 +0000 (17:02 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 16 Mar 2026 03:03:07 +0000 (08:33 +0530)
commit6955d6bca0531ffbbaeecac844b7bae84345b3fb
treebc5cc07e93a415236d5912d74edd6934b41035b6
parent0d9710aeb6959ae244f255986187562fa50504b9
drm/atomic: Add affected colorops with affected planes

When drm_atomic_add_affected_planes() adds a plane to the atomic
state, the associated colorops are not guaranteed to be included.
This can leave colorop state out of the transaction when planes
are pulled in implicitly (eg. during modeset or internal commits).

Also add affected colorops when adding affected planes to keep
plane and color pipeline state consistent within the atomic
transaction.

v2: Add affected colorops only when a pipeline is enabled

Fixes: 2afc3184f3b3 ("drm/plane: Add COLOR PIPELINE property")
Cc: <stable@vger.kernel.org> #v6.19+
Reviewed-by: Uma Shankar <uma.shankar@intel.com> #v1
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260310113238.3495981-3-chaitanya.kumar.borah@intel.com
drivers/gpu/drm/drm_atomic.c