Re: [Intel-gfx] [PATCH 02/17] drm/i915: Prepare for non-object vma

2018-06-06 Thread Matthew Auld
On 6 June 2018 at 07:26, Chris Wilson wrote: > In order to allow ourselves to use VMA to wrap other entities other than > GEM objects, we need to allow for the vma->obj backpointer to be NULL. > In most cases, we know we are operating on a GEM object and its vma, but > we need the core code (such

[Intel-gfx] [PATCH 02/17] drm/i915: Prepare for non-object vma

2018-06-05 Thread Chris Wilson
In order to allow ourselves to use VMA to wrap other entities other than GEM objects, we need to allow for the vma->obj backpointer to be NULL. In most cases, we know we are operating on a GEM object and its vma, but we need the core code (such as i915_vma_pin/insert/bind/unbind) to work regardless