diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-02-12 12:06:09 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-02-18 15:42:04 -0700 |
| commit | a4bc5e259d250b4da81ede2d3bddec9e2fd703c9 (patch) | |
| tree | 2493a50f5ff59c9753b1a0695a937a2aaa0f9e98 | |
| parent | bcb0a4fe3cd339b9de03ab267ea785c0c08f03a6 (diff) | |
| download | usermoji-a4bc5e259d250b4da81ede2d3bddec9e2fd703c9.tar.xz | |
layers: Fix UpdateDescriptorSets crash in mem_tracker
Validation was handling TEXEL_BUFFER descriptorTypes incorrectly.
Removing for now.
| -rw-r--r-- | layers/mem_tracker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 930df00a..007af5b7 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -2464,8 +2464,9 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets( for (uint32_t i = 0; i < descriptorWriteCount; ++i) { if (pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE) { my_data->descriptorSetMap[pDescriptorWrites[i].dstSet].images.push_back(pDescriptorWrites[i].pImageInfo->imageView); - } else if (pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER || - pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER || + } else if (pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_TEXEL_BUFFER ) { + // TODO: Handle texel buffer writes + } else if (pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER || pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC) { my_data->descriptorSetMap[pDescriptorWrites[i].dstSet].buffers.push_back(pDescriptorWrites[i].pBufferInfo->buffer); } |
