summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_vertex_shader.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-01-28 11:12:11 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-01-28 11:12:11 +0000
commit99f297651198c3424aab202595064d6f5596b2fc (patch)
tree520e3646ebfec2422543ef38ea57e481fd6c54f0 /src/mesa/pipe/draw/draw_vertex_shader.c
parenta46181044fd5573895180ee5f1a016c4c1e4a653 (diff)
gallium: only call vertex/prim queue flush when there is something to flush
Diffstat (limited to 'src/mesa/pipe/draw/draw_vertex_shader.c')
-rw-r--r--src/mesa/pipe/draw/draw_vertex_shader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_shader.c b/src/mesa/pipe/draw/draw_vertex_shader.c
index 3041974b9a..289c35c7ae 100644
--- a/src/mesa/pipe/draw/draw_vertex_shader.c
+++ b/src/mesa/pipe/draw/draw_vertex_shader.c
@@ -201,6 +201,8 @@ draw_vertex_shader_queue_flush(struct draw_context *draw)
{
unsigned i, j;
+ assert(draw->vs.queue_nr != 0);
+
/* XXX: do this on statechange:
*/
draw_update_vertex_fetch( draw );