summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_context.h
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-03-29 04:52:29 -0700
committerZack Rusin <zackr@vmware.com>2013-04-03 10:16:25 -0700
commit822c21c7763afde4d4a94af3935b4b629d4eb34a (patch)
tree7ffed37317ef0f91970ceeafcf0501939eb3b85c /src/gallium/auxiliary/draw/draw_context.h
parentd8543bd7528de05e5ce3ac407838e7500428a93d (diff)
downloadexternal_mesa3d-822c21c7763afde4d4a94af3935b4b629d4eb34a.tar.gz
external_mesa3d-822c21c7763afde4d4a94af3935b4b629d4eb34a.tar.bz2
external_mesa3d-822c21c7763afde4d4a94af3935b4b629d4eb34a.zip
draw/so: maintain an exact number of written vertices
It's quite helpful during the rendering when we know exactly the count of the vertices available in the buffer. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.h b/src/gallium/auxiliary/draw/draw_context.h
index 369f6c80fa..b333457775 100644
--- a/src/gallium/auxiliary/draw/draw_context.h
+++ b/src/gallium/auxiliary/draw/draw_context.h
@@ -60,6 +60,7 @@ struct draw_so_target {
struct pipe_stream_output_target target;
void *mapping;
int internal_offset;
+ int emitted_vertices;
};
struct draw_context *draw_create( struct pipe_context *pipe );