summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_sched.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2019-04-01 15:26:35 -0700
committerEric Anholt <eric@anholt.net>2019-04-16 15:53:48 -0700
commitf3fb20074e02865e1724c586eae46a77a7f2266b (patch)
tree3cb39d3e0a295f22b43beaadd635501f6a8a62e2 /drivers/gpu/drm/lima/lima_sched.h
parent5d5a179d3e90a8385b115e4bd19826ea0bcc6d11 (diff)
downloadlinux-f3fb20074e02865e1724c586eae46a77a7f2266b.tar.bz2
drm/lima: Use the drm_gem_fence_array_add helpers for our deps.
It's a pretty direct port of what I did for v3d. Signed-off-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/20190401222635.25013-8-eric@anholt.net Reviewed-and-tested-by: Qiang Yu <yuq825@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.h')
-rw-r--r--drivers/gpu/drm/lima/lima_sched.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/lima/lima_sched.h b/drivers/gpu/drm/lima/lima_sched.h
index b017cfa7e327..928af91c1118 100644
--- a/drivers/gpu/drm/lima/lima_sched.h
+++ b/drivers/gpu/drm/lima/lima_sched.h
@@ -14,9 +14,8 @@ struct lima_sched_task {
struct lima_vm *vm;
void *frame;
- struct dma_fence **dep;
- int num_dep;
- int max_dep;
+ struct xarray deps;
+ unsigned long last_dep;
struct lima_bo **bos;
int num_bos;
@@ -78,7 +77,6 @@ int lima_sched_task_init(struct lima_sched_task *task,
struct lima_bo **bos, int num_bos,
struct lima_vm *vm);
void lima_sched_task_fini(struct lima_sched_task *task);
-int lima_sched_task_add_dep(struct lima_sched_task *task, struct dma_fence *fence);
int lima_sched_context_init(struct lima_sched_pipe *pipe,
struct lima_sched_context *context,