Skip to content

Commit e0edb58

Browse files
Harry Wentlandemersion
authored andcommitted
drm/amd/display: Ignore deprecated props when plane_color_pipeline set
When the plane_color_pipeline bit is set we should ignore deprecated properties, such as COLOR_RANGE and COLOR_ENCODING. Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Harry Wentland <harry.wentland@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-26-alex.hung@amd.com
1 parent e341cc6 commit e0edb58

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5880,6 +5880,10 @@ fill_plane_color_attributes(const struct drm_plane_state *plane_state,
58805880

58815881
*color_space = COLOR_SPACE_SRGB;
58825882

5883+
/* Ignore properties when DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE is set */
5884+
if (plane_state->state && plane_state->state->plane_color_pipeline)
5885+
return 0;
5886+
58835887
/* DRM color properties only affect non-RGB formats. */
58845888
if (format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
58855889
return 0;

0 commit comments

Comments
 (0)