aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-05-05 10:43:30 -0600
committerTobin Ehlis <tobine@google.com>2016-05-05 16:05:18 -0600
commit690e8119983f386b019f5ddf31cc3a462d4e07ed (patch)
tree686a3e6b99f37ecab8a82e0cf231c20b3aba47e6
parent2a3f9c98ead0f78dd7fb9dc3df5af0d2857f009f (diff)
downloadusermoji-690e8119983f386b019f5ddf31cc3a462d4e07ed.tar.xz
layers: Fix stale comments in core_validation
-rw-r--r--layers/core_validation.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index f34c5319..2ad2916c 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5953,7 +5953,7 @@ vkAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAl
return VK_ERROR_VALIDATION_FAILED_EXT;
}
}
- // Create new set node and add to head of pool nodes
+ // Create new DescriptorSet instance and add to the pool's unordered_set of DescriptorSets
cvdescriptorset::DescriptorSet *pNewNode = new cvdescriptorset::DescriptorSet(
pDescriptorSets[i], layout_pair->second, &dev_data->bufferMap, &dev_data->memObjMap, &dev_data->bufferViewMap,
&dev_data->samplerMap, &dev_data->imageViewMap, &dev_data->imageMap,
@@ -5967,9 +5967,6 @@ vkAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAl
return VK_ERROR_VALIDATION_FAILED_EXT;
}
} else {
- // TODO : Pool should store a total count of each type of Descriptor available
- // When descriptors are allocated, decrement the count and validate here
- // that the count doesn't go below 0. One reset/free need to bump count back up.
// Insert set into this pool
pPoolNode->sets.insert(pNewNode);
pNewNode->in_use.store(0);