svga: Add an assert to catch reentrancy.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Feb 2011 15:01:09 +0000 (15:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Feb 2011 15:15:23 +0000 (15:15 +0000)
src/gallium/drivers/svga/svga_swtnl_backend.c

index d5db6bf641a2fbbb254336d2be147fea9afa4059..087f2d08540f5db0d396ba2798807deda855ae38 100644 (file)
@@ -90,6 +90,7 @@ svga_vbuf_render_allocate_vertices( struct vbuf_render *render,
                                              svga_render->vbuf_size);
       if(!svga_render->vbuf) {
          svga_context_flush(svga, NULL);
+         assert(!svga_render->vbuf);
          svga_render->vbuf = pipe_buffer_create(screen,
                                                 PIPE_BIND_VERTEX_BUFFER,
                                                 svga_render->vbuf_size);