google / google/gapid

Vulkan Command Tree Grouping Returns Wrong Command paths.

Open
#1,214 10 comments 0 reactions 0 assignees View on GitHub
bug GAPIS triaged Vulkan
Dominant language
Go
Stars
2.2k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

Given a trace with the following tree:
```
- Frame 1 (0-363)
- Frame 2 (364-372)
- Draw 1 (364-371)
- 364: vkWaitForFences
- ...
- 371: vkQueueSubmit
- [371 0]
- [371 0 0]
- RenderPass
- 371.0.0.0: vkCmdBeginRenderPass
- ...
- 371.0.0.6: vkCmdEndRenderPass
- vkQueuePresnetKHR
```

When fetching the nodes from the server the following values are returned:

The node at `[1, 0, 7]` (vkQueueSubmit) is for command: `[371]` - Correct.
The node at `[1, 0, 7, 0]` is for command: `[371, 0, 0]` - Should be `[371, 0]`.
The node at `[1, 0, 7, 0, 0]` is for command `[371, 0, 0, 0]` - Should be `[371, 0, 0]`.
The node at `[1, 0, 7, 0, 0, 0]` (RenderPass) is for commands `[0]-[6]`- Should be `[371, 0, 0]`.
The nodes at `[1, 0, 7, 0, 0, 0, x]` are for commands `[371, 0, 0, x]`, which is correct again.

This results in strange behavior, especially when selecting the RenderPass node.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.