Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions layers/chassis/dispatch_object_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2622,15 +2622,13 @@ VkResult DispatchDevice::CreateIndirectExecutionSetEXT(VkDevice device, const Vk
switch (local_pCreateInfo.type) {
case VK_INDIRECT_EXECUTION_SET_INFO_TYPE_PIPELINES_EXT:
if (local_pCreateInfo.info.pPipelineInfo) {
auto* pipeline_info = reinterpret_cast<vku::safe_VkIndirectExecutionSetPipelineInfoEXT*>(
const_cast<VkIndirectExecutionSetPipelineInfoEXT*>(local_pCreateInfo.info.pPipelineInfo));
auto* pipeline_info = const_cast<VkIndirectExecutionSetPipelineInfoEXT*>(local_pCreateInfo.info.pPipelineInfo);
pipeline_info->initialPipeline = Unwrap(pipeline_info->initialPipeline);
}
break;
case VK_INDIRECT_EXECUTION_SET_INFO_TYPE_SHADER_OBJECTS_EXT:
if (local_pCreateInfo.info.pShaderInfo) {
auto* shader_info = reinterpret_cast<vku::safe_VkIndirectExecutionSetShaderInfoEXT*>(
const_cast<VkIndirectExecutionSetShaderInfoEXT*>(local_pCreateInfo.info.pShaderInfo));
auto* shader_info = (vku::safe_VkIndirectExecutionSetShaderInfoEXT*)local_pCreateInfo.info.pShaderInfo;
for (uint32_t index0 = 0; index0 < shader_info->shaderCount; ++index0) {
if (shader_info->pSetLayoutInfos) {
const auto& set_layout = shader_info->pSetLayoutInfos[index0];
Expand Down
3 changes: 3 additions & 0 deletions layers/gpu_dump/gpu_dump_device_generated_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ void CommandBufferSubState::DumpDeviceGeneratedCommands(const VkGeneratedCommand
return; // Invalid handle, will be caught by object lifetime validation
}
const auto indirect_execution_set = dev_data.Get<vvl::IndirectExecutionSet>(info.indirectExecutionSet);
if (info.indirectExecutionSet != VK_NULL_HANDLE && !indirect_execution_set) {
return; // Invalid handle, will be caught by object lifetime validation
}

std::ostringstream ss;
ss << "[Dump Device Generated Commands] (" << dev_data.FormatHandle(base.Handle()) << ", "
Expand Down