aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorTobin Ehlis <tobin@lunarg.com>2015-10-19 12:09:13 -0600
committerTobin Ehlis <tobin@lunarg.com>2015-10-22 11:12:27 -0600
commit15c23d01fc2bf8affff0b616418f757364fc8f5b (patch)
treed5a817d334f2484a43faeb8c3a3e9317acfc2d56 /layers
parent15a4ef64ff0aab706e64c313e9bfcb8a3bd6b226 (diff)
downloadusermoji-15c23d01fc2bf8affff0b616418f757364fc8f5b.tar.xz
layers: Comment in DrawState for missing validation of DescriptorPool size limit
Diffstat (limited to 'layers')
-rwxr-xr-xlayers/draw_state.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 4797a662..1673931c 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -1911,6 +1911,9 @@ VK_LAYER_EXPORT VkResult VKAPI vkAllocDescriptorSets(VkDevice device, VkDescript
return VK_ERROR_VALIDATION_FAILED;
} else {
memset(pNewNode, 0, sizeof(SET_NODE));
+ // 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 at head of Set LL for this pool
pNewNode->pNext = pPoolNode->pSets;
pPoolNode->pSets = pNewNode;