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 13, 2023
1 parent 312716a commit 9b009b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/core_checks/cc_render_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(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);
Expand Down

0 comments on commit 9b009b8

Please sign in to comment.