From 8dfcf0fc2f8de47ba20cd6a1cd3e559abe510ac6 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Tue, 13 Jun 2017 13:00:05 -0600 Subject: layers: Use copies of layout data for descriptorsets DescriptrSets used pointers to descriptorsetlayout data, which caused invalid references if the layouts were deleted before the descriptor sets. Changed the layer to copy the data. Change-Id: I671f1efed2aa0986f3a370b51f2f96c07b555af7 --- layers/core_validation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 65604970..026c1407 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4754,6 +4754,7 @@ static void PostCallRecordAllocateDescriptorSets(layer_data *dev_data, const VkD &dev_data->setMap, dev_data); } +// TODO: PostCallRecord routine is dependent on data generated in PreCallValidate -- needs to be moved out VKAPI_ATTR VkResult VKAPI_CALL AllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAllocateInfo, VkDescriptorSet *pDescriptorSets) { layer_data *dev_data = GetLayerDataPtr(get_dispatch_key(device), layer_data_map); -- cgit v1.2.3