Mesa (main): zink: add synchronization for conditional render buffer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 3 19:28:34 UTC 2022
Module: Mesa
Branch: main
Commit: 41ed470f6fde8789ce059b7554aed1f927ba9ce0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=41ed470f6fde8789ce059b7554aed1f927ba9ce0
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Jan 27 10:44:34 2022 -0500
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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14853>
---
src/gallium/drivers/zink/zink_query.c | 1 +
1 file changed, 1 insertion(+)
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;
More information about the mesa-commit
mailing list