nvc0: add some driver statistics queries
[mesa.git] / src / gallium / drivers / nvc0 / nvc0_vbo_translate.c
index 033a5d05d3e546908226bfeaf46fb2b598ca9eb0..ec52de2b56896943c4977452ef3afc5c86dd98e2 100644 (file)
@@ -535,6 +535,8 @@ nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info)
       nouveau_resource_unmap(nv04_resource(nvc0->idxbuf.buffer));
    for (i = 0; i < nvc0->num_vtxbufs; ++i)
       nouveau_resource_unmap(nv04_resource(nvc0->vtxbuf[i].buffer));
+
+   NOUVEAU_DRV_STAT(&nvc0->screen->base, draw_calls_fallback_count, 1);
 }
 
 static INLINE void