[Mesa-dev] [PATCH 05/18] i965: Reuse our VBO for streaming fast-clear vertices

Kenneth Graunke kenneth at whitecape.org
Mon Jul 6 09:43:55 PDT 2015


On Monday, July 06, 2015 11:33:10 AM Chris Wilson wrote:
> Rather than allocating a fresh page every time we clear a buffer, keep
> that page around between invocations by tracking the last used offset
> and only allocating a fresh page when we wrap.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)

This looks okay to me.  Do you have any performance data to justify the
extra complexity?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150706/1779a707/attachment.sig>


More information about the mesa-dev mailing list