diff options
author | Mathias Fröhlich <Mathias.Froehlich@web.de> | 2010-10-17 18:16:30 +0200 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-12-10 10:17:48 -0700 |
commit | b3d2ec9942303d1d03e28a25b030eb060415abfb (patch) | |
tree | 533f7c8accc18a7ef8cdf4045be007beacb880ed /src/mesa/vbo/vbo.h | |
parent | 2a4df8933eaeb0bd0d6e63fee3d23a47c4b3adb7 (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 <brianp@vmware.com>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
-rw-r--r-- | src/mesa/vbo/vbo.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |