diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c index f93fb3541488..de98fbd2971e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |||
@@ -27,6 +27,12 @@ | |||
27 | #include <drm/drmP.h> | 27 | #include <drm/drmP.h> |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | 29 | ||
30 | static struct fence *amdgpu_sched_dependency(struct amd_sched_job *job) | ||
31 | { | ||
32 | struct amdgpu_job *sched_job = (struct amdgpu_job *)job; | ||
33 | return amdgpu_sync_get_fence(&sched_job->ibs->sync); | ||
34 | } | ||
35 | |||
30 | static struct fence *amdgpu_sched_run_job(struct amd_sched_job *job) | 36 | static struct fence *amdgpu_sched_run_job(struct amd_sched_job *job) |
31 | { | 37 | { |
32 | struct amdgpu_job *sched_job; | 38 | struct amdgpu_job *sched_job; |
@@ -75,6 +81,7 @@ static void amdgpu_sched_process_job(struct amd_sched_job *job) | |||
75 | } | 81 | } |
76 | 82 | ||
77 | struct amd_sched_backend_ops amdgpu_sched_ops = { | 83 | struct amd_sched_backend_ops amdgpu_sched_ops = { |
84 | .dependency = amdgpu_sched_dependency, | ||
78 | .run_job = amdgpu_sched_run_job, | 85 | .run_job = amdgpu_sched_run_job, |
79 | .process_job = amdgpu_sched_process_job | 86 | .process_job = amdgpu_sched_process_job |
80 | }; | 87 | }; |