aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-03-13 16:03:39 +0100
committerErik Faye-Lund <[email protected]>2019-04-17 07:27:08 +0000
commitfc8b1ca33a17c67b9b8cb1af5a30b46718237011 (patch)
tree6944172e7a15557957a1261a327037b7055cbe13 /src
parent6263304b2d4e7a4dbff2c7a23a4f0837486d90fb (diff)
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 <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src')
-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 65d82784d63..d52062579d4 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);