drm/i915: Set the map-and-fenceable flag for preallocated objects
authorChris Wilson <[email protected]>
Fri, 20 Nov 2015 14:16:39 +0000 (14:16 +0000)
committerJani Nikula <[email protected]>
Tue, 22 Dec 2015 09:52:27 +0000 (11:52 +0200)
commit62d622c1f8d34bde3e3b9fd06f15c35d4028a8ff
tree528f5027a9bd0bd6eac6fda0c4181acfa16067e7
parent615cb24326bbe19834a1aba47677a6c80bdcfc01
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 <[email protected]>
Cc: "Goel, Akash" <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jesse Barnes <[email protected]>
Cc: [email protected]
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jesse Barnes <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
(cherry picked from commit d0710abbcd88b1ff17760e97d74a673e67b49ea1)
Signed-off-by: Jani Nikula <[email protected]>
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