drm/v3d: Use drm_sched_job_add_syncobj_dependency()
authorMaíra Canal <mcanal@igalia.com>
Thu, 9 Feb 2023 12:44:48 +0000 (09:44 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Fri, 24 Feb 2023 20:23:43 +0000 (17:23 -0300)
commit25c0e4062db43b790fbecf14d7cce6fc75fb3b26
treed1d7a9f6343a60ff63262df79747ad9ca97fb434
parent4636c4a5ea4258c34e44487798c83d5c79db4660
drm/v3d: Use drm_sched_job_add_syncobj_dependency()

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

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230209124447.467867-6-mcanal@igalia.com
drivers/gpu/drm/v3d/v3d_gem.c