From a4bc5e259d250b4da81ede2d3bddec9e2fd703c9 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Fri, 12 Feb 2016 12:06:09 -0700 Subject: [PATCH] layers: Fix UpdateDescriptorSets crash in mem_tracker Validation was handling TEXEL_BUFFER descriptorTypes incorrectly. Removing for now. --- layers/mem_tracker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 930df00..007af5b 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); } -- 2.7.4