drm: Add HDR capabilty field to plane structure
authorUma Shankar <uma.shankar@intel.com>
Wed, 31 May 2017 10:10:54 +0000 (15:40 +0530)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:55:33 +0000 (14:55 -0500)
Hardware may have HDR capability on certain plane
engines. Enabling the same in drm plane structure
so that this can be communicated to user space.

Each drm driver should set this flag to true for planes
which support HDR.

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
include/drm/drm_plane.h

index 6359153..1d04bf0 100644 (file)
@@ -446,6 +446,9 @@ struct drm_plane {
 
        enum drm_plane_type type;
 
+       /* Value of true:1 means HDR is supported */
+       bool hdr_supported;
+
        /**
         * @index: Position inside the mode_config.list, can be used as an array
         * index. It is invariant over the lifetime of the plane.