[PATCH 0/7] New DRM properties for output color format

From: Andri Yngvason
Date: Tue Jan 09 2024 - 13:11:59 EST


This is a subset of patches, originally submitted by Werner Sembach
titled: New uAPI drm properties for color management [1]

I've rebased against the current master branch, made modifications where
needed, and tested with both HDMI and DP on both Intel and AMD hardware,
using modified sway [2] and wlroots [3].

The original patch set added the following properties:
- active bpc
- active color format
- active color range
- preferred color format
and consolidated "Broadcast RGB" into a single property.

I've elected to only include active and preferred color format in this
patch set as I've very little interest in the other properties and,
hopefully, this will be easier for others to review.

[1]: https://lore.kernel.org/dri-devel/20210630151018.330354-1-wse@xxxxxxxxxxxxxxxxxxx/
[2]: https://github.com/swaywm/sway/pull/7903
[3]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4509

Werner Sembach (7):
drm/amd/display: Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check
drm/uAPI: Add "active color format" drm property as feedback for
userspace
drm/amd/display: Add handling for new "active color format" property
drm/i915/display: Add handling for new "active color format" property
drm/uAPI: Add "preferred color format" drm property as setting for
userspace
drm/amd/display: Add handling for new "preferred color format"
property
drm/i915/display: Add handling for new "preferred color format"
property

.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 75 ++++++++++--
.../display/amdgpu_dm/amdgpu_dm_mst_types.c | 8 ++
drivers/gpu/drm/drm_atomic_helper.c | 4 +
drivers/gpu/drm/drm_atomic_uapi.c | 4 +
drivers/gpu/drm/drm_connector.c | 111 ++++++++++++++++++
drivers/gpu/drm/i915/display/intel_display.c | 33 ++++++
drivers/gpu/drm/i915/display/intel_dp.c | 23 ++--
drivers/gpu/drm/i915/display/intel_dp_mst.c | 10 ++
drivers/gpu/drm/i915/display/intel_hdmi.c | 16 ++-
include/drm/drm_connector.h | 27 +++++
10 files changed, 289 insertions(+), 22 deletions(-)


base-commit: 1f874787ed9a2d78ed59cb21d0d90ac0178eceb0
--
2.43.0