drm/i915: Assert that the partial VMA fits within the object
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Dec 2016 14:57:59 +0000 (14:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Dec 2016 16:07:41 +0000 (16:07 +0000)
commit07e19ea4f743bb204ed63a2f2f1235811a2e942a
tree6041479a23603aa1c657c81fd639d25606fef576
parent8bfc478fa455b4908f745df368355b415460c60e
drm/i915: Assert that the partial VMA fits within the object

When creating a partial VMA assert that it first fits with the parent
object, and that if it covers the whole of the parent a normal view was
created instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161223145804.6605-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c