Module: Mesa Branch: main Commit: fbece25a451bb7915891851ee5c72724974ae5e2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbece25a451bb7915891851ee5c72724974ae5e2
Author: Mike Blumenkrantz <[email protected]> Date: Wed Apr 20 15:53:35 2022 -0400 zink: add synchronization for buffer clears cc: mesa-stable Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16098> --- src/gallium/drivers/zink/zink_clear.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_clear.c b/src/gallium/drivers/zink/zink_clear.c index 1c53de569fb..50fcae752bb 100644 --- a/src/gallium/drivers/zink/zink_clear.c +++ b/src/gallium/drivers/zink/zink_clear.c @@ -475,6 +475,7 @@ zink_clear_buffer(struct pipe_context *pctx, zink_batch_no_rp(ctx); zink_batch_reference_resource_rw(batch, res, true); util_range_add(&res->base.b, &res->valid_buffer_range, offset, offset + size); + zink_resource_buffer_barrier(ctx, res, VK_ACCESS_TRANSFER_WRITE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT); VKCTX(CmdFillBuffer)(batch->state->cmdbuf, res->obj->buffer, offset, size, *(uint32_t*)clear_value); return; }
