Commit 9a2eabf4 authored by Simon Ser's avatar Simon Ser

drm/doc: use proper cross-references for sections

When I originally wrote these docs, I couldn't manage to insert a
cross-reference to a section. Here's how it can be done.
Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Cc: Pekka Paalanen <pekka.paalanen@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230803095734.386761-1-contact@emersion.fr
parent 1e8ea2e9
...@@ -517,6 +517,8 @@ DRM Cache Handling and Fast WC memcpy() ...@@ -517,6 +517,8 @@ DRM Cache Handling and Fast WC memcpy()
.. kernel-doc:: drivers/gpu/drm/drm_cache.c .. kernel-doc:: drivers/gpu/drm/drm_cache.c
:export: :export:
.. _drm_sync_objects:
DRM Sync Objects DRM Sync Objects
=========================== ===========================
......
...@@ -673,8 +673,8 @@ struct drm_gem_open { ...@@ -673,8 +673,8 @@ struct drm_gem_open {
* Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT * Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT
* and &DRM_PRIME_CAP_EXPORT. * and &DRM_PRIME_CAP_EXPORT.
* *
* PRIME buffers are exposed as dma-buf file descriptors. See * PRIME buffers are exposed as dma-buf file descriptors.
* Documentation/gpu/drm-mm.rst, section "PRIME Buffer Sharing". * See :ref:`prime_buffer_sharing`.
*/ */
#define DRM_CAP_PRIME 0x5 #define DRM_CAP_PRIME 0x5
/** /**
...@@ -756,15 +756,14 @@ struct drm_gem_open { ...@@ -756,15 +756,14 @@ struct drm_gem_open {
/** /**
* DRM_CAP_SYNCOBJ * DRM_CAP_SYNCOBJ
* *
* If set to 1, the driver supports sync objects. See * If set to 1, the driver supports sync objects. See :ref:`drm_sync_objects`.
* Documentation/gpu/drm-mm.rst, section "DRM Sync Objects".
*/ */
#define DRM_CAP_SYNCOBJ 0x13 #define DRM_CAP_SYNCOBJ 0x13
/** /**
* DRM_CAP_SYNCOBJ_TIMELINE * DRM_CAP_SYNCOBJ_TIMELINE
* *
* If set to 1, the driver supports timeline operations on sync objects. See * If set to 1, the driver supports timeline operations on sync objects. See
* Documentation/gpu/drm-mm.rst, section "DRM Sync Objects". * :ref:`drm_sync_objects`.
*/ */
#define DRM_CAP_SYNCOBJ_TIMELINE 0x14 #define DRM_CAP_SYNCOBJ_TIMELINE 0x14
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment