[PR #2072] d3d12: name compute modules for selective GPU validation #2078

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

📋 Pull Request Information

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

Base: main ← Head: fix/compute-shader-debug-names


📝 Commits (2)

📊 Changes

4 files changed (+89 additions, -0 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+9 -0)
📝 runtime/shims/d3d12_vulkan_device.cpp (+9 -0)
📝 runtime/test/d3d12_compute_test.cpp (+1 -0)
➕ scripts/check_compute_gpuav_selection.py (+70 -0)

📄 Description

Claim: RT-COMPUTE-GPUAV-SELECTION — https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172186259

Selective GPU-assisted validation matches shader-module debug names. The layer's compute modules had no such names, so selecting a library entry instrumented nothing. Name each compute module with its shader-library entry before pipeline creation, when VK_EXT_debug_utils and its naming entry point are available. Shader code and execution are unchanged.

The compute fixture now forwards its enabled debug-utils capability. An opt-in standard-library Python check runs that synthetic fixture with a matching and an unmatched GPUAV selector, verifies modified before/after SPIR-V dumps, and requires the existing compute readback checks to pass. Its caches and dumps stay in temporary directories. This adds no default CTest dependency on GPUAV.

Validation on Windows 11, Intel UHD Graphics (i5-1334U), driver 32.0.101.6314, Vulkan SDK 1.4.363.1, MSVC RelWithDebInfo, based on main 75a41f5dc:

  • Built d3d12_compute_test from this contribution tree.
  • New opt-in check: matching cs_user_data selects 4 module instances; unmatched name selects 0; all compute readback checks pass.
  • Negative control before the naming hunk, with the same fixture debug-utils forwarding: compute checks pass but the matching selector produces 0 instrumented dumps.
  • d3d12_compute passes with ordinary Vulkan validation and with validation disabled.
  • Separately, 15 targeted runtime/CPU/GPU tests pass in the existing private integration tree. This is additional integration coverage, not an isolated-main full-suite result.
  • git diff --check and check_no_game_data.py pass for all four changed files.

No title files or shader content are included. No playability claim. Full CTest was not run.

GPUs tested: Intel UHD Graphics, 32.0.101.6314, Windows 11.
AI-assisted: OpenAI Codex.


🔄 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/2072 **Author:** [@GGandCo](https://github.com/GGandCo) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/compute-shader-debug-names` --- ### 📝 Commits (2) - [`d046c9e`](https://github.com/ubiquitarianism/leonida/commit/d046c9ee8dc7a033bc57f64c397058500487278a) d3d12: name compute modules for selective GPU validation - [`e27fcb3`](https://github.com/ubiquitarianism/leonida/commit/e27fcb3854a114883bf9307d36e993cfb07b16b2) Merge commit 'a73a57e1339be072baf5522351c8ec7f1482b56b' of https://github.com/ubiquitarianism/leonida into fix/compute-shader-debug-names ### 📊 Changes **4 files changed** (+89 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+9 -0) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+9 -0) 📝 `runtime/test/d3d12_compute_test.cpp` (+1 -0) ➕ `scripts/check_compute_gpuav_selection.py` (+70 -0) </details> ### 📄 Description Claim: RT-COMPUTE-GPUAV-SELECTION — https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172186259 Selective GPU-assisted validation matches shader-module debug names. The layer's compute modules had no such names, so selecting a library entry instrumented nothing. Name each compute module with its shader-library entry before pipeline creation, when VK_EXT_debug_utils and its naming entry point are available. Shader code and execution are unchanged. The compute fixture now forwards its enabled debug-utils capability. An opt-in standard-library Python check runs that synthetic fixture with a matching and an unmatched GPUAV selector, verifies modified before/after SPIR-V dumps, and requires the existing compute readback checks to pass. Its caches and dumps stay in temporary directories. This adds no default CTest dependency on GPUAV. Validation on Windows 11, Intel UHD Graphics (i5-1334U), driver 32.0.101.6314, Vulkan SDK 1.4.363.1, MSVC RelWithDebInfo, based on main 75a41f5dc: - Built d3d12_compute_test from this contribution tree. - New opt-in check: matching cs_user_data selects 4 module instances; unmatched name selects 0; all compute readback checks pass. - Negative control before the naming hunk, with the same fixture debug-utils forwarding: compute checks pass but the matching selector produces 0 instrumented dumps. - d3d12_compute passes with ordinary Vulkan validation and with validation disabled. - Separately, 15 targeted runtime/CPU/GPU tests pass in the existing private integration tree. This is additional integration coverage, not an isolated-main full-suite result. - git diff --check and check_no_game_data.py pass for all four changed files. No title files or shader content are included. No playability claim. Full CTest was not run. GPUs tested: Intel UHD Graphics, 32.0.101.6314, Windows 11. AI-assisted: OpenAI Codex. --- <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#2078
No description provided.