diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-02-10 00:25:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-02-21 12:59:34 +0000 |
commit | 8a9e67b8df9836408270a4bc3660ec45b622ae56 (patch) | |
tree | 3c27a8a343439dc550364d5d057e68d2ea6b6d80 /src/mesa/drivers/dri/intel/intel_buffer_objects.h | |
parent | 40ee15407ab626f466a12c239fc39cb872bec804 (diff) |
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>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_buffer_objects.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_buffer_objects.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.h b/src/mesa/drivers/dri/intel/intel_buffer_objects.h index 71f0c52fd8..4b66bf7d59 100644 --- a/src/mesa/drivers/dri/intel/intel_buffer_objects.h +++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.h @@ -80,6 +80,8 @@ void *intel_upload_map(struct intel_context *intel, drm_intel_bo **return_bo, GLuint *return_offset); +void intel_upload_finish(struct intel_context *intel); + /* Hook the bufferobject implementation into mesa: */ void intelInitBufferObjectFuncs(struct dd_function_table *functions); |