drm/amdgpu: use scheduler dependencies for UVD msgs
Instead of putting that into the job sync object. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Luben Tuikov <luben.tuikov@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221014084641.128280-10-christian.koenig@amd.com
This commit is contained in:
parent
aab9cf7b69
commit
46e0270c71
@ -1177,9 +1177,9 @@ static int amdgpu_uvd_send_msg(struct amdgpu_ring *ring, struct amdgpu_bo *bo,
|
||||
if (r)
|
||||
goto err_free;
|
||||
} else {
|
||||
r = amdgpu_sync_resv(adev, &job->sync, bo->tbo.base.resv,
|
||||
AMDGPU_SYNC_ALWAYS,
|
||||
AMDGPU_FENCE_OWNER_UNDEFINED);
|
||||
r = drm_sched_job_add_resv_dependencies(&job->base,
|
||||
bo->tbo.base.resv,
|
||||
DMA_RESV_USAGE_KERNEL);
|
||||
if (r)
|
||||
goto err_free;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user