aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-06-13 13:00:05 -0600
committerMark Lobodzinski <mark@lunarg.com>2017-06-13 14:59:25 -0600
commit8dfcf0fc2f8de47ba20cd6a1cd3e559abe510ac6 (patch)
tree75a7b21128cc47fee34cbccea7cad32451f0c2eb /layers/core_validation.cpp
parentbe025b7efcb1b1fde21d7ab0437de8c478d817d7 (diff)
downloadusermoji-8dfcf0fc2f8de47ba20cd6a1cd3e559abe510ac6.tar.xz
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
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp1
1 files changed, 1 insertions, 0 deletions
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);