[Intel-gfx] [PATCH] intel: Add a new bufmgr alloc function to get BOs ready for rendering to.
chris at chris-wilson.co.uk
Thu Feb 19 02:53:32 PST 2009
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.
More information about the Intel-gfx