u_upload_mgr: keep the upload buffer mapped until it is flushed
authorMarek Olšák <maraeo@gmail.com>
Fri, 24 Dec 2010 12:47:32 +0000 (13:47 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 6 Jan 2011 15:16:29 +0000 (16:16 +0100)
commit8b7bd3ce8875f5028bbf234d107f56d595a0d0b7
tree2ceea56ae34dc79da49ad0b631d1bd5175cc81de
parent8fd8de3995343f5cee8536c235e2a4fc5c768490
u_upload_mgr: keep the upload buffer mapped until it is flushed

The map/unmap overhead can be significant even though there is no waiting on busy
buffers. There is simply a huge number of uploads.

This is a performance optimization for Torcs, a car racing game.
src/gallium/auxiliary/util/u_upload_mgr.c