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

Open
opened 2026-11-26 21:19:24 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1909
Author: @HasiKe
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: rt-name-compute-pipelines


📝 Commits (1)

  • 22cc6a9 RT-NAME-COMPUTE-PIPELINES: name compute pipelines through VK_EXT_debug_utils

📊 Changes

1 file changed (+15 additions, -0 deletions)

View changed files

📝 runtime/shims/d3d12_vulkan_device.cpp (+15 -0)

📄 Description

Item: RT-NAME-COMPUTE-PIPELINES (claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166956386)

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1909 **Author:** [@HasiKe](https://github.com/HasiKe) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `rt-name-compute-pipelines` --- ### 📝 Commits (1) - [`22cc6a9`](https://github.com/ubiquitarianism/leonida/commit/22cc6a9922b8272c9630cec4357119a367d19538) RT-NAME-COMPUTE-PIPELINES: name compute pipelines through VK_EXT_debug_utils ### 📊 Changes **1 file changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+15 -0) </details> ### 📄 Description Item: RT-NAME-COMPUTE-PIPELINES (claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166956386) ## 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1916
No description provided.