drm/i915: Convert partial ggtt vma to full ggtt if it spans the entire object
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:03 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:51 +0000 (22:36 +0100)
commitaa136d9d72c2f9c4925ff86eebc86748fa069beb
tree1df54a61596f54d3e8211c059bd590c5d477499d
parenta61007a83a4671da77210790997d5c8c92ed87ea
drm/i915: Convert partial ggtt vma to full ggtt if it spans the entire object

If we want to create a partial vma from a chunk that is the same size as
the object, create a normal ggtt vma instead. The benefit is that it
will match future requests for the normal ggtt.

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/20160818161718.27187-24-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c