aboutsummaryrefslogtreecommitdiff
path: root/layers/descriptor_sets.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-12-22 12:45:09 -0700
committerTobin Ehlis <tobine@google.com>2016-12-23 14:39:34 -0700
commitdc5ac6eb4d9d184a729f85d63c340cc44e486040 (patch)
tree9c2c2339cd58d0da3f6f15921ddf487c23aec595 /layers/descriptor_sets.cpp
parentc8dbd7968e4d829309ed0f6bcd6b0d967d0fa12e (diff)
downloadusermoji-dc5ac6eb4d9d184a729f85d63c340cc44e486040.tar.xz
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.
Diffstat (limited to 'layers/descriptor_sets.cpp')
-rw-r--r--layers/descriptor_sets.cpp4
1 files changed, 2 insertions, 2 deletions
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;