Mesa (master): virgl: wait for the right resource

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 17 07:41:24 UTC 2019


Module: Mesa
Branch: master
Commit: fc8b1ca33a17c67b9b8cb1af5a30b46718237011
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc8b1ca33a17c67b9b8cb1af5a30b46718237011

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Mar 13 16:03:39 2019 +0100

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 at collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh at chromium.org>

---

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




More information about the mesa-commit mailing list