summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_resource.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-07-30 22:17:56 -0700
committerEric Anholt <[email protected]>2014-08-11 14:45:31 -0700
commit6b2583412f0789d2aec71e55e1e187d1ad17f721 (patch)
treeb63dc55d79ff4260ce2a689dec9c78040c1a4f1d /src/gallium/drivers/vc4/vc4_resource.c
parentc047f1360306e0e25d2500ae13e2424254a47dbd (diff)
vc4: Drop the flush at the end of the draw
Now we actally get multiple draw calls per submit.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c2
1 files changed, 2 insertions, 0 deletions
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;