]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Set the map-and-fenceable flag for preallocated objects
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Nov 2015 14:16:39 +0000 (14:16 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Dec 2015 15:59:24 +0000 (16:59 +0100)
commit93e2b9f581bfd3253284b51215b7aa89fe735850
tree437df51effdaec0b9f164f045c5de5b3c043e2f7
parent37eb5ef55d9de76e6e821fb6fe4f926df74f84df
drm/i915: Set the map-and-fenceable flag for preallocated objects

As we mark the preallocated objects as bound, we should also flag them
correctly as being map-and-fenceable (if appropriate!) so that later
users do not get confused and try and rebind the pinned vma in order to
get a map-and-fenceable binding.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: "Goel, Akash" <akash.goel@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: drm-intel-fixes@lists.freedesktop.org
Link: http://patchwork.freedesktop.org/patch/msgid/1448029000-10616-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_stolen.c