]> Gentwo Git Trees - linux/.git/commitdiff
drm/amd/display: Skip color pipeline initialization for cursor plane
authorAlex Hung <alex.hung@amd.com>
Sat, 15 Nov 2025 00:01:52 +0000 (17:01 -0700)
committerSimon Ser <contact@emersion.fr>
Wed, 26 Nov 2025 22:03:34 +0000 (23:03 +0100)
cursor plane does not need to have color pipeline.

Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-28-alex.hung@amd.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c

index 877fd221c81ad69ee41de5d29f2cfb10d4f0142d..f3efaf55e099689a53b8816bf04af79e51b59e67 100644 (file)
@@ -1792,6 +1792,9 @@ dm_plane_init_colorops(struct drm_plane *plane)
        struct drm_prop_enum_list pipelines[MAX_COLOR_PIPELINES];
        int len = 0;
 
+       if (plane->type == DRM_PLANE_TYPE_CURSOR)
+               return 0;
+
        /* Create COLOR_PIPELINE property and attach */
        drm_plane_create_color_pipeline_property(plane, pipelines, len);