diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-12-22 12:26:32 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-12-23 14:39:34 -0700 |
| commit | c8dbd7968e4d829309ed0f6bcd6b0d967d0fa12e (patch) | |
| tree | 972824f0d27e342877f8609be5d2a235b6bcea76 /layers/descriptor_sets.cpp | |
| parent | 4548073f47ff3ea6b82e47bb256c793ed1754695 (diff) | |
| download | usermoji-c8dbd7968e4d829309ed0f6bcd6b0d967d0fa12e.tar.xz | |
layers:Add valid usage error ids
Update descriptor set cases where no memory bound to buffer or image to
use the correct respective unique error ids.
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index 5caa8bc7..ba5c4810 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -763,7 +763,7 @@ bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout usage = image_node->createInfo.usage; // Validate that memory is bound to image if (ValidateMemoryIsBoundToImage(dev_data, image_node, "vkUpdateDescriptorSets()")) { - // TODO : Need new code(s) for language in 11.6 Memory Association + *error_code = VALIDATION_ERROR_02524; *error_msg = "No memory bound to image."; return false; } @@ -1298,7 +1298,7 @@ bool cvdescriptorset::DescriptorSet::ValidateBufferUpdate(VkDescriptorBufferInfo return false; } if (ValidateMemoryIsBoundToBuffer(device_data_, buffer_node, "vkUpdateDescriptorSets()")) { - // TODO : This is a repeat code, need new code(s) for language in 11.6 Memory Association + *error_code = VALIDATION_ERROR_02525; *error_msg = "No memory bound to buffer."; return false; } |
