[Intel-gfx] [PATCH] intel: Add a new bufmgr alloc function to get BOs ready for rendering to.

Eric Anholt eric at anholt.net
Thu Feb 19 20:10:39 CET 2009


On Thu, 2009-02-19 at 10:53 +0000, Chris Wilson wrote:
> On Wed, 2009-02-18 at 13:13 -0800, Eric Anholt wrote:
> > This avoids using the oldest BO in the BO cache and waiting for it to be
> > idle before we turn around and render to it with the GPU.  Thanks to
> > Chris Wilson for pointing out how silly we were being.
> 
> Meh - usually it's the other away around :-)
> 
> Using the MRU buffer is a nice refinement - at the very least it
> preserves the oldest buffer for when we absolutely need an idle buffer.
> My immediate observation is that this will interact badly (on i915 class
> h/w) with tiled buffers if we subsequently need to change tiling. Not
> that I think this is likely with the current users, but...
> 
> I wonder whether UXA can benefit from this new API? If so, I'll do a run
> through of cairo-perf.
> -ickle

Yeah, I did the 1-liner for UXA as well, but only tested on GL because
that's what I had a good testcase for.  Numbers would be cool.

-- 
Eric Anholt
eric at anholt.net                         eric.anholt at intel.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090219/0463c67d/attachment.pgp>


More information about the Intel-gfx mailing list