summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2022-01-27 10:44:34 -0500
committerMarge Bot <emma+marge@anholt.net>2022-02-03 19:15:26 +0000
commit41ed470f6fde8789ce059b7554aed1f927ba9ce0 (patch)
tree43caa22ddb1b2993f09af98c5b3df0cafdc961f2
parent1e96542390adaaec2b3e84ef69239f580403b26d (diff)
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>
-rw-r--r--src/gallium/drivers/zink/zink_query.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c
index 0ed073b5e37..e2362d1690b 100644
--- a/src/gallium/drivers/zink/zink_query.c
+++ b/src/gallium/drivers/zink/zink_query.c
@@ -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;