diff options
author | Jordan Justen <[email protected]> | 2012-05-07 15:50:21 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-05-17 10:54:26 -0700 |
commit | bc8e0f5b0ff82c919ed1ee67e4fad55705937b30 (patch) | |
tree | b0bda74afbe132214c266d3e019e59bf713f6ceb /src/mesa/vbo/vbo.h | |
parent | 5a827d9a2b5d698fed98a5d62ff0292b48bdd6c7 (diff) |
vbo: add software primitive restart support
vbo_sw_primitive_restart implements primitive restart in software
by splitting primitive draws apart.
This is based on similar support in mesa/state_tracker/st_draw.c.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
-rw-r--r-- | src/mesa/vbo/vbo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index 3cff8987e78..4387e10b7b5 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -157,6 +157,12 @@ void vbo_bind_arrays(struct gl_context *ctx); size_t count_tessellated_primitives(const struct _mesa_prim *prim); +void +vbo_sw_primitive_restart(struct gl_context *ctx, + const struct _mesa_prim *prim, + GLuint nr_prims, + const struct _mesa_index_buffer *ib); + void GLAPIENTRY _es_Color4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a); |