Mesa (master): i965: Ask the VBO module to actually use VBOs.

Eric Anholt anholt at kemper.freedesktop.org
Wed May 21 18:40:09 UTC 2014


Module: Mesa
Branch: master
Commit: b11d345ab02ad78b17439179d794c91aa229d83c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b11d345ab02ad78b17439179d794c91aa229d83c

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Oct  3 18:52:10 2013 -0700

i965: Ask the VBO module to actually use VBOs.

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 at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_context.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 17ae685..39dd582 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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;
 }
 




More information about the mesa-commit mailing list