Skip to content

Commit 40a94b6

Browse files
layers: Allow multiview for DGC
1 parent 545ba80 commit 40a94b6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

layers/core_checks/cc_device_generated_commands.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,11 @@ bool CoreChecks::PreCallValidateCmdExecuteGeneratedCommandsEXT(VkCommandBuffer c
734734
}
735735

736736
uint32_t view_mask = cb_state.GetViewMask();
737-
if (view_mask != 0) {
737+
if (view_mask != 0 && pGeneratedCommandsInfo->indirectExecutionSet != VK_NULL_HANDLE) {
738738
skip |= LogError("VUID-vkCmdExecuteGeneratedCommandsEXT-None-11062", commandBuffer, error_obj.location,
739-
"The active render pass contains a non-zero viewMask (0x%" PRIx32 ").", view_mask);
739+
"The active render pass contains a non-zero viewMask (0x%" PRIx32
740+
") but pGeneratedCommandsInfo->indirectExecutionSet (%s) is not VK_NULL_HANDLE.",
741+
view_mask, FormatHandle(pGeneratedCommandsInfo->indirectExecutionSet).c_str());
740742
}
741743

742744
if (auto indirect_execution_set = Get<vvl::IndirectExecutionSet>(pGeneratedCommandsInfo->indirectExecutionSet)) {

0 commit comments

Comments
 (0)