[Intel-gfx] [PATCH] intel: Add a new bufmgr alloc function to get BOs ready for rendering to.
eric at anholt.net
Thu Feb 19 11:10:39 PST 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.
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 at anholt.net eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/intel-gfx/attachments/20090219/0463c67d/attachment-0001.pgp
More information about the Intel-gfx