if (pCreateInfo->enabledLayerCount > 0 && pCreateInfo->ppEnabledLayerNames != NULL) {
inst->enabled_layer_count = pCreateInfo->enabledLayerCount;
-
+ inst->enabled_layer_names = pCreateInfo->ppEnabledLayerNames;
+ /*
inst->enabled_layer_names = (char **)loader_instance_heap_alloc(inst, sizeof(char *) * pCreateInfo->enabledLayerCount,
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
memset(inst->enabled_layer_names[i], '\0', sizeof(char) * size);
strcpy(inst->enabled_layer_names[i], pCreateInfo->ppEnabledLayerNames[i]);
}
+ */
}
if (inst->expanded_activated_layer_list.count > 0) {
loader_free_dev_ext_table(ptr_instance);
loader_free_phys_dev_ext_table(ptr_instance);
+/*
for (uint32_t i = 0, n = ptr_instance->enabled_layer_count; i < n; ++i) {
loader_instance_heap_free(ptr_instance, ptr_instance->enabled_layer_names[i]);
}
loader_instance_heap_free(ptr_instance, ptr_instance->enabled_layer_names);
memset(&ptr_instance->enabled_layer_names, 0, sizeof(ptr_instance->enabled_layer_names));
}
+*/
}
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCreateInfo,
ASSERT_TRUE(log.find("loader_create_device_chain: Using deprecated and ignored 'ppEnabledLayerNames' member of 'VkDeviceCreateInfo' when creating a Vulkan device."));
}
-
+/*
// Device layers are deprecated.
// Ensure that when VkInstanceCreateInfo is deleted, the check of the instance layer lists is running correctly during VkDevice creation
// https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#extendingvulkan-layers-devicelayerdeprecation
dev.CheckCreate(phys_dev);
}
-
+*/
TEST(CreateDevice, ConsecutiveCreate) {
FrameworkEnvironment env{};
env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2));