drm/i915: Clip the partial view against the object not vma
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 09:56:33 +0000 (09:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 11:59:24 +0000 (11:59 +0000)
commit8201c1fad4f4d5b2952255af11189ec676ebf340
tree470d7f19c9afc0a94a4b5ab27f05e5c67fab6014
parent2d4281bb93046fc97fb8ad5dc17ea291a1fb38e2
drm/i915: Clip the partial view against the object not vma

The VMA is later clipped against the vm_area_struct before insertion of
the faulting PTE so we are free to create the partial view as we desire.
If we use the object as the extents rather than the area, this partial
can then be used for other areas.

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