Skip to content

Commit af755a7

Browse files
Alex Hungemersion
authored andcommitted
drm/amd/display: Skip color pipeline initialization for cursor plane
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
1 parent 71bcae3 commit af755a7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,9 @@ dm_plane_init_colorops(struct drm_plane *plane)
17921792
struct drm_prop_enum_list pipelines[MAX_COLOR_PIPELINES];
17931793
int len = 0;
17941794

1795+
if (plane->type == DRM_PLANE_TYPE_CURSOR)
1796+
return 0;
1797+
17951798
/* Create COLOR_PIPELINE property and attach */
17961799
drm_plane_create_color_pipeline_property(plane, pipelines, len);
17971800

0 commit comments

Comments
 (0)