summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-10-03 18:52:10 -0700
committerEric Anholt <[email protected]>2014-05-21 11:38:55 -0700
commitb11d345ab02ad78b17439179d794c91aa229d83c (patch)
tree057f56169ec9d41d75a2aac6f5d69ee2f34040ab /src/mesa
parentf3ba761129e39c299fe39fa91b542f459cad9f83 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 17ae6857b10..39dd5825f9a 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;
}