aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShannon McPherson <shannon@lunarg.com>2018-03-29 11:27:39 -0600
committerShannon McPherson <shannon@lunarg.com>2018-03-30 10:43:41 -0600
commit3c0697ef5a9fbfc76b0a048cd7c5f5152ef1f7de (patch)
tree778addd4ed89e6e146ac4636aaefa8d16e6ce5e2
parent953f3b3b25aac0651f8f38901ad74d86053126f0 (diff)
downloadusermoji-3c0697ef5a9fbfc76b0a048cd7c5f5152ef1f7de.tar.xz
demos: Fix call to SurfaceCapabilities2EXT
VkGetPhysicalDeviceSurfaceCapabilities2EXT() requires VK_KHR_Display to be enabled. Added VK_KHR_DISPLAY_EXTENSION_NAME to list of instance extensions. Change-Id: I566cb26045c18865b9c0b1a39b5f89d6d7ccb7f6
-rw-r--r--demos/vulkaninfo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c
index 599c1bc1..6d207562 100644
--- a/demos/vulkaninfo.c
+++ b/demos/vulkaninfo.c
@@ -713,11 +713,12 @@ static void AppCreateInstance(struct AppInstance *inst) {
//---Build a list of extensions to load---
- const char *info_instance_extensions[] = {VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME,
- VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME,
- VK_KHR_SURFACE_EXTENSION_NAME,
+ const char *info_instance_extensions[] = {VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME,
+ VK_KHR_DISPLAY_EXTENSION_NAME,
+ VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME,
VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME,
VK_KHR_SHARED_PRESENTABLE_IMAGE_EXTENSION_NAME,
+ VK_KHR_SURFACE_EXTENSION_NAME,
#ifdef VK_USE_PLATFORM_WIN32_KHR
VK_KHR_WIN32_SURFACE_EXTENSION_NAME
#elif VK_USE_PLATFORM_XCB_KHR
@@ -1464,7 +1465,7 @@ static void AppDumpSurfaceCapabilities(struct AppInstance *inst, struct AppGpu *
fprintf(out, "\t\t\t\t\t</details>\n");
} else if (human_readable_output) {
printf("\nVkSurfaceCapabilities2EXT:\n");
- printf("==========================\n\n");
+ printf("==========================\n");
printf("\tsupportedSurfaceCounters:\n");
if (inst->surface_capabilities2_ext.supportedSurfaceCounters == 0) {
printf("\t\tNone\n");