gallium/util: Upload manager optimizations
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 10 Mar 2011 13:53:46 +0000 (14:53 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 1 Jul 2011 11:30:36 +0000 (13:30 +0200)
commitcf4cd8592ab54b9c959ea3b5f21437e8dca6bbcf
tree2629c10dfdd2423a9a1e94a4f84f361c35ab9fd1
parent6d58029bf0dbe5606f0bc4aea920767ddd3a06d5
gallium/util: Upload manager optimizations

Make sure that the upload manager doesn't upload data that's not
dirty. This speeds up the viewperf test proe-04/1 a factor 5 or so on svga.

Also introduce an u_upload_unmap() function that can be used
instead of u_upload_flush() so that we can pack
even more data in upload buffers. With this we can basically reuse the
upload buffer across flushes.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/auxiliary/util/u_upload_mgr.c
src/gallium/auxiliary/util/u_upload_mgr.h