From 6b2583412f0789d2aec71e55e1e187d1ad17f721 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 30 Jul 2014 22:17:56 -0700 Subject: [PATCH] vc4: Drop the flush at the end of the draw Now we actally get multiple draw calls per submit. --- src/gallium/drivers/vc4/vc4_draw.c | 2 -- src/gallium/drivers/vc4/vc4_resource.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index af595466379..3b8a5d9b91e 100644 --- a/src/gallium/drivers/vc4/vc4_draw.c +++ b/src/gallium/drivers/vc4/vc4_draw.c @@ -187,8 +187,6 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) vc4->resolve |= PIPE_CLEAR_COLOR0; vc4->shader_rec_count++; - - vc4_flush(pctx); } static uint32_t diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 67ddfebf513..9df2aae435b 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -57,6 +57,8 @@ vc4_resource_transfer_map(struct pipe_context *pctx, enum pipe_format format = prsc->format; char *buf; + vc4_flush(pctx); + ptrans = util_slab_alloc(&vc4->transfer_pool); if (!ptrans) return NULL; -- 2.30.2