Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc7f6a6a authored by Jesse Hall's avatar Jesse Hall
Browse files

vkinfo: Provide VkApplicationInfo

This is supposed to be optional, but the N6P/N5X driver currently
requires it.

Change-Id: Ib90962a595052cd829b4967dce4b5a6740173a96
parent 7c67f007
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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,