zink: remove unnecessary flush during image maps

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9786>
This commit is contained in:
Mike Blumenkrantz 2020-12-10 16:01:13 -05:00 committed by Marge Bot
parent 6c35b4c771
commit 7892b18acf
1 changed files with 0 additions and 5 deletions

View File

@ -764,11 +764,6 @@ zink_transfer_map(struct pipe_context *pctx,
struct zink_resource *staging_res = zink_resource(trans->staging_res);
if (usage & PIPE_MAP_READ) {
/* TODO: can probably just do a full cs copy if it's already in a cs batch */
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);
struct zink_context *ctx = zink_context(pctx);
zink_transfer_copy_bufimage(ctx, staging_res, res, trans);
/* need to wait for rendering to finish */
zink_fence_wait(pctx);