From 9b009b8c24df6c995d3d2b3692d70f79b390f69e Mon Sep 17 00:00:00 2001 From: Aitor Camacho Date: Thu, 9 Nov 2023 15:16:10 -0700 Subject: [PATCH] layers: Fix check for VUID-07908 Extension and api version was missing from the check --- layers/core_checks/cc_render_pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/core_checks/cc_render_pass.cpp b/layers/core_checks/cc_render_pass.cpp index f3b711c08c9..093a7370a00 100644 --- a/layers/core_checks/cc_render_pass.cpp +++ b/layers/core_checks/cc_render_pass.cpp @@ -3359,7 +3359,7 @@ bool CoreChecks::PreCallValidateCmdBeginRendering(VkCommandBuffer commandBuffer, string_VkImageCreateFlags(fragment_density_map_view_state->image_state->createInfo.flags).c_str()); } int32_t layer_count = static_cast(fragment_density_map_view_state->normalized_subresource_range.layerCount); - if (layer_count != 1) { + if (!enabled_features.multiview && (phys_dev_props.apiVersion < VK_API_VERSION_1_1) && layer_count != 1) { const LogObjectList objlist(commandBuffer, fragment_density_map_attachment_info->imageView); skip |= LogError("VUID-VkRenderingFragmentDensityMapAttachmentInfoEXT-apiVersion-07908", objlist, view_loc, "must have a layer count (%" PRId32 ") equal to 1.", layer_count);