annoying to keep copy/pasting this around
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20681>
return screen->disk_cache;
}
return screen->disk_cache;
}
+VkSemaphore
+zink_create_semaphore(struct zink_screen *screen)
+{
+ VkSemaphoreCreateInfo sci = {
+ VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
+ NULL,
+ 0
+ };
+ VkSemaphore sem = VK_NULL_HANDLE;
+ VkResult ret = VKSCR(CreateSemaphore)(screen->dev, &sci, NULL, &sem);
+ return ret == VK_SUCCESS ? sem : VK_NULL_HANDLE;
+}
+
static struct zink_screen *
zink_internal_create_screen(const struct pipe_screen_config *config)
{
static struct zink_screen *
zink_internal_create_screen(const struct pipe_screen_config *config)
{
+VkSemaphore
+zink_create_semaphore(struct zink_screen *screen);
+
VkFormat
zink_get_format(struct zink_screen *screen, enum pipe_format format);
VkFormat
zink_get_format(struct zink_screen *screen, enum pipe_format format);