drm/msm: for array in-fences, check if all backing fences are from our own context...
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 17 Mar 2017 18:38:40 +0000 (19:38 +0100)
committerRob Clark <robdclark@gmail.com>
Sat, 27 May 2017 17:48:28 +0000 (13:48 -0400)
commit3cfac69cbd56e1a57a70bfbdb07560b788030404
treee66e02c2f77fa588b541f8a9e6bcce27f72877b3
parentc43dd227f411359802427da7aebe5da5b0e48e0e
drm/msm: for array in-fences, check if all backing fences are from our own context before waiting

Use the dma_fence_match_context helper to check if all backing fences
are from our own context, in which case we don't have to wait.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Gustavo Padovan <gustavo.padovan@collabora.com>
[rebased on code-motion]
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c