From: Erik Faye-Lund Date: Thu, 4 Apr 2019 10:22:07 +0000 (+0200) Subject: virgl: check for readback on correct resource X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6263304b2d4e7a4dbff2c7a23a4f0837486d90fb;p=mesa.git virgl: check for readback on correct resource Signed-off-by: Erik Faye-Lund Reviewed-by: Gurchetan Singh --- 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);