diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_buffer.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/virgl/virgl_buffer.c b/src/gallium/drivers/virgl/virgl_buffer.c index 42434752d53..d4bde39096e 100644 --- a/src/gallium/drivers/virgl/virgl_buffer.c +++ b/src/gallium/drivers/virgl/virgl_buffer.c @@ -43,11 +43,8 @@ static void *virgl_buffer_transfer_map(struct pipe_context *ctx, trans = virgl_resource_create_transfer(&vctx->transfer_pool, resource, &vbuf->metadata, level, usage, box); - if (usage & PIPE_TRANSFER_READ) - flush = true; - else - flush = virgl_res_needs_flush(vctx, trans); + flush = virgl_res_needs_flush(vctx, trans); if (flush) ctx->flush(ctx, NULL, 0); |