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 <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
Erik Faye-Lund 2019-03-13 16:03:39 +01:00
parent 6263304b2d
commit fc8b1ca33a

View file

@ -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);