summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_flush.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-01-04 18:00:46 +0100
committerMarek Olšák <[email protected]>2013-01-04 21:08:28 +0100
commitad1d1a4d9e4cb06424d477ddabac5885fa0613af (patch)
tree24ec0951d5f09b333f17daca6a5dccc28e61f3fe /src/gallium/drivers/r300/r300_flush.c
parent37fd455b21d4825b569a45ffd5d930347a042cea (diff)
r300g/swtcl: simplify vertex uploading
- skip the vertex buffer reallocation in flush and just use the unsynchronized flag to get new memory. - remove the cruft needed to get around the issues with the vertex buffer reallocation in flush - use pb_buffer instead of pipe_resource
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 6d51ee5d528..365dc8c3c11 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -70,9 +70,6 @@ void r300_flush(struct pipe_context *pipe,
struct r300_context *r300 = r300_context(pipe);
struct pb_buffer **rfence = (struct pb_buffer**)fence;
- if (r300->draw && !r300->draw_vbo_locked)
- r300_draw_flush_vbuf(r300);
-
if (r300->screen->info.drm_minor >= 12) {
flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
}