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.
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp
index ba5c481..7f14801 100644
--- a/layers/descriptor_sets.cpp
+++ b/layers/descriptor_sets.cpp
@@ -762,7 +762,7 @@
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 @@
*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;