intel: Buffered upload
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 10 Feb 2011 00:25:17 +0000 (00:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 12:59:34 +0000 (12:59 +0000)
commit8a9e67b8df9836408270a4bc3660ec45b622ae56
tree3c27a8a343439dc550364d5d057e68d2ea6b6d80
parent40ee15407ab626f466a12c239fc39cb872bec804
intel: Buffered upload

Rather than performing lots of little writes to update the common bo
upon each update, write those into a static buffer and flush that when
full (or at the end of the batch). Doing so gives a dramatic performance
improvement over and above using mmaped access.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_buffer_objects.h
src/mesa/drivers/dri/intel/intel_context.h