svga: Temporarily disable buffer DMA upload coalescing.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Feb 2011 15:14:59 +0000 (15:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Feb 2011 15:15:23 +0000 (15:15 +0000)
See comment for more details.

src/gallium/drivers/svga/svga_draw.c

index 2c873a0f7ac276fc65ccb80c0c12df6ef20fecb2..051ac1c6546ea82cf391f33e7b9ee8f6fee7c895 100644 (file)
@@ -224,6 +224,13 @@ svga_hwtnl_flush( struct svga_hwtnl *hwtnl )
       hwtnl->cmd.prim_count = 0;
    }
 
+   /*
+    * FIXME:  Somehow we are accumulating too many buffer uploads without
+    * flushing, so temporarily disable buffer upload coalescing to prevent OOM
+    * crashes (at expense of less performance).
+    */
+   svga_context_flush_buffers(svga);
+
    return PIPE_OK;
 }