diff options
author | Eric Anholt <[email protected]> | 2014-08-01 15:33:06 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-11 14:45:31 -0700 |
commit | 2259cc5aebcb16636b1399dd438beed9d9867e67 (patch) | |
tree | 23c5a96fefbf0fc88555931a57806e06c97820fe /src/gallium/drivers/vc4/vc4_resource.c | |
parent | 6b2583412f0789d2aec71e55e1e187d1ad17f721 (diff) |
vc4: Avoid flushing when mapping buffers that aren't in the batch.
This should prevent a bunch of unnecessary flushes for things like
updating immediate vertex data.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 9df2aae435b..3b1abd11152 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -57,7 +57,7 @@ vc4_resource_transfer_map(struct pipe_context *pctx, enum pipe_format format = prsc->format; char *buf; - vc4_flush(pctx); + vc4_flush_for_bo(pctx, rsc->bo); ptrans = util_slab_alloc(&vc4->transfer_pool); if (!ptrans) |