Skip to content

drm: Guard DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE behind driver feature

Robert Mader amd-gfx dri-devel intel-gfx lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm: Guard DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE behind driver featuredrivers/gpu/drm/drm_ioctl.c include/drm/drm_drv.h+8 -05 replies
2/4drm/amdgpu: Add DRIVER_PLANE_COLOR_PIPELINE driver featuredrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+1 -10 replies
3/4drm/i915: Add DRIVER_PLANE_COLOR_PIPELINE driver featuredrivers/gpu/drm/i915/i915_driver.c+1 -10 replies
4/4drm/vkms: Add DRIVER_PLANE_COLOR_PIPELINE driver featuredrivers/gpu/drm/vkms/vkms_drv.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] drm: Guard DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE behind driver feature

From the main commit:

The client cap is currently advertised unconditionally, even for drivers that do not support plane color pipelines. If clients supporting the later, like Wayland compositors and drm_info, enable the client cap on sich drivers they will be left without both color pipeline and the legacy properties COLOR_ENCODING and COLOR_RANGE, effectively breaking YUV->RGB conversion support.

Add a new driver feature and guard the client cap behind it, allowing plane color pipeline and legacy YUV->RGB support to co-exist.

In case of VKMS make the client cap depend on the enable_plane_pipeline.

The series can be easily tested with drm_info >= v2.10.0 and VKMS. Without the enable_plane_pipeline option - currently the default - the legacy flags COLOR_ENCODING and COLOR_RANGE should be advertised, just like older drm_info versions.

---

Related series actually implementing the color pipeline replacement for the legacy flags:
https://lists.freedesktop.org/archives/dri-devel/2026-June/575655.html

Robert Mader (4):
drm: Guard DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE behind driver feature drm/amdgpu: Add DRIVER_PLANE_COLOR_PIPELINE driver feature drm/i915: Add DRIVER_PLANE_COLOR_PIPELINE driver feature drm/vkms: Add DRIVER_PLANE_COLOR_PIPELINE driver feature

 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
 drivers/gpu/drm/drm_ioctl.c             | 2 ++
 drivers/gpu/drm/i915/i915_driver.c      | 2 +-
 drivers/gpu/drm/vkms/vkms_drv.c         | 6 +++++-
 include/drm/drm_drv.h                   | 6 ++++++
 5 files changed, 15 insertions(+), 3 deletions(-)
Signature · 1 line
2.54.0