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_save.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_save.h')
-rw-r--r-- | src/mesa/vbo/vbo_save.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index f5a407ced1..23cbea2afc 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -96,7 +96,9 @@ struct vbo_save_vertex_list { */ #define VBO_SAVE_BUFFER_SIZE (8*1024) /* dwords */ #define VBO_SAVE_PRIM_SIZE 128 -#define VBO_SAVE_PRIM_WEAK 0x40 +#define VBO_SAVE_PRIM_MODE_MASK 0x3f +#define VBO_SAVE_PRIM_WEAK 0x40 +#define VBO_SAVE_PRIM_NO_CURRENT_UPDATE 0x80 #define VBO_SAVE_FALLBACK 0x10000000 |