File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff 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+ */
883902struct 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
You can’t perform that action at this time.
0 commit comments