On 2/9/23 09:44, Maíra Canal wrote:
In order to add a syncobj's fence as a dependency to a job, it is
necessary to call drm_syncobj_find_fence() to find the fence and then
add the dependency with drm_sched_job_add_dependency(). So, wrap these
steps in one single function, drm_sched_job_add_syncobj_dependency().

Reviewed-by: Christian König <christian.koe...@amd.com>
Reviewed-by: Luben Tuikov <luben.tui...@amd.com>
Signed-off-by: Maíra Canal <mca...@igalia.com>
---
  drivers/gpu/drm/scheduler/sched_main.c | 29 ++++++++++++++++++++++++++
  include/drm/gpu_scheduler.h            |  6 ++++++
  2 files changed, 35 insertions(+)


Applied to drm-misc-next.

Best Regards,
- Maíra Canal

Reply via email to