From: José Fonseca Date: Thu, 3 Feb 2011 15:14:59 +0000 (+0000) Subject: svga: Temporarily disable buffer DMA upload coalescing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f3eeb45c73e77b791a047d7bd1ba0c18accb116;p=mesa.git svga: Temporarily disable buffer DMA upload coalescing. See comment for more details. --- diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index 2c873a0f7ac..051ac1c6546 100644 --- a/src/gallium/drivers/svga/svga_draw.c +++ b/src/gallium/drivers/svga/svga_draw.c @@ -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; }