OSDN Git Service

drm/i915: Add a simple is-bound check before unbinding
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 22 Dec 2019 21:02:54 +0000 (21:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Dec 2019 12:30:23 +0000 (12:30 +0000)
commitf5af1659d809e264d619e5f483fd8f47bced3b6a
tree658c57c43fc73fddac999421bdb104d818fd027d
parent4941f35b48f7f329bdf2ccad17d6fdb2190f8d34
drm/i915: Add a simple is-bound check before unbinding

Only acquire the various atomic references required to unbind the vma if
we do need to unbind the vma.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191222210256.2066451-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c