[intel] Add a single-entry relocation buffer cache.
authorEric Anholt <eric@anholt.net>
Fri, 4 Jan 2008 00:08:40 +0000 (16:08 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 4 Jan 2008 00:53:23 +0000 (16:53 -0800)
commit62842e7145aa6e39b1fffc2dba8e2631bcc35b37
tree5a3463401f7cae793b150aa5417e86425afa9d52
parent8abffada70fcd62e3c2dcbcdc6d00d258805326b
[intel] Add a single-entry relocation buffer cache.

By avoiding the repeated relocation buffer creation/map/unmap/destroy for each
new batch buffer, this improves OpenArena framerates by 30%.  Caching batch
buffers themselves doesn't appear to be a significant performance win over
this change.
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c