diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-02 11:25:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-03 14:05:30 +0000 |
commit | a1fa0dbfdafea32139d4457d81b9d722df955eaf (patch) | |
tree | 0e84f3ea2d10e46471b88d637d98172c75b285a6 /src/intel_batchbuffer.c | |
parent | 23437fe6769322d48cc3d264660717475b5d0d74 (diff) |
i965: Upload an entire vbo in a single pwrite, rather than per-rectangle
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_batchbuffer.c')
-rw-r--r-- | src/intel_batchbuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel_batchbuffer.c b/src/intel_batchbuffer.c index 9f8ca6f3..34c6cc90 100644 --- a/src/intel_batchbuffer.c +++ b/src/intel_batchbuffer.c @@ -45,8 +45,10 @@ static void intel_end_vertex(intel_screen_private *intel) { if (intel->vertex_bo) { - if (intel->vertex_used) + if (intel->vertex_used) { dri_bo_subdata(intel->vertex_bo, 0, intel->vertex_used*4, intel->vertex_ptr); + intel->vertex_used = 0; + } dri_bo_unreference(intel->vertex_bo); intel->vertex_bo = NULL; @@ -59,7 +61,6 @@ void intel_next_vertex(intel_screen_private *intel) intel->vertex_bo = dri_bo_alloc(intel->bufmgr, "vertex", sizeof (intel->vertex_ptr), 4096); - intel->vertex_used = 0; } static void intel_next_batch(ScrnInfoPtr scrn) |