nv50: reset vbo_fifo before each validate
authorBen Skeggs <bskeggs@redhat.com>
Mon, 15 Mar 2010 06:52:25 +0000 (16:52 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Mar 2010 06:53:46 +0000 (16:53 +1000)
src/gallium/drivers/nv50/nv50_vbo.c

index 6b9c1ee231e40e47d8ee94866f24d21a7f25d40f..50472868063f5bfa32c983300e8a5f61be2d98d8 100644 (file)
@@ -549,6 +549,7 @@ nv50_vbo_validate(struct nv50_context *nv50)
        if (nv50->vtxbuf_nr == 0)
                return NULL;
 
+       nv50->vbo_fifo = 0;
        if (nv50->screen->force_push ||
            nv50->vertprog->cfg.edgeflag_in < 16)
                nv50->vbo_fifo = 0xffff;