Vulkan: Submit after Compute Dispatch

This PR adds command submission after performing any compute dispatch.
This is a work around as the vulkan backend doesn't support memory
barriers yet.

Pull Request: https://projects.blender.org/blender/blender/pulls/112505
This commit is contained in:
Jeroen Bakker
2023-09-18 13:41:19 +02:00
parent 418f817879
commit 80dda1168f

View File

@@ -107,6 +107,7 @@ void VKBackend::compute_dispatch(int groups_x_len, int groups_y_len, int groups_
context.bind_compute_pipeline();
VKCommandBuffer &command_buffer = context.command_buffer_get();
command_buffer.dispatch(groups_x_len, groups_y_len, groups_z_len);
command_buffer.submit();
}
void VKBackend::compute_dispatch_indirect(StorageBuf *indirect_buf)
@@ -118,6 +119,7 @@ void VKBackend::compute_dispatch_indirect(StorageBuf *indirect_buf)
VKStorageBuffer &indirect_buffer = *unwrap(indirect_buf);
VKCommandBuffer &command_buffer = context.command_buffer_get();
command_buffer.dispatch(indirect_buffer);
command_buffer.submit();
}
Context *VKBackend::context_alloc(void *ghost_window, void *ghost_context)