]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/drm_atomic: duplicate colorop states if plane color pipeline in use
authorMelissa Wen <mwen@igalia.com>
Wed, 18 Mar 2026 16:27:11 +0000 (13:27 -0300)
committerMelissa Wen <melissa.srw@gmail.com>
Thu, 16 Apr 2026 14:49:09 +0000 (11:49 -0300)
commit6bf7969a145e13a3390143038fe82c52025aeb93
treeeb8102a464635a75e9cf1ed64352bdd3ba9d0a69
parent6597ff1d8de3f583be169587efeafd8af134e138
drm/drm_atomic: duplicate colorop states if plane color pipeline in use

For suspend/resume to work correctly, do for colorop state the same we
do for plane/crtc/connector states: duplicate the state of colorops in a
color pipeline if it's in use by a given plane when suspending and
restore cached colorop states when resuming. While at it, prevent
unused-variable warning when using for_each_new_colorop_in_stage here.

Fixes: 2afc3184f3b3 ("drm/plane: Add COLOR PIPELINE property")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Link: https://patch.msgid.link/20260318163629.300627-1-mwen@igalia.com
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic.h