History

drm/doc: document that PRIME import/export is always supported

Since commit 6b85aa68d9d5 ("drm: Enable PRIME import/export for all drivers"), import/export is always supported. Document this so that user-space knows what to expect.

Simon Ser committed 3 years ago

Commit ad9ee111 parent 2ff4f6d1 file · +7 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/drm.h+7−0
@@ -673,6 +673,9 @@ struct drm_gem_open { · 672 unmodified lines
673 * Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT673 * Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT
674 * and &DRM_PRIME_CAP_EXPORT.674 * and &DRM_PRIME_CAP_EXPORT.
675 *675 *
676 * Starting from kernel version 6.6, both &DRM_PRIME_CAP_IMPORT and
677 * &DRM_PRIME_CAP_EXPORT are always advertised.
678 *
676 * PRIME buffers are exposed as dma-buf file descriptors.679 * PRIME buffers are exposed as dma-buf file descriptors.
677 * See :ref:`prime_buffer_sharing`.680 * See :ref:`prime_buffer_sharing`.
678 */681 */
@@ -682,6 +685,8 @@ struct drm_gem_open { · 3 unmodified lines
682 *685 *
683 * If this bit is set in &DRM_CAP_PRIME, the driver supports importing PRIME686 * If this bit is set in &DRM_CAP_PRIME, the driver supports importing PRIME
684 * buffers via the &DRM_IOCTL_PRIME_FD_TO_HANDLE ioctl.687 * buffers via the &DRM_IOCTL_PRIME_FD_TO_HANDLE ioctl.
688 *
689 * Starting from kernel version 6.6, this bit is always set in &DRM_CAP_PRIME.
685 */690 */
686#define DRM_PRIME_CAP_IMPORT 0x1691#define DRM_PRIME_CAP_IMPORT 0x1
687/**692/**
@@ -689,6 +694,8 @@ struct drm_gem_open { · 1 unmodified line
689 *694 *
690 * If this bit is set in &DRM_CAP_PRIME, the driver supports exporting PRIME695 * If this bit is set in &DRM_CAP_PRIME, the driver supports exporting PRIME
691 * buffers via the &DRM_IOCTL_PRIME_HANDLE_TO_FD ioctl.696 * buffers via the &DRM_IOCTL_PRIME_HANDLE_TO_FD ioctl.
697 *
698 * Starting from kernel version 6.6, this bit is always set in &DRM_CAP_PRIME.
692 */699 */
693#define DRM_PRIME_CAP_EXPORT 0x2700#define DRM_PRIME_CAP_EXPORT 0x2
694/**701/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t