[965] Force a new vertex upload buffer at new batch time.

Otherwise, we could choose to upload into the temporary VBO that we just fired
off to the hardware.  Good for a 60% OA performance improvement.
This commit is contained in:
Eric Anholt
2008-01-11 16:00:50 -08:00
parent 544ab209e7
commit 7fec1eb21b
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -325,7 +325,7 @@ static GLboolean brw_try_draw_prims( GLcontext *ctx,
brw->no_batch_wrap = GL_FALSE;
/* Free any old data so it doesn't clog up texture memory - we
/* Free any completed data so it doesn't clog up texture memory - we
* won't be referencing it again.
*/
while (brw->vb.upload.wrap != brw->vb.upload.buf) {
+5
View File
@@ -106,6 +106,11 @@ static void brw_new_batch( struct intel_context *intel )
brw->state.dirty.mesa |= ~0;
brw->state.dirty.brw |= ~0;
brw->state.dirty.cache |= ~0;
/* Move to the end of the current upload buffer so that we'll force choosing
* a new buffer next time.
*/
brw->vb.upload.offset = brw->vb.upload.vbo[brw->vb.upload.buf]->Size;
}
static void brw_note_fence( struct intel_context *intel,