mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 15:48:23 +00:00
drm/amdgpu: ignore scheduler fences from the same entity
We are going to submit them before the job anyway. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
This commit is contained in:
parent
6bd53c4125
commit
fe537d003f
1 changed files with 6 additions and 0 deletions
|
@ -222,6 +222,12 @@ amd_sched_entity_pop_job(struct amd_sched_entity *entity)
|
||||||
|
|
||||||
while ((entity->dependency = sched->ops->dependency(sched_job))) {
|
while ((entity->dependency = sched->ops->dependency(sched_job))) {
|
||||||
|
|
||||||
|
if (entity->dependency->context == entity->fence_context) {
|
||||||
|
/* We can ignore fences from ourself */
|
||||||
|
fence_put(entity->dependency);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (fence_add_callback(entity->dependency, &entity->cb,
|
if (fence_add_callback(entity->dependency, &entity->cb,
|
||||||
amd_sched_entity_wakeup))
|
amd_sched_entity_wakeup))
|
||||||
fence_put(entity->dependency);
|
fence_put(entity->dependency);
|
||||||
|
|
Loading…
Add table
Reference in a new issue