i965: Ask the VBO module to actually use VBOs.
authorEric Anholt <eric@anholt.net>
Fri, 4 Oct 2013 01:52:10 +0000 (18:52 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 21 May 2014 18:38:55 +0000 (11:38 -0700)
Note that this covers the Begin/End rendering path, but not user vertex
arrays (so we can't drop copy_array_to_vbo_array() code).  Improves
performance of isosurf GLVERTEX|TRIANGLES by 16.7506% +/- 4.98934%
(n=20). No difference on openarena (n=10), which was why this was reverted
back in cbde2765804a4fc62bcf092230a01376aedbf2cd.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c

index 17ae6857b10a2e6a5971e929853a8baefc5e514a..39dd5825f9acfde512202cede4f8cffadd1cb145 100644 (file)
@@ -781,6 +781,9 @@ brwCreateContext(gl_api api,
       brw_init_performance_monitors(brw);
    }
 
+   vbo_use_buffer_objects(ctx);
+   vbo_always_unmap_buffers(ctx);
+
    return true;
 }