summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_buffer.c
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2019-01-11 17:38:55 -0800
committerGert Wollny <[email protected]>2019-02-15 11:19:04 +0100
commit7626e6e18956cac0de9077694c97a388c739bdd0 (patch)
tree455944983dbb9f90e0b2917eed2193887ef36dbe /src/gallium/drivers/virgl/virgl_buffer.c
parentc19aedcf1a83c70a999b963dfbc0bce47a189600 (diff)
virgl: track level cleanliness rather than resource cleanliness
This allows a minor optimization for texture upload. Reviewed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_buffer.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_buffer.c b/src/gallium/drivers/virgl/virgl_buffer.c
index 25fb992ef1f..3c732c90132 100644
--- a/src/gallium/drivers/virgl/virgl_buffer.c
+++ b/src/gallium/drivers/virgl/virgl_buffer.c
@@ -53,7 +53,7 @@ static void *virgl_buffer_transfer_map(struct pipe_context *ctx,
trans = virgl_resource_create_transfer(ctx, resource, &vbuf->metadata, level,
usage, box);
- readback = virgl_res_needs_readback(vctx, vbuf, usage);
+ readback = virgl_res_needs_readback(vctx, vbuf, usage, 0);
if (readback)
vs->vws->transfer_get(vs->vws, vbuf->hw_res, box, trans->base.stride,
trans->l_stride, trans->offset, level);