diff options
author | Zack Rusin <[email protected]> | 2013-04-19 16:51:27 -0700 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-04-22 20:36:07 -0400 |
commit | 913ed25f18aa9e24fc34fcf0b637d73ce355025d (patch) | |
tree | 5be3d2ae7c99f3eaea96d6f416558d1286251d86 /src/gallium/auxiliary/draw/draw_private.h | |
parent | 2aad06844fe50deeb905417ed75d3d167a947d5a (diff) |
draw: add code to reset instance dependent data
We want to be able to reset certain parts of the pipeline,
in particular the input primitive index, but only either with
seperate invocations of the draw_vbo or new instances. In all
other cases (e.g. new invocations due to primitive restart)
that data needs to be preserved. Add a function through which
we can reset instance dependent data.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h index d6a3e7c2cee..25a8ae61498 100644 --- a/src/gallium/auxiliary/draw/draw_private.h +++ b/src/gallium/auxiliary/draw/draw_private.h @@ -355,6 +355,7 @@ struct draw_prim_info { * Draw common initialization code */ boolean draw_init(struct draw_context *draw); +void draw_new_instance(struct draw_context *draw); /******************************************************************************* * Vertex shader code: |