Browse Source

Revert "r600g: do not flush the uploader" (with comments)

This reverts commit 1c2a4f0820.
tags/android-x86-2.2-r2
Marek Olšák 14 years ago
parent
commit
d8d5c2660f
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/gallium/drivers/r600/r600_pipe.c

+ 7
- 0
src/gallium/drivers/r600/r600_pipe.c View File

@@ -68,6 +68,13 @@ static void r600_flush(struct pipe_context *ctx, unsigned flags,
dc++;
#endif
r600_context_flush(&rctx->ctx);

/* XXX These shouldn't be really necessary, but removing them breaks some tests.
* Needless buffer reallocations may significantly increase memory consumption,
* so getting rid of these 3 calls is important. */
u_vbuf_mgr_flush_uploader(rctx->vbuf_mgr);
u_upload_flush(rctx->upload_ib);
u_upload_flush(rctx->upload_const);
}

static void r600_destroy_context(struct pipe_context *context)

Loading…
Cancel
Save