draw: add code to reset instance dependent data 37/6137/1
authorZack Rusin <zackr@vmware.com>
Fri, 19 Apr 2013 23:51:27 +0000 (16:51 -0700)
committerZack Rusin <zackr@vmware.com>
Tue, 23 Apr 2013 00:36:07 +0000 (20:36 -0400)
commit913ed25f18aa9e24fc34fcf0b637d73ce355025d
tree5be3d2ae7c99f3eaea96d6f416558d1286251d86
parent2aad06844fe50deeb905417ed75d3d167a947d5a
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 <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_gs.c
src/gallium/auxiliary/draw/draw_gs.h
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt.c