From 4e14c3dcb15c0f97ba050adfb9d272c0dd000613 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 8 Oct 2020 15:19:50 -0400 Subject: [PATCH] zink: remove extraneous flush in transfer_map_region_flush this was only needed to cover up some other bugs: * missing barriers for buffer sampler/image descriptors * weirdness with first frame handling there's better ways of handling both cases, and now they're handled better Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_resource.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 0949c835dbd..a23361fee1b 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -744,8 +744,6 @@ zink_transfer_flush_region(struct pipe_context *pctx, zink_copy_buffer(ctx, NULL, res, staging_res, box->x, box->x, box->width); else zink_transfer_copy_bufimage(ctx, res, staging_res, trans); - if (batch_uses) - pctx->flush(pctx, NULL, 0); } } }