From c4c279bd7afdb32a171d74fb972a7121891e1bae Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 17 May 2021 08:44:26 -0400 Subject: [PATCH] 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 Part-of: --- 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 9e4d49d..407c142 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; -- 2.7.4