diff options
Diffstat (limited to 'src/gallium/drivers/zink/zink_screen.c')
-rw-r--r-- | src/gallium/drivers/zink/zink_screen.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index d0c07024d9e..667f242091c 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -842,12 +842,17 @@ zink_internal_create_screen(struct sw_winsys *winsys, int fd) for (uint32_t i = 0; i < num_extensions; ++i) { if (!strcmp(extensions[i].extensionName, VK_KHR_MAINTENANCE1_EXTENSION_NAME)) - screen->have_VK_KHR_maintenance1 = true; + screen->have_KHR_maintenance1 = true; } FREE(extensions); } } + if (!screen->have_KHR_maintenance1) { + debug_printf("ZINK: VK_KHR_maintenance1 required!\n"); + goto fail; + } + VkDeviceQueueCreateInfo qci = {}; float dummy = 0.0f; qci.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; |