mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render/vulkan: check binary semaphore in vulkan_sync_render_buffer()
Ensure the binary semaphore is available when we need it.
This commit is contained in:
parent
d4e4c9f64b
commit
e57dd9c5ef
1 changed files with 2 additions and 0 deletions
|
|
@ -989,6 +989,8 @@ bool vulkan_sync_render_buffer(struct wlr_vk_renderer *renderer,
|
|||
return vulkan_wait_command_buffer(cb, renderer);
|
||||
}
|
||||
|
||||
assert(cb->binary_semaphore != VK_NULL_HANDLE);
|
||||
|
||||
// Note: vkGetSemaphoreFdKHR implicitly resets the semaphore
|
||||
const VkSemaphoreGetFdInfoKHR get_fence_fd_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue