drm/scheduler: fix a corner case in dependency optimization
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Fri, 25 May 2018 04:45:46 +0000 (10:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 May 2018 16:02:14 +0000 (11:02 -0500)
commit6201e033d77fae5ed6798d3d122643c2fe3c24dd
tree016b1ba22b8d699530f3ecb461938574c395d638
parentadea72c5046f7faffff969ece04c3f31e669edf4
drm/scheduler: fix a corner case in dependency optimization

When checking for a dependency fence for belonging to the same entity
compare it with scheduled as well finished fence. Earlier we were only
comparing it with the scheduled fence.

Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/gpu_scheduler.c