[v16 2/4] drm: Add DP colorspace property

2019-02-12 Thread Uma Shankar via dri-devel
This patch adds a DP colorspace property, enabling userspace to switch to various supported colorspaces. This will help enable BT2020 along with other colorspaces. v2: Addressed Maarten and Ville's review comments. Enhanced the colorspace enum to incorporate both HDMI and DP supported colo

[v16 0/4] Add Colorspace connector property interface

2019-02-12 Thread Uma Shankar via dri-devel
This patch series creates a new connector property to program colorspace to sink devices. Modern sink devices support more than 1 type of colorspace like 601, 709, BT2020 etc. This helps to switch based on content type which is to be displayed. The decision lies with compositors as to in which scen

[v16 3/4] drm: Add colorspace info to AVI Infoframe

2019-02-12 Thread Uma Shankar via dri-devel
This adds colorspace information to HDMI AVI infoframe. A helper function is added to program the same. v2: Moved this to drm core instead of i915 driver. v3: Exported the helper function. v4: Added separate HDMI specific macro as per CTA spec. This is separate from user exposed enum values. Thi

[v16 1/4] drm: Add HDMI colorspace property

2019-02-12 Thread Uma Shankar via dri-devel
Create a new connector property to program colorspace to sink devices. Modern sink devices support more than 1 type of colorspace like 601, 709, BT2020 etc. This helps to switch based on content type which is to be displayed. The decision lies with compositors as to in which scenarios, a particular

[v16 4/4] drm/i915: Attach colorspace property and enable modeset

2019-02-12 Thread Uma Shankar via dri-devel
This patch attaches the colorspace connector property to the hdmi connector. Based on colorspace change, modeset will be triggered to switch to new colorspace. Based on colorspace property value create an infoframe with appropriate colorspace. This can be used to send an infoframe packet with prop