Skip to content
Permalink
Browse files

VulkanMaybeAvailable: Bail earlier in some cases where there's no sur…

…face extension.
  • Loading branch information...
hrydgard committed Sep 1, 2019
1 parent 5f2ad2a commit 515bbd28fc17964733ca027537074bd9789a2115
Showing with 8 additions and 1 deletion.
  1. +8 −1 Common/Vulkan/VulkanLoader.cpp
@@ -334,7 +334,9 @@ bool VulkanMayBeAvailable() {
ELOG("Enumerating VK extensions failed.");
goto bail;
}

for (auto &ext: instanceExts) {
ILOG(" %s", ext.extensionName);
}
if (platformSurfaceExtension) {
for (auto iter : instanceExts) {
ILOG("VulkanMaybeAvailable: Instance extension found: %s (%08x)", iter.extensionName, iter.specVersion);
@@ -352,6 +354,11 @@ bool VulkanMayBeAvailable() {
ELOG("Platform surface extension not found");
goto bail;
}
} else {
if (!surfaceExtensionFound) {
ELOG("Surface extension not found");
goto bail;
}
}
// This can't happen unless the driver is double-reporting a surface extension.
if (ci.enabledExtensionCount > 2) {

0 comments on commit 515bbd2

Please sign in to comment.
You can’t perform that action at this time.