From: Erik Faye-Lund Date: Wed, 13 Mar 2019 15:03:39 +0000 (+0100) Subject: virgl: wait for the right resource X-Git-Tag: upstream/19.3.0~7272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc8b1ca33a17c67b9b8cb1af5a30b46718237011;p=platform%2Fupstream%2Fmesa.git virgl: wait for the right resource In case we're resolving, we need to wait for the resolved resource instead of the original one. 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 65d8278..d520625 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -154,7 +154,7 @@ static void *virgl_texture_transfer_map(struct pipe_context *ctx, vs->vws->transfer_get(vs->vws, src_res->hw_res, box, trans->base.stride, trans->l_stride, trans->offset, level); - vs->vws->resource_wait(vs->vws, vtex->hw_res); + vs->vws->resource_wait(vs->vws, src_res->hw_res); } ptr = vs->vws->resource_map(vs->vws, src_res->hw_res);