summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-02-03 15:14:59 +0000
committerJosé Fonseca <[email protected]>2011-02-03 15:15:23 +0000
commit0f3eeb45c73e77b791a047d7bd1ba0c18accb116 (patch)
treebb64cc3f495581ea549add7ca9983738201bb35b /src/gallium/drivers
parent637ed52f597098ac556b27a4403056bd54343426 (diff)
svga: Temporarily disable buffer DMA upload coalescing.
See comment for more details.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_draw.c7
1 files changed, 7 insertions, 0 deletions
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;
}