vk: Do not do extension test if in a fast context (enum only)

This commit is contained in:
kd-11 2018-05-17 19:14:35 +03:00 committed by kd-11
parent 3f14bc6961
commit d283200e13

View file

@ -1883,6 +1883,8 @@ public:
std::vector<const char *> layers; std::vector<const char *> layers;
#ifndef __APPLE__ #ifndef __APPLE__
if (!fast)
{
extensions.push_back(VK_KHR_SURFACE_EXTENSION_NAME); extensions.push_back(VK_KHR_SURFACE_EXTENSION_NAME);
extensions.push_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME); extensions.push_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME);
#ifdef _WIN32 #ifdef _WIN32
@ -1901,16 +1903,18 @@ public:
extensions.push_back(VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME); extensions.push_back(VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME);
found_surface_ext = true; found_surface_ext = true;
} }
#endif #endif //(WAYLAND)
if (!found_surface_ext) if (!found_surface_ext)
{ {
LOG_ERROR(RSX, "Could not find a supported Vulkan surface extension"); LOG_ERROR(RSX, "Could not find a supported Vulkan surface extension");
return 0; return 0;
} }
#endif #endif //(WIN32)
if (!fast && g_cfg.video.debug_output) if (g_cfg.video.debug_output)
layers.push_back("VK_LAYER_LUNARG_standard_validation"); layers.push_back("VK_LAYER_LUNARG_standard_validation");
#endif }
#endif //(!APPLE)
VkInstanceCreateInfo instance_info = {}; VkInstanceCreateInfo instance_info = {};
instance_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; instance_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;
instance_info.pApplicationInfo = &app; instance_info.pApplicationInfo = &app;