drm/lima: Use drm_sched_job_add_syncobj_dependency()
authorMaíra Canal <mcanal@igalia.com>
Fri, 24 Feb 2023 21:41:32 +0000 (18:41 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Tue, 21 Mar 2023 21:14:19 +0000 (18:14 -0300)
commite0dfefa08d94bf548fbbbbae22e4720a652a3102
treeb1febda0110027616de65ce49486fe529b70aa66
parente3890d84482a9479bf42ecb3ddc9e6030624dc84
drm/lima: Use drm_sched_job_add_syncobj_dependency()

As lima_gem_add_deps() performs the same steps as
drm_sched_job_add_syncobj_dependency(), replace the open-coded
implementation in Lima in order to simply use the DRM function.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230224214133.411966-1-mcanal@igalia.com
drivers/gpu/drm/lima/lima_gem.c