From b3d2ec9942303d1d03e28a25b030eb060415abfb Mon Sep 17 00:00:00 2001 From: Mathias Fröhlich Date: Sun, 17 Oct 2010 18:16:30 +0200 Subject: vbo: Avoid the copy to current in dlists if not required. The current state is allowed to be undefined past DrawElements et al. Consequently omit that copying at least in the display list code. This pays us some percents performance. Signed-off-by: Brian Paul --- src/mesa/vbo/vbo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/vbo/vbo.h') diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index c1406b250a..79f7665535 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -40,7 +40,8 @@ struct _mesa_prim { GLuint begin:1; GLuint end:1; GLuint weak:1; - GLuint pad:20; + GLuint no_current_update:1; + GLuint pad:19; GLuint start; GLuint count; -- cgit v1.2.3