From 4487010f1e803e8417198c5f2e44b908329926e1 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Fri, 14 Jul 2017 11:25:21 -0600 Subject: layers:Handle deleted image view in descriptor When an image descriptor with a destroyed image view was used we hit an assert. This is not caught upstream and can occur if a descriptor is re-used following image view deletion. Add code to catch this case and report the destroyed image view. --- layers/descriptor_sets.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'layers/descriptor_sets.cpp') diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index c6162ebd..e3caff60 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -486,7 +486,15 @@ bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::mapcreate_info; if ((reqs & DESCRIPTOR_REQ_ALL_VIEW_TYPE_BITS) && (~reqs & (1 << image_view_ci.viewType))) { -- cgit v1.2.3