diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-07-21 14:03:06 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-07-24 12:18:46 -0700 |
| commit | b2ff3db60b0b2b787854d51c837bcbc7e7a669ab (patch) | |
| tree | 8ddab78bf6b4f07e9e3d0c97604892e1d612759d /layers/descriptor_sets.cpp | |
| parent | 1d7511184b624a1192882d6981f23cd0ac47d79d (diff) | |
| download | usermoji-b2ff3db60b0b2b787854d51c837bcbc7e7a669ab.tar.xz | |
layers: Resolve TODO about actual layouts
This VU exists now in recent specs.
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index 78fa7c11..3f159b29 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -510,10 +510,6 @@ bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::map<uint32_t, auto image_node = GetImageState(device_data_, image_view_ci.image); assert(image_node); // Verify Image Layout - // TODO: VALIDATION_ERROR_046002ae is the error physically closest to the spec language of interest, however - // there is no VUID for the actual spec language. Need to file a spec MR to add VU language for: - // imageLayout is the layout that the image subresources accessible from imageView will be in at the time - // this descriptor is accessed. // Copy first mip level into sub_layers and loop over each mip level to verify layout VkImageSubresourceLayers sub_layers; sub_layers.aspectMask = image_view_ci.subresourceRange.aspectMask; @@ -524,7 +520,7 @@ bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::map<uint32_t, cur_level < image_view_ci.subresourceRange.levelCount; ++cur_level) { sub_layers.mipLevel = cur_level; VerifyImageLayout(device_data_, cb_node, image_node, sub_layers, image_layout, VK_IMAGE_LAYOUT_UNDEFINED, - caller, VALIDATION_ERROR_046002ae, &hit_error); + caller, VALIDATION_ERROR_046002b0, &hit_error); if (hit_error) { *error = "Image layout specified at vkUpdateDescriptorSets() time doesn't match actual image layout at " |
