summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/virgl/virgl_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c
index cae7921d683..65d82784d63 100644
--- a/src/gallium/drivers/virgl/virgl_texture.c
+++ b/src/gallium/drivers/virgl/virgl_texture.c
@@ -149,7 +149,7 @@ static void *virgl_texture_transfer_map(struct pipe_context *ctx,
trans->resolve_tmp = NULL;
}
- readback = virgl_res_needs_readback(vctx, vtex, usage, level);
+ readback = virgl_res_needs_readback(vctx, src_res, usage, level);
if (readback) {
vs->vws->transfer_get(vs->vws, src_res->hw_res, box, trans->base.stride,
trans->l_stride, trans->offset, level);