On Mon, 20 Aug 2012 21:56:08 +0200, Daniel Vetter <dan...@ffwll.ch> wrote:
> On Sat, Aug 11, 2012 at 03:41:21PM +0100, Chris Wilson wrote:
> > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk>
> 
> What about putting kmap/unmap abstractions into obj->ops (like the dma_buf
> interface already has)? Since the pwrite/pread code is already rather
> branch heave I hope we don't see the overhead of the indirect call even
> in microbenchmarks (haven't checked). And this way we would also neatly
> wrap up dma_bufs for pwrite (if anyone ever really wants that ...).
> 
> The kmap(_atomic) for stolen mem backed objects would boil down to doing
> the pointer arithmetic, kunmap would be just a noop.

Sounds nice, I'll cook something up and allocate yet another pointer in
drm_i915_gem_object for the typed ops. I wonder if we can unify the phys
and the dma_buf...
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to