]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit888521a00d2be1e32a263601fae725d84a3d7ced
tree470d7f19c9afc0a94a4b5ab27f05e5c67fab6014
parent650a2145793bacfa5d72ffdfcf7372f6bed72860
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