From 6c35b4c7717b05462d2f4dc6580f3cfbb9806cc2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 30 Nov 2020 12:00:01 -0500 Subject: [PATCH] zink: remove handling for resource flushing between compute/gfx batches this is no longer a thing Acked-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_resource.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 44561d0843d..a1a278b5255 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -845,9 +845,6 @@ zink_transfer_flush_region(struct pipe_context *pctx, if (trans->base.usage & PIPE_MAP_WRITE) { if (trans->staging_res) { struct zink_resource *staging_res = zink_resource(trans->staging_res); - if (zink_resource_has_usage(res, ZINK_RESOURCE_ACCESS_WRITE)) - /* don't actually have to stall here, only ensure batch is submitted */ - zink_flush_queue(ctx); if (ptrans->resource->target == PIPE_BUFFER) zink_copy_buffer(ctx, NULL, res, staging_res, box->x, box->x + trans->offset, box->width);