diff options
author | Eric Anholt <eric@anholt.net> | 2009-06-02 06:53:40 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-17 11:08:36 -0700 |
commit | ff3da0966fc91cd5bcfed994e5edadbf25903c47 (patch) | |
tree | a1d4db16a8549e121b1dc3899bcc9548c454a7bf /src/mesa/drivers/dri/intel/intel_buffer_objects.h | |
parent | 1b8e4dd2c8343af391a33be2aff7978366c450df (diff) |
i915: Don't put VBOs in graphics memory unless required for an operation.
This saves doing swtnl from uncached memory, which is painful. Improves
clutter test-text performance by 10% since it started using VBOs.
(cherry picked from commit a945e203d4fe254593bc0c5c5d6caca45e65f9f7)
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 7ef723833c..0431015631 100644 --- a/src/mesa/drivers/dri/intel/intel_buffer_objects.h +++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.h @@ -42,6 +42,8 @@ struct intel_buffer_object { struct gl_buffer_object Base; dri_bo *buffer; /* the low-level buffer manager's buffer handle */ + /** System memory buffer data, if not using a BO to store the data. */ + void *sys_buffer; struct intel_region *region; /* Is there a zero-copy texture associated with this (pixel) |