Mesa (main): zink: explicitly end renderpass before running dispatch
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 31 02:35:49 UTC 2021
Module: Mesa
Branch: main
Commit: 213548251b9ea17f2997531a700e3c95f5c363f6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=213548251b9ea17f2997531a700e3c95f5c363f6
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Aug 9 12:50:27 2021 -0400
zink: explicitly end renderpass before running dispatch
it's possible that nothing will end the renderpass otherwise
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12581>
---
src/gallium/drivers/zink/zink_draw.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/zink/zink_draw.cpp b/src/gallium/drivers/zink/zink_draw.cpp
index 1adc8eeed5b..92507a306e0 100644
--- a/src/gallium/drivers/zink/zink_draw.cpp
+++ b/src/gallium/drivers/zink/zink_draw.cpp
@@ -813,6 +813,7 @@ zink_launch_grid(struct pipe_context *pctx, const struct pipe_grid_info *info)
&info->work_dim);
batch->work_count++;
+ zink_batch_no_rp(ctx);
if (info->indirect) {
vkCmdDispatchIndirect(batch->state->cmdbuf, zink_resource(info->indirect)->obj->buffer, info->indirect_offset);
zink_batch_reference_resource_rw(batch, zink_resource(info->indirect), false);
More information about the mesa-commit
mailing list