drm/i915: Assert vma->flags are updated correctly during binding
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 5 Nov 2017 12:45:50 +0000 (12:45 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Nov 2017 09:30:36 +0000 (09:30 +0000)
commitd36caeea4b0f76bf691c7d0cddc4a71ed93783c5
tree9f3ffefd1b01e7a159ea89ae4299082bf3e97303
parent136109c67f67ebe449032950ddc3ad5118934635
drm/i915: Assert vma->flags are updated correctly during binding

As we bind, and unbind on error, we want to be sure that the vma->flags
are updated to reflect the binding state so that on the next invocation
all is well.

v2: Take two.
v3: Take three; vma-misplaced is checking map-and-fenceable so keep it
last!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171105124550.32715-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
drivers/gpu/drm/i915/i915_vma.c