summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jesse Hall <jessehall@google.com> 2016-02-24 16:44:42 -0800
committer Jesse Hall <jessehall@google.com> 2016-02-25 03:14:34 -0800
commitdc7f6a6a8703e5dd8d11da9462528fb20aeb2bd0 (patch)
treefdcf58820b8647c5e1e4b005f74b9edefe5a1ce2
parent7c67f0070338f6899ee5768271b39e42f1721932 (diff)
vkinfo: Provide VkApplicationInfo
This is supposed to be optional, but the N6P/N5X driver currently requires it. Change-Id: Ib90962a595052cd829b4967dce4b5a6740173a96
-rw-r--r--vulkan/tools/vkinfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/vulkan/tools/vkinfo.cpp b/vulkan/tools/vkinfo.cpp
index e650a27d03..36a897e0bd 100644
--- a/vulkan/tools/vkinfo.cpp
+++ b/vulkan/tools/vkinfo.cpp
@@ -258,8 +258,17 @@ void GatherInfo(VulkanInfo* info, const Options& options) {
// clang-format on
uint32_t num_layers = sizeof(kValidationLayers) / sizeof(char*);
+ const VkApplicationInfo application_info = {
+ .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,
+ .pApplicationName = "vkinfo",
+ .applicationVersion = 0,
+ .pEngineName = "vkinfo",
+ .engineVersion = 0,
+ .apiVersion = VK_API_VERSION,
+ };
const VkInstanceCreateInfo create_info = {
.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
+ .pApplicationInfo = &application_info,
.enabledExtensionCount = num_extensions,
.ppEnabledExtensionNames = extensions,
.enabledLayerCount = (options.validate) ? num_layers : 0,