While we're at it, remove the VK_-prefix from the extension bool; all
extensions have this so it's kinda superfluous.
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;
VkPhysicalDeviceProperties props;
VkPhysicalDeviceFeatures feats;
VkPhysicalDeviceMemoryProperties mem_props;
- bool have_VK_KHR_maintenance1;
+ bool have_KHR_maintenance1;
uint32_t gfx_queue;
VkDevice dev;