diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-08-31 12:00:35 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-01 08:32:53 -0700 |
| commit | ea07a7f4e19871791627fe6d03e41ec5d553e990 (patch) | |
| tree | 92846021501b97f2624bf8ec4d08a76f9cfc07c1 /layers/descriptor_sets.cpp | |
| parent | 2dc8d2b09eecc6cf3527592eaec89b47803c5a2e (diff) | |
| download | usermoji-ea07a7f4e19871791627fe6d03e41ec5d553e990.tar.xz | |
layers: Don't spuriously produce an error if there are no view type bits set
Previously we'd complain about any input attachment, since we don't constrain
its view type at all.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index c7b39f7c..00c0d194 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -429,7 +429,7 @@ bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::map<uint32_t, auto image_view_data = getImageViewData(device_data_, image_view); assert(image_view_data); - if (~reqs & (1 << image_view_data->viewType)) { + if ((reqs & DESCRIPTOR_REQ_ALL_VIEW_TYPE_BITS) && (~reqs & (1 << image_view_data->viewType))) { // bad view type std::stringstream error_str; error_str << "Descriptor in binding #" << binding << " at global descriptor index " << i |
