drm/i915: Only do gtt cleanup in vma_unbind for the global vma
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Feb 2014 13:06:07 +0000 (14:06 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 May 2014 16:39:54 +0000 (18:39 +0200)
commit8b1bc9b4f189a9c483f73907f409b66b10fb926c
tree847ecfc96d740b0fb624b9da225c6fe74f216e67
parentaff10b30a1d3edd1e31f536648772da85e33f655
drm/i915: Only do gtt cleanup in vma_unbind for the global vma

Otherwise we end up tearing down fences when e.g. the client quits
way too early. Might or might not fix a fence pin_count BUG Ville has
reported.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c