mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
vulkan: Move vulkan_fence_create to vulkan-utils
This function is independent from compute. No functional changes.
This commit is contained in:
parent
51b7d49cff
commit
e5f89e09d1
3 changed files with 13 additions and 11 deletions
|
|
@ -420,6 +420,17 @@ bool vulkan_sync_export_dmabuf(struct vulkan_base *s, struct vulkan_buffer *vk_b
|
|||
return dmabuf_import_sync_file(s->log, vk_buf->fd, DMA_BUF_SYNC_WRITE, sync_file_fd);
|
||||
}
|
||||
|
||||
int vulkan_fence_create(struct vulkan_base *s, VkFence *fence)
|
||||
{
|
||||
VkFenceCreateInfo createInfo = {
|
||||
.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
|
||||
.flags = 0,
|
||||
};
|
||||
VK_CHECK_RESULT(vkCreateFence(s->device, &createInfo, NULL, fence));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int vulkan_commandPool_create(struct vulkan_base *s, VkCommandPool *commandPool)
|
||||
{
|
||||
const VkCommandPoolCreateInfo commandPoolCreateInfo = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue