Skip to content

dump: Improve DGC - #13722

Merged
spencer-lunarg merged 1 commit into
KhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-dgc-dump-SKIP-CI
Nov 17, 2026
Merged

spencer-lunarg merged 1 commit into
KhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-dgc-dump-SKIP-CI

Conversation

@spencer-lunarg

Copy link
Copy Markdown
Contributor
  1. (most important) pulls in fixes to integrate safe: Make VkIndirectExecutionSetCreateInfoEXT safe Vulkan-Utility-Libraries#429

  2. Cleans up DGC GPU-Dump to match the style Descriptor Heap/Buffer is like more

From

vkCmdExecuteGeneratedCommandsEXT(): [Dump Device Generated Commands]
maxDrawCount = 0, maxSequenceCount = 1
Preprocess at [0xffffeffeffe00000, 0xffffeffeffe00380)
    - VkBuffer 0xf000000000f, size: 896 bytes, range: [0xffffeffeffe00000, 0xffffeffeffe00380)
Indirect buffer at [0xffffeffefff00000, 0xffffeffefff00010)
    - VkBuffer 0xd000000000d, size: 16 bytes, range: [0xffffeffefff00000, 0xffffeffefff00010)
Tokens:
 - Token [0] [EXECUTION_SET] pipeline, stage VK_SHADER_STAGE_COMPUTE_BIT (offset 0)
 - Token [1] [DISPATCH] VkDispatchIndirectCommand (offset 4)

To

vkCmdExecuteGeneratedCommandsEXT(): [Dump Device Generated Commands] (VkCommandBuffer 0x5e0ce4251eb0, VkIndirectCommandsLayoutEXT 0x40000000004, VkIndirectExecutionSetEXT 0xc000000000c)
- shaderStages = VK_SHADER_STAGE_COMPUTE_BIT (VK_PIPELINE_BIND_POINT_COMPUTE)
- maxSequenceCount = 1, maxDrawCount = 0
- sequenceCountAddress = 0 (maxSequenceCount is used as the sequence count)
- indirectAddress at [0xffffeffefff00000, 0xffffeffefff00010) (indirectAddressSize = 16)
    - VkBuffer 0xd000000000d, size: 16 bytes, range: [0xffffeffefff00000, 0xffffeffefff00010)
- preprocessAddress at [0xffffeffeffe00000, 0xffffeffeffe00380) (preprocessSize = 896)
    - VkBuffer 0xf000000000f, size: 896 bytes, range: [0xffffeffeffe00000, 0xffffeffeffe00380)
- VkIndirectExecutionSetEXT 0xc000000000c contains pipelines (maxPipelineCount = 1)
- VkIndirectCommandsLayoutEXT 0x40000000004 indirectStride = 16
  - Token [0] [EXECUTION_SET] pipeline, stage VK_SHADER_STAGE_COMPUTE_BIT (offset 0, size 4)
  - Token [1] [DISPATCH] VkDispatchIndirectCommand (offset 4, size 12)

@spencer-lunarg
spencer-lunarg requested a review from a team as a code owner November 17, 2026 15:14
@spencer-lunarg
spencer-lunarg merged commit 3a64817 into KhronosGroup:main Nov 17, 2026
@spencer-lunarg
spencer-lunarg deleted the spencer-lunarg-dgc-dump-SKIP-CI branch November 17, 2026 16:07
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*>(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the cast to a vku::safe_xxx struct? The const_cast is not enough?

if (!indirect_commands_layout) {
return; // Invalid handle, will be caught by object lifetime validation
}
const auto indirect_execution_set = dev_data.Get<vvl::IndirectExecutionSet>(info.indirectExecutionSet);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could fail as above I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants