]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Stop discarding GTT cache-domain on unbind vma
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:09 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:57 +0000 (22:36 +0100)
commit3b77d82e8d8981da976831f5a288ea7f163a7d09
tree0cbe626d99e158a591652213709af8ed13114ac5
parentdc72c35f1215003dcf553864023e5b945d2b5617
drm/i915: Stop discarding GTT cache-domain on unbind vma

Since commit 50926a069c1e ("drm/i915: Broaden application of
set-domain(GTT)") we allowed objects to be in the GTT domain, but unbound.
Therefore removing the GTT cache domain when removing the GGTT vma is no
longer semantically correct.

An unfortunate side-effect is we lose the wondrously named
i915_gem_object_finish_gtt(), not to be confused with
i915_gem_gtt_finish_object()!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Akash Goel <akash.goel@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-30-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c