From 6263304b2d4e7a4dbff2c7a23a4f0837486d90fb Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 4 Apr 2019 12:22:07 +0200 Subject: [PATCH] virgl: check for readback on correct resource Signed-off-by: Erik Faye-Lund Reviewed-by: Gurchetan Singh --- src/gallium/drivers/virgl/virgl_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2