projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15a4ef6
)
layers: Comment in DrawState for missing validation of DescriptorPool size limit
author
Tobin Ehlis
<tobin@lunarg.com>
Mon, 19 Oct 2015 18:09:13 +0000
(12:09 -0600)
committer
Tobin Ehlis
<tobin@lunarg.com>
Thu, 22 Oct 2015 17:12:27 +0000
(11:12 -0600)
layers/draw_state.cpp
patch
|
blob
|
history
diff --git
a/layers/draw_state.cpp
b/layers/draw_state.cpp
index
4797a66
..
1673931
100755
(executable)
--- 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;