d3d12_skip_compute_test: add the GPU regression and skip on 128-byte devices #1419

Closed
whoalin1 wants to merge 4 commits from upstream-pr/1419 into main
whoalin1 commented 2026-11-24 23:48:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:48:27Z.


LEONIDA_SKIP_COMPUTE is already implemented in main, but its GPU regression test was never merged with it. This PR adds that test and keeps it honest on 128-byte push-constant devices.

What

  • Adds d3d12_skip_compute_test, Moriz82's synthetic regression test for the diagnostic already documented in main: two counting compute programs exercise unset, one-name and all modes, including direct and indirect dispatches.
  • Registers the three cases in CTest with SKIP_RETURN_CODE 77.
  • On a device whose maxPushConstantsSize is below the test's 144-byte ShaderUserData block (128, the Vulkan minimum — e.g. AMD Radeon iGPUs), checks device_push_constants_need_fallback() and returns 77 instead of failing with E_NOTIMPL. This is the same guard already used by d3d12_msaa_draw_test, d3d12_set0_compute_test and d3d12_fspx_compute_test.

This branch was rebased onto current main; the stale duplicate documentation paragraph and the obsolete dependency on closed #1341 were removed. No game data.

Validation

  • Moriz82's original evidence: cross-built gta6rt and d3d12_skip_compute_test with clang-cl and ran the test under Wine 11.22 on an RTX 4070. Unset: both programs run and nothing is logged. absent,drop: only the named program is dropped. all: both are dropped.
  • Refreshed local evidence on f177f7a03 (Windows 11, MSVC): build succeeds; native NVIDIA RTX 4070 SUPER passes all three ctest entries; AMD Radeon iGPU with validation on and a 128-byte push-constant limit honestly skips all three through return code 77 because the pipelines need 144 bytes. The AMD run directly exercises the new guard.

AI-assisted.

Claimed in the coordination issue as: TEST-SKIP-COMPUTE-GPU-REGRESSION (claim).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482321069 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-24T23:48:27Z. --- `LEONIDA_SKIP_COMPUTE` is already implemented in `main`, but its GPU regression test was never merged with it. This PR adds that test and keeps it honest on 128-byte push-constant devices. ## What - Adds `d3d12_skip_compute_test`, Moriz82's synthetic regression test for the diagnostic already documented in `main`: two counting compute programs exercise unset, one-name and `all` modes, including direct and indirect dispatches. - Registers the three cases in CTest with `SKIP_RETURN_CODE 77`. - On a device whose `maxPushConstantsSize` is below the test's 144-byte `ShaderUserData` block (128, the Vulkan minimum — e.g. AMD Radeon iGPUs), checks `device_push_constants_need_fallback()` and returns 77 instead of failing with `E_NOTIMPL`. This is the same guard already used by `d3d12_msaa_draw_test`, `d3d12_set0_compute_test` and `d3d12_fspx_compute_test`. This branch was rebased onto current `main`; the stale duplicate documentation paragraph and the obsolete dependency on closed #1341 were removed. No game data. ## Validation - Moriz82's original evidence: cross-built `gta6rt` and `d3d12_skip_compute_test` with clang-cl and ran the test under Wine 11.22 on an RTX 4070. Unset: both programs run and nothing is logged. `absent,drop`: only the named program is dropped. `all`: both are dropped. - Refreshed local evidence on `f177f7a03` (Windows 11, MSVC): build succeeds; native NVIDIA RTX 4070 SUPER passes all three ctest entries; AMD Radeon iGPU with validation on and a 128-byte push-constant limit honestly skips all three through return code 77 because the pipelines need 144 bytes. The AMD run directly exercises the new guard. AI-assisted. Claimed in the coordination issue as: TEST-SKIP-COMPUTE-GPU-REGRESSION ([claim](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7259710924)).
whoalin1 commented 2026-11-25 04:56:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T04:56:05Z.


Rebased onto #1341's current head (4c54b8044) — the branch now contains only this PR's own commit on top of it, so the earlier conflict is resolved.

One thing worth flagging for reviewers: #1341's updated head already includes the device_push_constants_need_fallback → return 77 guard in d3d12_skip_compute_test.cpp itself. After the rebase this PR's remaining delta is only the explanatory comment and a clearer skip message (+4/−1). The functional fix therefore lands with #1341; this PR is now just polish on top of it. Maintainer's call whether to keep it for the comment or close once #1341 merges — happy either way.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7153296041 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1419#issuecomment-7153296041). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T04:56:05Z. --- Rebased onto #1341's current head (`4c54b8044`) — the branch now contains only this PR's own commit on top of it, so the earlier conflict is resolved. One thing worth flagging for reviewers: #1341's updated head already includes the `device_push_constants_need_fallback → return 77` guard in `d3d12_skip_compute_test.cpp` itself. After the rebase this PR's remaining delta is only the explanatory comment and a clearer skip message (+4/−1). The functional fix therefore lands with #1341; this PR is now just polish on top of it. Maintainer's call whether to keep it for the comment or close once #1341 merges — happy either way.
whoalin1 commented 2026-11-25 20:16:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T20:16:47Z.


Rebased cleanly onto current main (db1a22d29) as 324ca00cf to refresh the stale CI baseline; no conflicts. The branch is unchanged: the RT-SKIP-COMPUTE-DIAGNOSTIC named-program skip plus the push-constant-limit guard for d3d12_skip_compute_test. AI-assisted with Devin.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7173434664 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1419#issuecomment-7173434664). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T20:16:47Z. --- Rebased cleanly onto current main (`db1a22d29`) as `324ca00cf` to refresh the stale CI baseline; no conflicts. The branch is unchanged: the RT-SKIP-COMPUTE-DIAGNOSTIC named-program skip plus the push-constant-limit guard for `d3d12_skip_compute_test`. AI-assisted with Devin.
whoalin1 commented 2026-11-26 04:31:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T04:31:59Z.


Maintenance update: rebased onto current main and removed the stale duplicate documentation paragraph plus the obsolete dependency on closed #1341. The implementation itself is already in main; this PR is now exactly the missing synthetic GPU regression test plus the 128-byte push-constant skip guard. Head f177f7a03.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7182677190 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1419#issuecomment-7182677190). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T04:31:59Z. --- Maintenance update: rebased onto current main and removed the stale duplicate documentation paragraph plus the obsolete dependency on closed #1341. The implementation itself is already in main; this PR is now exactly the missing synthetic GPU regression test plus the 128-byte push-constant skip guard. Head f177f7a03.
whoalin1 commented 2026-11-26 05:03:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T05:03:33Z.


Refreshed local validation on f177f7a03 (Windows 11, MSVC, no game data):

  • Build: cmake configure and d3d12_skip_compute_test target succeeded.
  • NVIDIA RTX 4070 SUPER, native Windows: d3d12_skip_compute_unset/one/all all PASS (3/3), with the expected unset/one/all dispatch counts.
  • AMD Radeon iGPU (128-byte maxPushConstantsSize), validation on with LEONIDA_PC_TAIL_UBO=1: all three entries honestly SKIP through return code 77: the pipelines need 144 push-constant bytes and this GPU has 128. This directly exercises the new guard; ctest reports 100% passed with the three tests skipped.

The implementation itself was already in main; this validates the carried synthetic regression and the 128-byte-device behavior.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7183142680 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1419#issuecomment-7183142680). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T05:03:33Z. --- Refreshed local validation on f177f7a03 (Windows 11, MSVC, no game data): - Build: cmake configure and d3d12_skip_compute_test target succeeded. - NVIDIA RTX 4070 SUPER, native Windows: d3d12_skip_compute_unset/one/all all PASS (3/3), with the expected unset/one/all dispatch counts. - AMD Radeon iGPU (128-byte maxPushConstantsSize), validation on with LEONIDA_PC_TAIL_UBO=1: all three entries honestly SKIP through return code 77: the pipelines need 144 push-constant bytes and this GPU has 128. This directly exercises the new guard; ctest reports 100% passed with the three tests skipped. The implementation itself was already in main; this validates the carried synthetic regression and the 128-byte-device behavior.
zmasi commented 2026-11-28 22:40:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T22:40:28Z.


Native Windows 11 + MSVC 19.44 + RTX 3090 Vulkan Verification (f177f7a03b + origin/main adfb3821a2)

Verdict: PASS on GPU + Khronos Validation (0 functional blockers; 1 CMake parallel-build dependency note & 1 minor /W4 nit below)

Environment & Merge Check

  • Host: Windows 11 (10.0.26200), MSVC 19.44.35228 (x64), NVIDIA GeForce RTX 3090 (Vulkan subgroup 32..32, ReBAR enabled), Khronos VK_LAYER_KHRONOS_validation 1.4.363.1 (LEONIDA_VK_VALIDATION=1, VK_VALIDATE_SYNC=1)
  • Merge hygiene: Clean merge onto origin/main (adfb3821a2, git merge-tree --write-tree rc=0) and python -I tests/test_ci_registration.py OK.

Red -> Green GPU Results

  • Red: d3d12_skip_compute_test and its 3 CTest cases (d3d12_skip_compute_unset, d3d12_skip_compute_one, d3d12_skip_compute_all) are absent on origin/main.
  • Green (PR #1419 + origin/main on NVIDIA GeForce RTX 3090, both default and with LEONIDA_VK_VALIDATION=1 + VK_VALIDATE_SYNC=1):
    1. d3d12_skip_compute_test.exe (d3d12_skip_compute_unset): PASS (rc=0, 0.52 s, 0 VUID- errors) — 0 log line(s), count_keep 103/1004 (expected 103/1004), count_drop 109/1016 (expected 109/1016).
    2. d3d12_skip_compute_test.exe --skip-one (d3d12_skip_compute_one, LEONIDA_SKIP_COMPUTE="absent,drop"): PASS (rc=0, 0.52 s, 0 VUID- errors) — 1 log line(s), count_keep 103/1004 (expected 103/1004), count_drop 100/1000 (expected 100/1000).
    3. d3d12_skip_compute_test.exe --skip-all (d3d12_skip_compute_all, LEONIDA_SKIP_COMPUTE="all"): PASS (rc=0, 0.50 s, 0 VUID- errors) — 2 log line(s), count_keep 100/1000 (expected 100/1000), count_drop 100/1000 (expected 100/1000).

Diff Audit Notes

  1. CMake glslangValidator parallel-build race against origin/main (runtime/CMakeLists.txt): Since commit 86554c879 on main, ${_indirect_count_spv} is owned by add_custom_target(gta6rt_indirect_count_shader DEPENDS ${_indirect_count_spv}), and both d3d12_indirect_dispatch_count_test and d3d12_compute_journal_test omit ${_indirect_count_spv} from add_executable(...) in favor of add_dependencies(<target> gta6rt_indirect_count_shader) (as noted in the comment directly above: "naming its output here too would give Make a second rule for the same file, and the two glslangValidator runs raced"). Dropping ${_indirect_count_spv} from add_executable(d3d12_skip_compute_test ...) and adding add_dependencies(d3d12_skip_compute_test gta6rt_indirect_count_shader) keeps parallel Makefile/MSBuild builds race-free.
  2. Minor MSVC /W4 nit (runtime/test/d3d12_skip_compute_test.cpp:54): std::fopen triggers warning C4996 under /W4 unless _CRT_SECURE_NO_WARNINGS is added to target_compile_definitions(d3d12_skip_compute_test PRIVATE ...) or std::ifstream is used.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246901275 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7246901275). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T22:40:28Z. --- ### Native Windows 11 + MSVC `19.44` + RTX 3090 Vulkan Verification (`f177f7a03b` + `origin/main` `adfb3821a2`) **Verdict**: **PASS** on GPU + Khronos Validation (0 functional blockers; 1 CMake parallel-build dependency note & 1 minor `/W4` nit below) #### Environment & Merge Check - **Host**: Windows 11 (`10.0.26200`), MSVC `19.44.35228` (`x64`), **NVIDIA GeForce RTX 3090** (Vulkan subgroup `32..32`, ReBAR enabled), Khronos `VK_LAYER_KHRONOS_validation` `1.4.363.1` (`LEONIDA_VK_VALIDATION=1`, `VK_VALIDATE_SYNC=1`) - **Merge hygiene**: Clean merge onto `origin/main` (`adfb3821a2`, `git merge-tree --write-tree` `rc=0`) and `python -I tests/test_ci_registration.py` `OK`. #### Red -> Green GPU Results - **Red**: `d3d12_skip_compute_test` and its 3 CTest cases (`d3d12_skip_compute_unset`, `d3d12_skip_compute_one`, `d3d12_skip_compute_all`) are absent on `origin/main`. - **Green** (`PR #1419 + origin/main` on **NVIDIA GeForce RTX 3090**, both default and with `LEONIDA_VK_VALIDATION=1` + `VK_VALIDATE_SYNC=1`): 1. `d3d12_skip_compute_test.exe` (`d3d12_skip_compute_unset`): **PASS** (`rc=0`, `0.52 s`, `0` `VUID-` errors) — `0 log line(s), count_keep 103/1004 (expected 103/1004), count_drop 109/1016 (expected 109/1016)`. 2. `d3d12_skip_compute_test.exe --skip-one` (`d3d12_skip_compute_one`, `LEONIDA_SKIP_COMPUTE="absent,drop"`): **PASS** (`rc=0`, `0.52 s`, `0` `VUID-` errors) — `1 log line(s), count_keep 103/1004 (expected 103/1004), count_drop 100/1000 (expected 100/1000)`. 3. `d3d12_skip_compute_test.exe --skip-all` (`d3d12_skip_compute_all`, `LEONIDA_SKIP_COMPUTE="all"`): **PASS** (`rc=0`, `0.50 s`, `0` `VUID-` errors) — `2 log line(s), count_keep 100/1000 (expected 100/1000), count_drop 100/1000 (expected 100/1000)`. #### Diff Audit Notes 1. **CMake `glslangValidator` parallel-build race against `origin/main` (`runtime/CMakeLists.txt`)**: Since commit `86554c879` on `main`, `${_indirect_count_spv}` is owned by `add_custom_target(gta6rt_indirect_count_shader DEPENDS ${_indirect_count_spv})`, and both `d3d12_indirect_dispatch_count_test` and `d3d12_compute_journal_test` omit `${_indirect_count_spv}` from `add_executable(...)` in favor of `add_dependencies(<target> gta6rt_indirect_count_shader)` (as noted in the comment directly above: *"naming its output here too would give Make a second rule for the same file, and the two glslangValidator runs raced"*). Dropping `${_indirect_count_spv}` from `add_executable(d3d12_skip_compute_test ...)` and adding `add_dependencies(d3d12_skip_compute_test gta6rt_indirect_count_shader)` keeps parallel Makefile/MSBuild builds race-free. 2. **Minor MSVC `/W4` nit (`runtime/test/d3d12_skip_compute_test.cpp:54`)**: `std::fopen` triggers `warning C4996` under `/W4` unless `_CRT_SECURE_NO_WARNINGS` is added to `target_compile_definitions(d3d12_skip_compute_test PRIVATE ...)` or `std::ifstream` is used. AI-assisted.
OreoFR commented 2026-11-29 00:15:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T00:15:16Z.


Verified by OreoFR

  • Base: main a8465211f + PR head f177f7a03 (merged with --no-ff, no conflict)
  • Test: ctest -R ^d3d12_skip_compute_(unset|one|all)$
  • Red on main: no red possible: the PR only adds the GPU test, for the LEONIDA_SKIP_COMPUTE path already on main
  • Green with the PR: the three cases pass on the GPU (no 128-byte skip on this GPU); full ctest on the package: 488 tests, only the known main failure xbox_present plus four GPU timeouts that all passed on rerun
  • Verdict: NO RED (test-only; the new test passes on main's code)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11
  • Note: shares runtime/CMakeLists.txt with the open #2566; a rebase may be needed if #2566 lands first.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247984024 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7247984024). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T00:15:16Z. --- **Verified by OreoFR** - Base: main `a8465211f` + PR head `f177f7a03` (merged with --no-ff, no conflict) - Test: `ctest -R ^d3d12_skip_compute_(unset|one|all)$` - Red on main: no red possible: the PR only adds the GPU test, for the LEONIDA_SKIP_COMPUTE path already on main - Green with the PR: the three cases pass on the GPU (no 128-byte skip on this GPU); full ctest on the package: 488 tests, only the known main failure `xbox_present` plus four GPU timeouts that all passed on rerun - Verdict: NO RED (test-only; the new test passes on main's code) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 - Note: shares `runtime/CMakeLists.txt` with the open #2566; a rebase may be needed if #2566 lands first. AI-assisted (Claude Code, Claude Opus 5.5).
TheGeogeo commented 2026-11-29 14:18:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:47Z.


Ready for testing: merges cleanly with main 3535eb5c4. Not in main yet: git cherry finds 2 commit(s) not there, and 1 of the 228 lines it adds are already present. No duplicate found: it carries no claim ID, and no other open pull request has the same title.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257205252 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7257205252). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:18:47Z. --- Ready for testing: merges cleanly with `main` `3535eb5c4`. Not in `main` yet: `git cherry` finds 2 commit(s) not there, and 1 of the 228 lines it adds are already present. No duplicate found: it carries no claim ID, and no other open pull request has the same title. AI-assisted (Claude Code).
enlight3d commented 2026-11-29 15:29:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T15:29:30Z.


RUN comment, PR #1419 (d3d12_skip_compute_test: GPU regression for LEONIDA_SKIP_COMPUTE)

Heads: PR f177f7a03, main 91bab934d (local merge of the PR into it, not pushed).
Kind: runtime C++ test only (runtime/test/d3d12_skip_compute_test.cpp + 12 lines in runtime/CMakeLists.txt). No change to runtime sources. The test runs on the GPU as its own executable (no gta6rt run, no game).

Build (as scripts/build_runtime.ps1: vcvars64, VS cmake + ninja, -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON, SDL3 static through SDL3_DIR):
cmake --build runtime/build -j 8 --target d3d12_skip_compute_test gta6rt
Run:
ctest -R "^d3d12_skip_compute_(unset|one|all)$"

RED: the PR has no non-test change to revert (the feature is already in main), so there is no revert-red. Mutation red instead: in runtime/shims/d3d12_vulkan_device.cpp, skip_compute() made to always return false (feature off), PR test kept: d3d12_skip_compute_unset passes, d3d12_skip_compute_one and d3d12_skip_compute_all FAIL ("count_drop is skipped", "count_keep is skipped"). Mutation reverted afterwards.
GREEN at the PR head: 3 of 3 pass (unset, one, all).
GREEN merged into main: 3 of 3 pass.
Imports: gta6rt.exe built from the merge vs plain main, dumpbin /imports, DLL!symbol: 714 vs 714, 0 new, 0 removed (expected: the PR touches no runtime source).
Not covered: the "skip on 128-byte devices" path (exit 77) needs a device with maxPushConstantsSize 128; this GPU reports more, so that path was not exercised.

Machine: Windows 11 Pro, RTX 3090 24 GB, NVIDIA 621.40, MSVC 14.44 (VS 2022 Build Tools), Vulkan SDK 1.4.363.1, SDL3 3.4.20 static, cmake/ninja from VS. Build folder deleted afterwards.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258130674 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7258130674). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T15:29:30Z. --- RUN comment, PR #1419 (d3d12_skip_compute_test: GPU regression for LEONIDA_SKIP_COMPUTE) Heads: PR f177f7a03, main 91bab934d (local merge of the PR into it, not pushed). Kind: runtime C++ test only (runtime/test/d3d12_skip_compute_test.cpp + 12 lines in runtime/CMakeLists.txt). No change to runtime sources. The test runs on the GPU as its own executable (no gta6rt run, no game). Build (as scripts/build_runtime.ps1: vcvars64, VS cmake + ninja, -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON, SDL3 static through SDL3_DIR): cmake --build runtime/build -j 8 --target d3d12_skip_compute_test gta6rt Run: ctest -R "^d3d12_skip_compute_(unset|one|all)$" RED: the PR has no non-test change to revert (the feature is already in main), so there is no revert-red. Mutation red instead: in runtime/shims/d3d12_vulkan_device.cpp, skip_compute() made to always return false (feature off), PR test kept: d3d12_skip_compute_unset passes, d3d12_skip_compute_one and d3d12_skip_compute_all FAIL ("count_drop is skipped", "count_keep is skipped"). Mutation reverted afterwards. GREEN at the PR head: 3 of 3 pass (unset, one, all). GREEN merged into main: 3 of 3 pass. Imports: gta6rt.exe built from the merge vs plain main, dumpbin /imports, DLL!symbol: 714 vs 714, 0 new, 0 removed (expected: the PR touches no runtime source). Not covered: the "skip on 128-byte devices" path (exit 77) needs a device with maxPushConstantsSize 128; this GPU reports more, so that path was not exercised. Machine: Windows 11 Pro, RTX 3090 24 GB, NVIDIA 621.40, MSVC 14.44 (VS 2022 Build Tools), Vulkan SDK 1.4.363.1, SDL3 3.4.20 static, cmake/ninja from VS. Build folder deleted afterwards.
fiestorra commented 2026-11-30 09:01:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T09:01:06Z.


Independent verification on this machine (Windows 11, RTX 4090, MSVC 19.44.35226): the three tests this pull request adds cannot run - ctest lists them with no command at all - while their executable builds.

1. It applies. merge-tree clean; the commits cherry-pick onto main e236b19c6 without a conflict.

2. The executable builds:

cmake --build runtime/build-ninja --target d3d12_skip_compute_test
[2/2] Linking CXX executable d3d12_skip_compute_test.exe

3. What ctest --show-only=json-v1 contains:

d3d12_skip_compute_unset : (no command property at all)
d3d12_skip_compute_one   : (no command property at all)
d3d12_skip_compute_all   : (no command property at all)

d3d12_compute_journal    : …\d3d12_compute_journal_test.exe      <- the neighbour, in the same block, resolves

Out of 544 tests in the tree, exactly these three have no command - so this is the registration, not the branch causing a mess.

4. The registration looks like its working neighbour:

add_executable(d3d12_skip_compute_test test/d3d12_skip_compute_test.cpp ${_indirect_count_spv})
target_link_libraries(d3d12_skip_compute_test PRIVATE gta6rt_d3d12_com)
…
add_test(NAME d3d12_skip_compute_unset COMMAND d3d12_skip_compute_test)
add_test(NAME d3d12_skip_compute_one   COMMAND d3d12_skip_compute_test --skip-one)
add_test(NAME d3d12_skip_compute_all   COMMAND d3d12_skip_compute_test --skip-all)

same if(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE) block, same file, target defined above the tests. I could not see a structural difference from d3d12_compute_journal, which resolves, and I am not going to guess at one - what I can report is the observable: the target exists, builds, and three tests point at it with nothing to run.

What that costs: ctest counts them as failures (Not Run) and they never exercise the LEONIDA_SKIP_COMPUTE path they exist for - so the pull request adds a diagnostic that is red and inert.

A fix worth trying first: replace the bare target name with $<TARGET_FILE:d3d12_skip_compute_test>, which always resolves to a path at generate time.

Two other pull requests have the same shape - #1182 (vk_sparse_queue_order) and #1242 (win32_env, win32_env_override) - and main has none of these in its 541 tests, so it is not something the repository already carries.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7273632031 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7273632031). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-30T09:01:06Z. --- Independent verification on this machine (Windows 11, RTX 4090, MSVC 19.44.35226): **the three tests this pull request adds cannot run - `ctest` lists them with no command at all - while their executable builds.** **1. It applies.** `merge-tree` clean; the commits cherry-pick onto `main` `e236b19c6` without a conflict. **2. The executable builds:** ``` cmake --build runtime/build-ninja --target d3d12_skip_compute_test [2/2] Linking CXX executable d3d12_skip_compute_test.exe ``` **3. What `ctest --show-only=json-v1` contains:** ``` d3d12_skip_compute_unset : (no command property at all) d3d12_skip_compute_one : (no command property at all) d3d12_skip_compute_all : (no command property at all) d3d12_compute_journal : …\d3d12_compute_journal_test.exe <- the neighbour, in the same block, resolves ``` Out of **544** tests in the tree, **exactly these three** have no command - so this is the registration, not the branch causing a mess. **4. The registration looks like its working neighbour**: ```cmake add_executable(d3d12_skip_compute_test test/d3d12_skip_compute_test.cpp ${_indirect_count_spv}) target_link_libraries(d3d12_skip_compute_test PRIVATE gta6rt_d3d12_com) … add_test(NAME d3d12_skip_compute_unset COMMAND d3d12_skip_compute_test) add_test(NAME d3d12_skip_compute_one COMMAND d3d12_skip_compute_test --skip-one) add_test(NAME d3d12_skip_compute_all COMMAND d3d12_skip_compute_test --skip-all) ``` same `if(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE)` block, same file, target defined above the tests. **I could not see a structural difference from `d3d12_compute_journal`, which resolves**, and I am not going to guess at one - what I can report is the observable: the target exists, builds, and three tests point at it with nothing to run. **What that costs:** `ctest` counts them as failures (`Not Run`) and they never exercise the `LEONIDA_SKIP_COMPUTE` path they exist for - so the pull request adds a diagnostic that is red and inert. **A fix worth trying first:** replace the bare target name with `$<TARGET_FILE:d3d12_skip_compute_test>`, which always resolves to a path at generate time. **Two other pull requests have the same shape** - #1182 (`vk_sparse_queue_order`) and #1242 (`win32_env`, `win32_env_override`) - and `main` has **none** of these in its 541 tests, so it is not something the repository already carries. Written with an AI assistant.
whoalin1 commented 2026-11-30 09:06:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-30T09:06:42Z.


Repair pushed in ee0d637ff for the registration failure reported by fiestorra: the three d3d12_skip_compute_* tests now bind their command through $<TARGET_FILE:d3d12_skip_compute_test> instead of relying on target-name substitution. That makes the executable path explicit in the generated CTest command while keeping the existing arguments and skip-code properties unchanged. I could not rerun the Windows/RTX registration locally; validation here is the narrow CMake diff plus git diff --check.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7273755289 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7273755289). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-30T09:06:42Z. --- Repair pushed in `ee0d637ff` for the registration failure reported by `fiestorra`: the three `d3d12_skip_compute_*` tests now bind their command through `$<TARGET_FILE:d3d12_skip_compute_test>` instead of relying on target-name substitution. That makes the executable path explicit in the generated CTest command while keeping the existing arguments and skip-code properties unchanged. I could not rerun the Windows/RTX registration locally; validation here is the narrow CMake diff plus `git diff --check`.
merzleckeier commented 2026-11-30 09:09:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T09:09:59Z.


Independent CTest A/B of f177f7a03 and the registration update ee0d637ff, each merged onto main dcba958e5. CachyOS, CMake/CTest 4.4.5, Ninja, clang-cl 23.1.5 Release (x64 MSVC ABI). The only source delta between the merges is the three add_test() commands, so both configurations used the same built test executable.

  • Missing command in the direct configuration. Without an emulator, both revisions generate the same executable path. With d3d12_skip_compute_test.exe present there, all three command arrays appear in ctest --show-only=json-v1. With just that executable absent, all three disappear and d3d12_compute_journal still has its command. This reproduces the JSON symptom on this setup. The original Windows build directory was outside this check.

  • Configured Wine launcher. With -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/wine, the target-name form generates wine …/d3d12_skip_compute_test.exe [mode] for all three cases. The $<TARGET_FILE:…> form in ee0d637ff generates the bare .exe [mode], while the neighbouring journal test still gets Wine. On this host the kernel's PE handler can mask that difference by starting system Wine. A configured Wine/Proton path must be preserved explicitly if the path-expression form is kept. The original target-name form already preserves it and resolves to the same path in the direct build.

  • GPU results with the original registration. Wine 11.22, RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon 610M (RADV 26.3.1). All three CTest cases passed on each GPU. The exact pairs were keep/drop 103/1004, 109/1016 for unset, 103/1004, 100/1000 for one, and 100/1000, 100/1000 for all, with zero, one and two skip messages respectively. Both devices ran the test body. The host Khronos layer reported the same device-creation VUID for the unchanged journal control and all three cases on both GPUs (VK_EXT_external_memory_dma_buf missing VK_KHR_external_memory_fd), so this is a readback pass with a shared validation diagnostic.

AI-assisted: yes (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7273828001 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7273828001). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-30T09:09:59Z. --- Independent CTest A/B of `f177f7a03` and the registration update `ee0d637ff`, each merged onto `main` `dcba958e5`. CachyOS, CMake/CTest 4.4.5, Ninja, clang-cl 23.1.5 Release (x64 MSVC ABI). The only source delta between the merges is the three `add_test()` commands, so both configurations used the same built test executable. - **Missing command in the direct configuration.** Without an emulator, both revisions generate the same executable path. With `d3d12_skip_compute_test.exe` present there, all three `command` arrays appear in `ctest --show-only=json-v1`. With just that executable absent, all three disappear and `d3d12_compute_journal` still has its command. This reproduces the JSON symptom on this setup. The original Windows build directory was outside this check. - **Configured Wine launcher.** With `-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/wine`, the target-name form generates `wine …/d3d12_skip_compute_test.exe [mode]` for all three cases. The `$<TARGET_FILE:…>` form in `ee0d637ff` generates the bare `.exe [mode]`, while the neighbouring journal test still gets Wine. On this host the kernel's PE handler can mask that difference by starting system Wine. A configured Wine/Proton path must be preserved explicitly if the path-expression form is kept. The original target-name form already preserves it and resolves to the same path in the direct build. - **GPU results with the original registration.** Wine 11.22, RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon 610M (RADV 26.3.1). All three CTest cases passed on each GPU. The exact pairs were keep/drop `103/1004, 109/1016` for unset, `103/1004, 100/1000` for one, and `100/1000, 100/1000` for all, with zero, one and two skip messages respectively. Both devices ran the test body. The host Khronos layer reported the same device-creation VUID for the unchanged journal control and all three cases on both GPUs (`VK_EXT_external_memory_dma_buf` missing `VK_KHR_external_memory_fd`), so this is a readback pass with a shared validation diagnostic. AI-assisted: yes (Codex).
whoalin1 commented 2026-11-30 09:12:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-30T09:12:37Z.


Correction: I reverted ee0d637ff in a0595ff51. The A/B evidence shows the target-name form is required to preserve a configured CMAKE_CROSSCOMPILING_EMULATOR/Wine launcher, and the missing JSON command is reproduced by the executable being absent rather than by the registration itself. Thanks for the precise cross-check; the branch is back to the correct registration form.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7273887894 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7273887894). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-30T09:12:37Z. --- Correction: I reverted `ee0d637ff` in `a0595ff51`. The A/B evidence shows the target-name form is required to preserve a configured `CMAKE_CROSSCOMPILING_EMULATOR`/Wine launcher, and the missing JSON command is reproduced by the executable being absent rather than by the registration itself. Thanks for the precise cross-check; the branch is back to the correct registration form.
fiestorra commented 2026-11-30 11:14:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T11:14:44Z.


Correction: the three tests in this pull request do run. My earlier report of an empty command was wrong.

Measured with a freshly configured tree and a manifest regenerated from scratch:

rm runtime/build-ninja/ctest.json
cmake -S runtime -B runtime/build-ninja -G Ninja …
ctest --show-only=json-v1

d3d12_skip_compute_unset : cmdVacio=False
d3d12_skip_compute_one   : cmdVacio=False
d3d12_skip_compute_all   : cmdVacio=False

No "Not Run", no empty command. I withdraw the earlier claim - it came from a manifest generated for a different tree, which is the same class of error as reading a stale binary.

What I did not re-run: the three tests themselves after this configure (they were green in the sweep earlier, and the point of this message is the registration, not the behaviour).

Two siblings from that earlier batch, checked the same way today, came out differently: #1182 resolves (also withdrawn), #1242 still shows an empty command for both its tests (that one stands). So of the four I reported, two were mine and two are real (#1242, #2344).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7276752529 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7276752529). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-30T11:14:44Z. --- **Correction: the three tests in this pull request do run. My earlier report of an empty `command` was wrong.** **Measured with a freshly configured tree and a manifest regenerated from scratch:** ``` rm runtime/build-ninja/ctest.json cmake -S runtime -B runtime/build-ninja -G Ninja … ctest --show-only=json-v1 d3d12_skip_compute_unset : cmdVacio=False d3d12_skip_compute_one : cmdVacio=False d3d12_skip_compute_all : cmdVacio=False ``` **No "Not Run", no empty command.** **I withdraw the earlier claim** - it came from a manifest generated for a different tree, which is the same class of error as reading a stale binary. **What I did not re-run:** the three tests themselves after this configure (they were green in the sweep earlier, and the point of this message is the registration, not the behaviour). **Two siblings from that earlier batch, checked the same way today, came out differently:** **#1182 resolves** (also withdrawn), **#1242 still shows an empty command** for both its tests (that one stands). **So of the four I reported, two were mine and two are real** (#1242, #2344). Written with an AI assistant.
whoalin1 commented 2026-11-30 22:29:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-30T22:29:37Z.


Rebased onto current main as e5b9df0e9 to refresh the stale CI baseline; the branch reapplied cleanly with no conflicts. Validation: CMake configure/generate passes and git diff --check is clean. The Linux VM still lacks Vulkan/D3D12 headers, so the GPU-side regression remains covered by the prior Windows validation rather than locally rerun.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7293919339 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7293919339). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-30T22:29:37Z. --- Rebased onto current `main` as `e5b9df0e9` to refresh the stale CI baseline; the branch reapplied cleanly with no conflicts. Validation: CMake configure/generate passes and `git diff --check` is clean. The Linux VM still lacks Vulkan/D3D12 headers, so the GPU-side regression remains covered by the prior Windows validation rather than locally rerun.
aslan2142 commented 2026-12-01 16:35:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:35:33Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317860767 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1419#issuecomment-7317860767). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:35:33Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1419
No description provided.