From 04f3145a401342f807cd19502dda8354526acfc0 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/core_checks/cc_render_pass.cpp b/layers/core_checks/cc_render_pass.cpp index f3b711c08c9..149c4bb315c 100644 --- a/layers/core_checks/cc_render_pass.cpp +++ b/layers/core_checks/cc_render_pass.cpp @@ -3359,7 +3359,8 @@ 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 (!IsExtEnabled(device_extensions.vk_khr_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);