Skip to content

Commit 84d5c07

Browse files
committed
tools headers UAPI: Update tools's copy of drm/drm.h header
Picking the changes from: 2e290c8 ("drm: document minimum kernel version for DRM_CLIENT_CAP_*") bbf4627 ("drm: clarify and linkify DRM_CLIENT_CAP_WRITEBACK_CONNECTORS docs") 88938bf ("drm: reference mode flags in DRM_CLIENT_CAP_* docs") Silencing these perf build warnings: Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h' diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h No changes in tooling as these are just C comment documentation changes. Cc: Simon Ser <contact@emersion.fr> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 4a1cdde commit 84d5c07

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

  • tools/include/uapi/drm

‎tools/include/uapi/drm/drm.h‎

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,12 @@ struct drm_get_cap {
777777
/**
778778
* DRM_CLIENT_CAP_STEREO_3D
779779
*
780-
* if set to 1, the DRM core will expose the stereo 3D capabilities of the
780+
* If set to 1, the DRM core will expose the stereo 3D capabilities of the
781781
* monitor by advertising the supported 3D layouts in the flags of struct
782-
* drm_mode_modeinfo.
782+
* drm_mode_modeinfo. See ``DRM_MODE_FLAG_3D_*``.
783+
*
784+
* This capability is always supported for all drivers starting from kernel
785+
* version 3.13.
783786
*/
784787
#define DRM_CLIENT_CAP_STEREO_3D 1
785788

@@ -788,6 +791,9 @@ struct drm_get_cap {
788791
*
789792
* If set to 1, the DRM core will expose all planes (overlay, primary, and
790793
* cursor) to userspace.
794+
*
795+
* This capability has been introduced in kernel version 3.15. Starting from
796+
* kernel version 3.17, this capability is always supported for all drivers.
791797
*/
792798
#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2
793799

@@ -797,22 +803,36 @@ struct drm_get_cap {
797803
* If set to 1, the DRM core will expose atomic properties to userspace. This
798804
* implicitly enables &DRM_CLIENT_CAP_UNIVERSAL_PLANES and
799805
* &DRM_CLIENT_CAP_ASPECT_RATIO.
806+
*
807+
* If the driver doesn't support atomic mode-setting, enabling this capability
808+
* will fail with -EOPNOTSUPP.
809+
*
810+
* This capability has been introduced in kernel version 4.0. Starting from
811+
* kernel version 4.2, this capability is always supported for atomic-capable
812+
* drivers.
800813
*/
801814
#define DRM_CLIENT_CAP_ATOMIC 3
802815

803816
/**
804817
* DRM_CLIENT_CAP_ASPECT_RATIO
805818
*
806819
* If set to 1, the DRM core will provide aspect ratio information in modes.
820+
* See ``DRM_MODE_FLAG_PIC_AR_*``.
821+
*
822+
* This capability is always supported for all drivers starting from kernel
823+
* version 4.18.
807824
*/
808825
#define DRM_CLIENT_CAP_ASPECT_RATIO 4
809826

810827
/**
811828
* DRM_CLIENT_CAP_WRITEBACK_CONNECTORS
812829
*
813830
* If set to 1, the DRM core will expose special connectors to be used for
814-
* writing back to memory the scene setup in the commit. Depends on client
815-
* also supporting DRM_CLIENT_CAP_ATOMIC
831+
* writing back to memory the scene setup in the commit. The client must enable
832+
* &DRM_CLIENT_CAP_ATOMIC first.
833+
*
834+
* This capability is always supported for atomic-capable drivers starting from
835+
* kernel version 4.19.
816836
*/
817837
#define DRM_CLIENT_CAP_WRITEBACK_CONNECTORS 5
818838

0 commit comments

Comments
 (0)