zink: explicitly end renderpass before running dispatch
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 9 Aug 2021 16:50:27 +0000 (12:50 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Aug 2021 02:17:40 +0000 (02:17 +0000)
it's possible that nothing will end the renderpass otherwise

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12581>

src/gallium/drivers/zink/zink_draw.cpp

index 1adc8ee..92507a3 100644 (file)
@@ -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);