Mesa (main): zink: remove unnecessary stall during device-local map case

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 7 02:07:01 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon May 17 08:44:26 2021 -0400

zink: remove unnecessary stall during device-local map case

this stalls after the copy already, no need to also stall before it

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11749>

---

 src/gallium/drivers/zink/zink_resource.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index 9e4d49d2e8d..407c142df61 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -935,7 +935,6 @@ buffer_transfer_map(struct zink_context *ctx, struct zink_resource *res, unsigne
          if (!zink_batch_usage_check_completion(ctx, res->obj->writes))
             return NULL;
       } else if (!res->obj->host_visible) {
-         zink_fence_wait(&ctx->base);
          trans->staging_res = pipe_buffer_create(&screen->base, PIPE_BIND_LINEAR, PIPE_USAGE_STAGING, box->x + box->width);
          if (!trans->staging_res)
             return NULL;



More information about the mesa-commit mailing list