aboutsummaryrefslogtreecommitdiff
path: root/layers/descriptor_sets.cpp
diff options
context:
space:
mode:
authorAlex Smith <alex@alex-smith.me.uk>2016-09-23 12:18:51 +0100
committerTobin Ehlis <tobine@google.com>2016-09-23 10:26:32 -0600
commit6d1e8e2cd0e4bdd089197e6a5a72958dbb4210b0 (patch)
tree3b3e3e869504766b5db44bfeb5bf76ff39328bdf /layers/descriptor_sets.cpp
parent6939d202c3b339fcf75e0be66e3e0091a55c121c (diff)
downloadusermoji-6d1e8e2cd0e4bdd089197e6a5a72958dbb4210b0.tar.xz
layers: Fix VerifyCopyUpdateContents on combined image sampler descriptors
A missing break at the end of the ImageSampler case results in falling through to the Image case, leading to spurious validation errors such as: vkUpdateDescriptorsSets() failed copy update from Descriptor Set 0x108 to Descriptor Set 0x137 with error: Attempted copy update to image descriptor failed due to: Invalid VkImageView: 0x100000000
Diffstat (limited to 'layers/descriptor_sets.cpp')
-rw-r--r--layers/descriptor_sets.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp
index d7ca0255..d08a110f 100644
--- a/layers/descriptor_sets.cpp
+++ b/layers/descriptor_sets.cpp
@@ -1359,6 +1359,7 @@ bool cvdescriptorset::DescriptorSet::VerifyCopyUpdateContents(const VkCopyDescri
return false;
}
}
+ break;
}
case Image: {
for (uint32_t di = 0; di < update->descriptorCount; ++di) {