d3d12: name compute modules for selective GPU validation #2072

Open
github-bot wants to merge 2 commits from github-bot/gh-2072 into main AGit
Owner

@⁠GGandCo on GitHub · 2026-11-25 19:33 UTC · original
GGandCo:fix/compute-shader-debug-names → main · +89 −0 · 4 files · 2 commits · open

Claim: RT-COMPUTE-GPUAV-SELECTION — #1608

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.

**@⁠GGandCo** on GitHub · 2026-11-25 19:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2072) `GGandCo:fix/compute-shader-debug-names` → `main` · +89 −0 · 4 files · 2 commits · open Claim: RT-COMPUTE-GPUAV-SELECTION — https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:16:52 +00:00
Author
Owner

@⁠GGandCo on GitHub · 2026-11-26 07:09 UTC · original

Updated onto main a73a57e133 in e27fcb385. The conflict came from the shared build_compute_pipeline refactor: module naming now happens immediately after vkCreateShaderModule in that shared function, preserving the new helper/journal/driver-turn paths.

Rebuilt d3d12_compute_test from this contribution tree on Windows 11, Intel UHD Graphics 32.0.101.6314, MSVC. The opt-in GPUAV selection check passes again: matching selector instruments 4 module instances, unmatched selector 0, and compute readbacks pass. git diff --check and check_no_game_data.py pass for the four PR files.

I also read both failed checks on the previous head. linux-gpu-tools failed to build vk_null_descriptor_test when LEONIDA_TEST_NULL_DESCRIPTORS_SPV was undefined (existing fix #2055). Windows failed vk_xdxr_postbuild_readback because the runner's no-device exit 77 was counted as failure (existing fix #1418). Those paths are outside this PR; this update does not claim those CI failures are fixed. No full-suite result claimed.

AI-assisted: OpenAI Codex.

**@⁠GGandCo** on GitHub · 2026-11-26 07:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2072#issuecomment-7185152827) Updated onto main a73a57e1339be072baf5522351c8ec7f1482b56b in e27fcb385. The conflict came from the shared build_compute_pipeline refactor: module naming now happens immediately after vkCreateShaderModule in that shared function, preserving the new helper/journal/driver-turn paths. Rebuilt d3d12_compute_test from this contribution tree on Windows 11, Intel UHD Graphics 32.0.101.6314, MSVC. The opt-in GPUAV selection check passes again: matching selector instruments 4 module instances, unmatched selector 0, and compute readbacks pass. git diff --check and check_no_game_data.py pass for the four PR files. I also read both failed checks on the previous head. linux-gpu-tools failed to build vk_null_descriptor_test when LEONIDA_TEST_NULL_DESCRIPTORS_SPV was undefined (existing fix #2055). Windows failed vk_xdxr_postbuild_readback because the runner's no-device exit 77 was counted as failure (existing fix #1418). Those paths are outside this PR; this update does not claim those CI failures are fixed. No full-suite result claimed. AI-assisted: OpenAI Codex.
Author
Owner

@⁠ammonium231 on GitHub · 2026-11-26 09:26 UTC · original

RTX 3090 / 621.40, this PR merged onto current main a73a57e13: check_compute_gpuav_selection.py passes (matching cs_user_data selects 4 modules, unmatched name selects 0, compute readback checks pass). On unpatched main the same script reports 0 instrumented dumps for the matching selector. d3d12_compute with ordinary validation passes on both, 0 VUID.

**@⁠ammonium231** on GitHub · 2026-11-26 09:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2072#issuecomment-7187986804) RTX 3090 / 621.40, this PR merged onto current main a73a57e13: check_compute_gpuav_selection.py passes (matching cs_user_data selects 4 modules, unmatched name selects 0, compute readback checks pass). On unpatched main the same script reports 0 instrumented dumps for the matching selector. d3d12_compute with ordinary validation passes on both, 0 VUID.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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