Skip to content

Commit

Permalink
layers: Fix check for VUID-07908
Browse files Browse the repository at this point in the history
Extension and api version was missing from the check
  • Loading branch information
aitor-lunarg committed Nov 9, 2023
1 parent 0eec8db commit 04f3145
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layers/core_checks/cc_render_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(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);
Expand Down

0 comments on commit 04f3145

Please sign in to comment.