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_context.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_context.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h index a1ed462e54..0ea273837d 100644 --- a/src/mesa/drivers/dri/intel/intel_context.h +++ b/src/mesa/drivers/dri/intel/intel_context.h @@ -190,6 +190,9 @@ struct intel_context struct { drm_intel_bo *bo; GLuint offset; + uint16_t buffer_len; + uint16_t buffer_offset; + char buffer[4096]; } upload; GLuint stats_wm; |