summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo.h
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2010-10-17 18:16:30 +0200
committerBrian Paul <[email protected]>2010-12-10 10:17:48 -0700
commitb3d2ec9942303d1d03e28a25b030eb060415abfb (patch)
tree533f7c8accc18a7ef8cdf4045be007beacb880ed /src/mesa/vbo/vbo.h
parent2a4df8933eaeb0bd0d6e63fee3d23a47c4b3adb7 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
-rw-r--r--src/mesa/vbo/vbo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h
index c1406b250ae..79f76655354 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;