From dc5ac6eb4d9d184a729f85d63c340cc44e486040 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Thu, 22 Dec 2016 12:45:09 -0700 Subject: layer:Add unique error ids for memory binding Update all of the cases to validate that memory is bound to non-sparse images and buffers to use the correct unique error id. --- layers/descriptor_sets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/descriptor_sets.cpp') diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index ba5c4810..7f14801a 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -762,7 +762,7 @@ bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout format = image_node->createInfo.format; usage = image_node->createInfo.usage; // Validate that memory is bound to image - if (ValidateMemoryIsBoundToImage(dev_data, image_node, "vkUpdateDescriptorSets()")) { + if (ValidateMemoryIsBoundToImage(dev_data, image_node, "vkUpdateDescriptorSets()", VALIDATION_ERROR_02524)) { *error_code = VALIDATION_ERROR_02524; *error_msg = "No memory bound to image."; return false; @@ -1297,7 +1297,7 @@ bool cvdescriptorset::DescriptorSet::ValidateBufferUpdate(VkDescriptorBufferInfo *error_msg = error_str.str(); return false; } - if (ValidateMemoryIsBoundToBuffer(device_data_, buffer_node, "vkUpdateDescriptorSets()")) { + if (ValidateMemoryIsBoundToBuffer(device_data_, buffer_node, "vkUpdateDescriptorSets()", VALIDATION_ERROR_02525)) { *error_code = VALIDATION_ERROR_02525; *error_msg = "No memory bound to buffer."; return false; -- cgit v1.2.3