Commit 6bf7969
committed
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: 2afc318 ("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>1 parent 6597ff1 commit 6bf7969
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3751 | 3751 | | |
3752 | 3752 | | |
3753 | 3753 | | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
| 3760 | + | |
3754 | 3761 | | |
3755 | 3762 | | |
3756 | 3763 | | |
| |||
3856 | 3863 | | |
3857 | 3864 | | |
3858 | 3865 | | |
| 3866 | + | |
| 3867 | + | |
3859 | 3868 | | |
3860 | 3869 | | |
3861 | 3870 | | |
3862 | 3871 | | |
3863 | 3872 | | |
3864 | 3873 | | |
3865 | 3874 | | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
3866 | 3878 | | |
3867 | 3879 | | |
3868 | 3880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | | - | |
| 1092 | + | |
| 1093 | + | |
1093 | 1094 | | |
1094 | 1095 | | |
1095 | 1096 | | |
| |||
0 commit comments