zink: add synchronization for conditional render buffer

doesn't seem to do anything on any drivers I've tested, but maybe it's
needed somewhere

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14853>
This commit is contained in:
Mike Blumenkrantz 2022-01-27 10:44:34 -05:00 committed by Marge Bot
parent 1e96542390
commit 41ed470f6f
1 changed files with 1 additions and 0 deletions

View File

@ -967,6 +967,7 @@ zink_render_condition(struct pipe_context *pctx,
/* these need special handling */
force_cpu_read(ctx, pquery, PIPE_QUERY_TYPE_U32, &res->base.b, 0);
}
zink_resource_buffer_barrier(ctx, res, VK_ACCESS_CONDITIONAL_RENDERING_READ_BIT_EXT, VK_PIPELINE_STAGE_CONDITIONAL_RENDERING_BIT_EXT);
query->predicate_dirty = false;
}
ctx->render_condition.inverted = condition;