d3d12: compute pipelines carry their shader's name through VK_EXT_debug_utils (RT-NAME-COMPUTE-PIPELINES) #1909

Open
github-bot wants to merge 1 commit from github-bot/gh-1909 into main AGit
Owner

@⁠HasiKe on GitHub · 2026-11-25 15:32 UTC · original
HasiKe:rt-name-compute-pipelines → main · +15 −0 · 1 files · 1 commits · open

Item: RT-NAME-COMPUTE-PIPELINES (claimed in #1608)

What

When the instance enabled VK_EXT_debug_utils (the title device already turns it on for the debug markers whenever the loader has it), build_compute names each compute VkPipeline after its shader (library/lib_cs_NNNNN, ..._Wrapped) through vkSetDebugUtilsObjectNameEXT. Without the extension set_object_name stays null and nothing changes.

Why

On a device loss, VK_LAYER_LUNARG_crash_diagnostic prints the pipeline of the last started dispatch only as a bare handle, so matching it to a shader took a local handle log and a rebuild. With the name, the dump reads handle: 0x...[library/lib_cs_01144] directly. RenderDoc shows the same names.

Tested

  • RTX 2070 SUPER, NVIDIA 616.56, Windows 11, main 71a769d7d plus this change, retail run with LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096 LEONIDA_TITLE_WATCHDOG=0 and the crash-diagnostic layer: the device-loss dump names the dispatch in flight as library/lib_cs_01144 (128x64x1 groups), the "crash B" that #1849 is about.
  • gta6rt builds (RelWithDebInfo, MSVC). No new test: the call has no result to check beyond the layer's dump.

AI-assisted (Claude Code). No game data.

🤖 Generated with Claude Code

**@⁠HasiKe** on GitHub · 2026-11-25 15:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1909) `HasiKe:rt-name-compute-pipelines` → `main` · +15 −0 · 1 files · 1 commits · open Item: RT-NAME-COMPUTE-PIPELINES (claimed in https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ## What When the instance enabled `VK_EXT_debug_utils` (the title device already turns it on for the debug markers whenever the loader has it), `build_compute` names each compute `VkPipeline` after its shader (`library/lib_cs_NNNNN`, `..._Wrapped`) through `vkSetDebugUtilsObjectNameEXT`. Without the extension `set_object_name` stays null and nothing changes. ## Why On a device loss, `VK_LAYER_LUNARG_crash_diagnostic` prints the pipeline of the last started dispatch only as a bare handle, so matching it to a shader took a local handle log and a rebuild. With the name, the dump reads `handle: 0x...[library/lib_cs_01144]` directly. RenderDoc shows the same names. ## Tested - RTX 2070 SUPER, NVIDIA 616.56, Windows 11, `main` 71a769d7d plus this change, retail run with `LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096 LEONIDA_TITLE_WATCHDOG=0` and the crash-diagnostic layer: the device-loss dump names the dispatch in flight as `library/lib_cs_01144` (128x64x1 groups), the "crash B" that #1849 is about. - `gta6rt` builds (RelWithDebInfo, MSVC). No new test: the call has no result to check beyond the layer's dump. AI-assisted (Claude Code). No game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
When the instance enabled VK_EXT_debug_utils, each compute VkPipeline gets its
shader's name with vkSetDebugUtilsObjectNameEXT. A crash-diagnostic dump or a
RenderDoc capture then names the pipeline of the dispatch that faulted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:10:51 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/shims/d3d12_vulkan_device.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1909/head:github-bot/gh-1909'
git switch 'github-bot/gh-1909'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1909'
git switch 'github-bot/gh-1909'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1909'
git switch 'github-bot/gh-1909'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1909'
git switch 'main'
git merge --squash 'github-bot/gh-1909'
git switch 'main'
git merge --ff-only 'github-bot/gh-1909'
git switch 'main'
git merge 'github-bot/gh-1909'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.