]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools headers: Sync UAPI drm/drm.h with kernel sources
authorNamhyung Kim <namhyung@kernel.org>
Mon, 22 Dec 2025 22:57:06 +0000 (14:57 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 24 Dec 2025 19:42:00 +0000 (11:42 -0800)
To pick up changes from:

  179ab8e7d7b378f1 ("drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE")

This should be used to beautify DRM syscall arguments and it addresses
these tools/perf build warnings:

  Warning: Kernel ABI header differences:
    diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h

Please see tools/include/uapi/README.

Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/include/uapi/drm/drm.h

index 3cd5cf15e3c9ce220aa3171ec1342ba7ef61d273..27cc159c1d275c7a7fe057840ef792f30a582bb7 100644 (file)
@@ -906,6 +906,21 @@ struct drm_get_cap {
  */
 #define DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT    6
 
+/**
+ * DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE
+ *
+ * If set to 1 the DRM core will allow setting the COLOR_PIPELINE
+ * property on a &drm_plane, as well as drm_colorop properties.
+ *
+ * Setting of these plane properties will be rejected when this client
+ * cap is set:
+ * - COLOR_ENCODING
+ * - COLOR_RANGE
+ *
+ * The client must enable &DRM_CLIENT_CAP_ATOMIC first.
+ */
+#define DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE    7
+
 /* DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */
 struct drm_set_client_cap {
        __u64 capability;