Skip to content

Commit 3aa8c57

Browse files
committed
drm/i915/uapi: convert drm_i915_gem_set_domain to kernel doc
Convert all the drm_i915_gem_set_domain bits to proper kernel doc. Suggested-by: Daniel Vetter <[email protected]> Signed-off-by: Matthew Auld <[email protected]> Cc: Thomas Hellström <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Kenneth Graunke <[email protected]> Cc: Jason Ekstrand <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Ramalingam C <[email protected]> Reviewed-by: Ramalingam C <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 289f5a7 commit 3aa8c57

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

include/uapi/drm/i915_drm.h

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -880,14 +880,38 @@ struct drm_i915_gem_mmap_offset {
880880
__u64 extensions;
881881
};
882882

883+
/**
884+
* struct drm_i915_gem_set_domain - Adjust the objects write or read domain, in
885+
* preparation for accessing the pages via some CPU domain.
886+
*
887+
* Specifying a new write or read domain will flush the object out of the
888+
* previous domain(if required), before then updating the objects domain
889+
* tracking with the new domain.
890+
*
891+
* Note this might involve waiting for the object first if it is still active on
892+
* the GPU.
893+
*
894+
* Supported values for @read_domains and @write_domain:
895+
*
896+
* - I915_GEM_DOMAIN_WC: Uncached write-combined domain
897+
* - I915_GEM_DOMAIN_CPU: CPU cache domain
898+
* - I915_GEM_DOMAIN_GTT: Mappable aperture domain
899+
*
900+
* All other domains are rejected.
901+
*/
883902
struct drm_i915_gem_set_domain {
884-
/** Handle for the object */
903+
/** @handle: Handle for the object. */
885904
__u32 handle;
886905

887-
/** New read domains */
906+
/** @read_domains: New read domains. */
888907
__u32 read_domains;
889908

890-
/** New write domain */
909+
/**
910+
* @write_domain: New write domain.
911+
*
912+
* Note that having something in the write domain implies it's in the
913+
* read domain, and only that read domain.
914+
*/
891915
__u32 write_domain;
892916
};
893917

0 commit comments

Comments
 (0)