File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
drivers/gpu/drm/imagination Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -597,8 +597,6 @@ update_job_resvs_for_each(struct pvr_job_data *job_data, u32 job_count)
597597static bool can_combine_jobs (struct pvr_job * a , struct pvr_job * b )
598598{
599599 struct pvr_job * geom_job = a , * frag_job = b ;
600- struct dma_fence * fence ;
601- unsigned long index ;
602600
603601 /* Geometry and fragment jobs can be combined if they are queued to the
604602 * same context and targeting the same HWRT.
@@ -609,13 +607,9 @@ static bool can_combine_jobs(struct pvr_job *a, struct pvr_job *b)
609607 a -> hwrt != b -> hwrt )
610608 return false;
611609
612- xa_for_each (& frag_job -> base .dependencies , index , fence ) {
613- /* We combine when we see an explicit geom -> frag dep. */
614- if (& geom_job -> base .s_fence -> scheduled == fence )
615- return true;
616- }
617-
618- return false;
610+ /* We combine when we see an explicit geom -> frag dep. */
611+ return drm_sched_job_has_dependency (& frag_job -> base ,
612+ & geom_job -> base .s_fence -> scheduled );
619613}
620614
621615static struct dma_fence *
You can’t perform that action at this time.
0 commit comments