Re: [Intel-gfx] [PATCH v2 3/6] drm/i915: Refactor duplicate object vmap functions

2016-04-11 Thread Tvrtko Ursulin
On 08/04/16 12:11, Chris Wilson wrote: We now have two implementations for vmapping a whole object, one for dma-buf and one for the ringbuffer. If we couple the mapping into the obj->pages lifetime, then we can reuse an obj->mapping for both and at the same time couple it into the shrinker. Ther

[Intel-gfx] [PATCH v2 3/6] drm/i915: Refactor duplicate object vmap functions

2016-04-08 Thread Chris Wilson
We now have two implementations for vmapping a whole object, one for dma-buf and one for the ringbuffer. If we couple the mapping into the obj->pages lifetime, then we can reuse an obj->mapping for both and at the same time couple it into the shrinker. There is a third vmapping routine in the cmdpa