diff options
author | Eric Anholt <eric@anholt.net> | 2019-04-01 15:26:33 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2019-04-16 15:32:20 -0700 |
commit | 5d5a179d3e90a8385b115e4bd19826ea0bcc6d11 (patch) | |
tree | 498a12878d4de2308f1cc88f23ffeb4a509f8a51 /include | |
parent | c8f005684c98f4d9942baec13ad98054dbf312a0 (diff) | |
download | linux-5d5a179d3e90a8385b115e4bd19826ea0bcc6d11.tar.gz linux-5d5a179d3e90a8385b115e4bd19826ea0bcc6d11.tar.bz2 linux-5d5a179d3e90a8385b115e4bd19826ea0bcc6d11.zip |
drm: Add helpers for setting up an array of dma_fence dependencies.
I needed to add implicit dependency support for v3d, and Rob Herring
has been working on it for panfrost, and I had recently looked at the
lima implementation so I think this will be a good intersection of
what we all want and simplify our scheduler implementations.
v2: Rebase on xa_limit_32b API change, and tiny checkpatch cleanups on
the way in (unsigned int vs unsigned, extra return before
EXPORT_SYMBOL_GPL)
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190401222635.25013-6-eric@anholt.net
Reviewed-and-tested-by: Qiang Yu <yuq825@gmail.com> (v1)
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drm_gem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drm_gem.h b/include/drm/drm_gem.h index 5ee85c9eaa9d..5047c7ee25f5 100644 --- a/include/drm/drm_gem.h +++ b/include/drm/drm_gem.h @@ -390,6 +390,11 @@ int drm_gem_lock_reservations(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx); void drm_gem_unlock_reservations(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx); +int drm_gem_fence_array_add(struct xarray *fence_array, + struct dma_fence *fence); +int drm_gem_fence_array_add_implicit(struct xarray *fence_array, + struct drm_gem_object *obj, + bool write); int drm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset); int drm_gem_dumb_destroy(struct drm_file *file, |