Commit af755a79 authored by Alex Hung's avatar Alex Hung Committed by Simon Ser
Browse files

drm/amd/display: Skip color pipeline initialization for cursor plane



cursor plane does not need to have color pipeline.

Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: default avatarMelissa Wen <mwen@igalia.com>
Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-28-alex.hung@amd.com
parent 71bcae3e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);