diff options
author | Christian König <christian.koenig@amd.com> | 2018-07-13 10:29:10 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-16 17:11:53 -0400 |
commit | ee913fd9e166384aacc0aa70ffd4e93ca41d54b0 (patch) | |
tree | f40d24be324f847674d905720f5411967c31dd85 /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
parent | 3320b8d2acd3d480d0dd4835d970067354eac915 (diff) |
drm/amdgpu: add amdgpu_job_submit_direct helper
Make sure that we properly initialize at least the sched member.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 7738d2b90dae..d708970244eb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |||
@@ -1062,12 +1062,9 @@ static int amdgpu_uvd_send_msg(struct amdgpu_ring *ring, struct amdgpu_bo *bo, | |||
1062 | if (r < 0) | 1062 | if (r < 0) |
1063 | goto err_free; | 1063 | goto err_free; |
1064 | 1064 | ||
1065 | r = amdgpu_ib_schedule(ring, 1, ib, NULL, &f); | 1065 | r = amdgpu_job_submit_direct(job, ring, &f); |
1066 | job->fence = dma_fence_get(f); | ||
1067 | if (r) | 1066 | if (r) |
1068 | goto err_free; | 1067 | goto err_free; |
1069 | |||
1070 | amdgpu_job_free(job); | ||
1071 | } else { | 1068 | } else { |
1072 | r = amdgpu_sync_resv(adev, &job->sync, bo->tbo.resv, | 1069 | r = amdgpu_sync_resv(adev, &job->sync, bo->tbo.resv, |
1073 | AMDGPU_FENCE_OWNER_UNDEFINED, false); | 1070 | AMDGPU_FENCE_OWNER_UNDEFINED, false); |