summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_flush.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-06 21:09:38 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-06 21:12:51 +0100
commit529d867207a7f14364d9453cc2beaa4da4ea4752 (patch)
tree72d0507db5ab848ecfdafa3482c8bb3f69e7fcfc /src/gallium/drivers/r300/r300_flush.c
parentec96b0ecdbe723f4664188010c7f86d5d7f41d82 (diff)
downloadexternal_mesa3d-529d867207a7f14364d9453cc2beaa4da4ea4752.zip
external_mesa3d-529d867207a7f14364d9453cc2beaa4da4ea4752.tar.gz
external_mesa3d-529d867207a7f14364d9453cc2beaa4da4ea4752.tar.bz2
r300g: do not flush the uploader
We don't have to unmap and recreate the upload buffer when a flush occurs. This should also prevent buffer allocations from failing.
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r--src/gallium/drivers/r300/r300_flush.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index b250532..986ea5f 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -40,9 +40,6 @@ static void r300_flush(struct pipe_context* pipe,
struct r300_atom *atom;
struct r300_fence **rfence = (struct r300_fence**)fence;
- u_upload_flush(r300->upload_vb);
- u_upload_flush(r300->upload_ib);
-
if (r300->draw && !r300->draw_vbo_locked)
r300_draw_flush_vbuf(r300);