vk_pipeline_check: check --mesh-compute entries as compute pipelines #1514

Closed
robot00f wants to merge 1 commit from upstream-pr/1514 into main
robot00f commented 2026-11-25 03:01:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T03:01:37Z.


Claimed in the coordination issue as: VK-PIPELINE-CHECK-MESH-COMPUTE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7151127845)

What and why

When tools/rdna2spirv.py --mesh-compute translates a mesh shader, the emitted SPIR-V module is a GLCompute compute shader (VK_SHADER_STAGE_COMPUTE_BIT), while its index.json entry preserves "stage": "ms" and records "mesh_compute": {...}.

Previously, runtime/test/vk_pipeline_check.cpp treated every "stage": "ms" entry as a native VK_EXT_mesh_shader graphics stage:

  • On GPUs without VK_EXT_mesh_shader (such as NVIDIA Pascal, AMD RDNA1/Vega/Polaris, Intel Gen9, and MoltenVK), all --mesh-compute entries were skipped with SKIPPED <name> (no VK_EXT_mesh_shader), their lds_bytes check read mesh_props.maxMeshSharedMemorySize (0) instead of props.limits.maxComputeSharedMemorySize, their required subgroup size was checked against VK_SHADER_STAGE_MESH_BIT_EXT instead of VK_SHADER_STAGE_COMPUTE_BIT, and --stage cs (--compute-only) left them out.
  • On GPUs with VK_EXT_mesh_shader where --mesh-compute is enabled (for example Intel's Windows Vulkan driver, where make_game.py turns --mesh-compute on automatically), vk_pipeline_check passed the GLCompute module as VK_SHADER_STAGE_MESH_BIT_EXT to vkCreateGraphicsPipelines.

Changes

  • runtime/test/vk_pipeline_check.cpp:
    • Parse "mesh_compute" on ShaderMeta (accepting {...} or null, and failing malformed index parsing before Vulkan loads if "mesh_compute" is neither an object nor null or appears on a stage other than "ms").
    • Route --mesh-compute entries through vkCreateComputePipelines (VK_SHADER_STAGE_COMPUTE_BIT), maxComputeSharedMemorySize, VK_SHADER_STAGE_COMPUTE_BIT subgroup-size checks, and --stage cs (--compute-only), while keeping their summary and --isolate counts under "ms" and leaving native "ms" entries on the VK_EXT_mesh_shader graphics path.
  • runtime/test/check_vk_pipeline_cli.cmake: add CPU-only malformed-index checks for non-object "mesh_compute" values and "mesh_compute" on non-"ms" stages.
  • runtime/test/check_vk_pipeline_mesh_compute.py & runtime/CMakeLists.txt: add end-to-end vk_pipeline_check coverage (registered in CTest as vk_pipeline_check_mesh_compute with SKIP_RETURN_CODE 77) for 152-byte (PhysicalStorageBufferAddresses 2x32-bit pointer without shaderInt64) and --pc-tail-ubo (128-byte + set-1 UBO) --mesh-compute modules, --compute-only / --graphics-only filtering, native "ms" control entries, maxComputeSharedMemorySize rejection, --isolate aggregation, and spirv-val validation.
  • docs/pipeline_check.md: document --mesh-compute handling in vk_pipeline_check.

Tested

  • Pre-fix reproduction (3/3 runs on ms_tri translated with LEONIDA_MESH_COMPUTE=1): vk_pipeline_check skipped ms_tri with SKIPPED ms_tri (no VK_EXT_mesh_shader) (ms pipelines: 0 ok, 0 failed, 1 skipped) under --stage all and checked 0 shaders under --compute-only.
  • Post-fix verification (3/3 runs on ms_tri with LEONIDA_MESH_COMPUTE=1): ms: 1 modules ok, 0 failed and ms pipelines: 1 ok, 0 failed, 0 skipped under both --stage all and --compute-only.
  • CTest (3/3 runs): ctest --test-dir runtime/build -R "^(vk_pipeline_check_cli|vk_pipeline_check_mesh_compute)$" — 2/2 passed across all 3 runs (spirv-val --target-env vulkan1.2 included).
  • Neighbor suites: vk_pipeline_check_stack, pipeline_cache_seed, runtime/test/check_vk_pipeline_mesh_compute.py, tests/test_vk_pipeline_check_index.py, tests/test_vk_pipeline_check_isolate.py, tests/test_ctest_registration.py, tests/test_docs_links.py, tests/test_docs_table_rows.py — all passed.
  • Policy check: python -I scripts/check_no_game_data.py -> exit 0.

GPUs tested: NVIDIA GeForce GTX 1050 Ti (Pascal, 4 GB), driver 582.28, Vulkan 1.4.312, Windows 10 Pro 10.0.19045 (VK_LOADER_LAYERS_DISABLE=~implicit~; VK_LAYER_KHRONOS_validation is not installed on this host; GPU without VK_EXT_mesh_shader, native mesh-shader GPU path exercised via stage-filter control).

AI-assisted: yes (Antigravity)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: no translator rule changed; docs/pipeline_check.md updated.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5484338380 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1514). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-25T03:01:37Z. --- Claimed in the coordination issue as: `VK-PIPELINE-CHECK-MESH-COMPUTE` (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7151127845) ### What and why When `tools/rdna2spirv.py --mesh-compute` translates a mesh shader, the emitted SPIR-V module is a `GLCompute` compute shader (`VK_SHADER_STAGE_COMPUTE_BIT`), while its `index.json` entry preserves `"stage": "ms"` and records `"mesh_compute": {...}`. Previously, `runtime/test/vk_pipeline_check.cpp` treated every `"stage": "ms"` entry as a native `VK_EXT_mesh_shader` graphics stage: - On GPUs without `VK_EXT_mesh_shader` (such as NVIDIA Pascal, AMD RDNA1/Vega/Polaris, Intel Gen9, and MoltenVK), all `--mesh-compute` entries were skipped with `SKIPPED <name> (no VK_EXT_mesh_shader)`, their `lds_bytes` check read `mesh_props.maxMeshSharedMemorySize` (`0`) instead of `props.limits.maxComputeSharedMemorySize`, their required subgroup size was checked against `VK_SHADER_STAGE_MESH_BIT_EXT` instead of `VK_SHADER_STAGE_COMPUTE_BIT`, and `--stage cs` (`--compute-only`) left them out. - On GPUs *with* `VK_EXT_mesh_shader` where `--mesh-compute` is enabled (for example Intel's Windows Vulkan driver, where `make_game.py` turns `--mesh-compute` on automatically), `vk_pipeline_check` passed the `GLCompute` module as `VK_SHADER_STAGE_MESH_BIT_EXT` to `vkCreateGraphicsPipelines`. ### Changes - `runtime/test/vk_pipeline_check.cpp`: - Parse `"mesh_compute"` on `ShaderMeta` (accepting `{...}` or `null`, and failing malformed index parsing before Vulkan loads if `"mesh_compute"` is neither an object nor `null` or appears on a stage other than `"ms"`). - Route `--mesh-compute` entries through `vkCreateComputePipelines` (`VK_SHADER_STAGE_COMPUTE_BIT`), `maxComputeSharedMemorySize`, `VK_SHADER_STAGE_COMPUTE_BIT` subgroup-size checks, and `--stage cs` (`--compute-only`), while keeping their summary and `--isolate` counts under `"ms"` and leaving native `"ms"` entries on the `VK_EXT_mesh_shader` graphics path. - `runtime/test/check_vk_pipeline_cli.cmake`: add CPU-only malformed-index checks for non-object `"mesh_compute"` values and `"mesh_compute"` on non-`"ms"` stages. - `runtime/test/check_vk_pipeline_mesh_compute.py` & `runtime/CMakeLists.txt`: add end-to-end `vk_pipeline_check` coverage (registered in CTest as `vk_pipeline_check_mesh_compute` with `SKIP_RETURN_CODE 77`) for 152-byte (`PhysicalStorageBufferAddresses` 2x32-bit pointer without `shaderInt64`) and `--pc-tail-ubo` (128-byte + set-1 UBO) `--mesh-compute` modules, `--compute-only` / `--graphics-only` filtering, native `"ms"` control entries, `maxComputeSharedMemorySize` rejection, `--isolate` aggregation, and `spirv-val` validation. - `docs/pipeline_check.md`: document `--mesh-compute` handling in `vk_pipeline_check`. ### Tested - Pre-fix reproduction (3/3 runs on `ms_tri` translated with `LEONIDA_MESH_COMPUTE=1`): `vk_pipeline_check` skipped `ms_tri` with `SKIPPED ms_tri (no VK_EXT_mesh_shader)` (`ms pipelines: 0 ok, 0 failed, 1 skipped`) under `--stage all` and checked `0 shaders` under `--compute-only`. - Post-fix verification (3/3 runs on `ms_tri` with `LEONIDA_MESH_COMPUTE=1`): `ms: 1 modules ok, 0 failed` and `ms pipelines: 1 ok, 0 failed, 0 skipped` under both `--stage all` and `--compute-only`. - CTest (3/3 runs): `ctest --test-dir runtime/build -R "^(vk_pipeline_check_cli|vk_pipeline_check_mesh_compute)$"` — 2/2 passed across all 3 runs (`spirv-val --target-env vulkan1.2` included). - Neighbor suites: `vk_pipeline_check_stack`, `pipeline_cache_seed`, `runtime/test/check_vk_pipeline_mesh_compute.py`, `tests/test_vk_pipeline_check_index.py`, `tests/test_vk_pipeline_check_isolate.py`, `tests/test_ctest_registration.py`, `tests/test_docs_links.py`, `tests/test_docs_table_rows.py` — all passed. - Policy check: `python -I scripts/check_no_game_data.py` -> exit 0. GPUs tested: NVIDIA GeForce GTX 1050 Ti (Pascal, 4 GB), driver 582.28, Vulkan 1.4.312, Windows 10 Pro 10.0.19045 (`VK_LOADER_LAYERS_DISABLE=~implicit~`; `VK_LAYER_KHRONOS_validation` is not installed on this host; GPU without `VK_EXT_mesh_shader`, native mesh-shader GPU path exercised via stage-filter control). AI-assisted: yes (Antigravity) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (`CONTRIBUTING.md`), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: no translator rule changed; `docs/pipeline_check.md` updated.)
ytsodacan commented 2026-11-25 03:34:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ytsodacan on 2026-11-25T03:34:05Z.


[KEEP]

  • Addresses a real gap: --mesh-compute entries (GLCompute SPIR-V, "stage": "ms") were checked as native mesh stages in runtime/test/vk_pipeline_check.cpp. Routing them through vkCreateComputePipelines with compute limits is the right direction.
  • CI is not finished: linux-gpu-tools, macos, windows, change-scope and no-game-data are all still pending. This is a 453-line C++/CMake change that needs those builds to pass.
  • It adds CLI/CMake tests (check_vk_pipeline_cli.cmake, check_vk_pipeline_mesh_compute.py) and docs, so I would rather see them run than merge on the description alone.
  • No duplicate found; #1308 touches pipeline caching in the runtime, not this tool.
  • Re-triage once CI is green.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7152034977 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1514#issuecomment-7152034977). Originally posted by [ytsodacan](https://github.com/ytsodacan) on 2026-11-25T03:34:05Z. --- **[KEEP]** - Addresses a real gap: `--mesh-compute` entries (GLCompute SPIR-V, `"stage": "ms"`) were checked as native mesh stages in `runtime/test/vk_pipeline_check.cpp`. Routing them through `vkCreateComputePipelines` with compute limits is the right direction. - CI is not finished: `linux-gpu-tools`, `macos`, `windows`, `change-scope` and `no-game-data` are all still pending. This is a 453-line C++/CMake change that needs those builds to pass. - It adds CLI/CMake tests (`check_vk_pipeline_cli.cmake`, `check_vk_pipeline_mesh_compute.py`) and docs, so I would rather see them run than merge on the description alone. - No duplicate found; #1308 touches pipeline caching in the runtime, not this tool. - Re-triage once CI is green.
GeorgiyDemo commented 2026-11-25 03:51:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-25T03:51:03Z.


Tested abb81b0ae on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 5129be10d:

  • Rebuilt vk_pipeline_check from this head (C++ changed).
  • runtime/test/check_vk_pipeline_mesh_compute.py with this head's binary: 3/3 OK on both MoltenVK 1.4.2 and KosmicKrisp (Mesa 26.3.1).
  • Baseline: with the last full build at 66d4f5aa3 (whose runtime/test/vk_pipeline_check.cpp predates the change), 2/3 fail with exactly the pre-fix behaviour — both --mesh-compute modules are reported SKIPPED … (no VK_EXT_mesh_shader) and are counted under ms, instead of compiling through vkCreateComputePipelines as compute. The third test (spirv-val on the synthetic modules) passes either way.
  • Caveat: the baseline binary is the old build, not a fresh main build; the failures are the mesh-compute assertions themselves, not unrelated CLI drift.

AI-assisted; synthetic fixtures only, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7152298683 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1514#issuecomment-7152298683). Originally posted by [GeorgiyDemo](https://github.com/GeorgiyDemo) on 2026-11-25T03:51:03Z. --- Tested `abb81b0ae` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `5129be10d`: - Rebuilt `vk_pipeline_check` from this head (C++ changed). - `runtime/test/check_vk_pipeline_mesh_compute.py` with this head's binary: **3/3 OK** on both **MoltenVK 1.4.2** and **KosmicKrisp** (Mesa 26.3.1). - Baseline: with the last full build at `66d4f5aa3` (whose `runtime/test/vk_pipeline_check.cpp` predates the change), **2/3 fail** with exactly the pre-fix behaviour — both `--mesh-compute` modules are reported `SKIPPED … (no VK_EXT_mesh_shader)` and are counted under `ms`, instead of compiling through `vkCreateComputePipelines` as compute. The third test (`spirv-val` on the synthetic modules) passes either way. - Caveat: the baseline binary is the old build, not a fresh `main` build; the failures are the mesh-compute assertions themselves, not unrelated CLI drift. AI-assisted; synthetic fixtures only, no game data.
zmasi commented 2026-11-27 01:31:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-27T01:31:37Z.


On gfx906 (Vega 20, RADV Mesa 26.0.8, fixed subgroup 64, no VK_EXT_mesh_shader), I rebuilt the checker from both b07b9ecb and abb81b0a. With the same six hand-written mesh shaders translated as compute, the parent skipped all six. This head created 6/6 compute pipelines, 0 failed, in both the default scan and --compute-only; --graphics-only selected none of the six. A native mesh control was still skipped.

Both the 152-byte push-constant form and the 128-byte + set-1 UBO form compiled. The checker accepted 65,536 bytes of compute workgroup memory and rejected 65,537. The targeted vk_pipeline_check_cli and vk_pipeline_check_mesh_compute CTests both passed. These are driver pipeline-creation checks, not draws or D3D12 replay.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7207358074 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1514#issuecomment-7207358074). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-27T01:31:37Z. --- On gfx906 (Vega 20, RADV Mesa 26.0.8, fixed subgroup 64, no `VK_EXT_mesh_shader`), I rebuilt the checker from both `b07b9ecb` and `abb81b0a`. With the same six hand-written mesh shaders translated as compute, the parent skipped all six. This head created **6/6 compute pipelines, 0 failed**, in both the default scan and `--compute-only`; `--graphics-only` selected none of the six. A native mesh control was still skipped. Both the 152-byte push-constant form and the 128-byte + set-1 UBO form compiled. The checker accepted 65,536 bytes of compute workgroup memory and rejected 65,537. The targeted `vk_pipeline_check_cli` and `vk_pipeline_check_mesh_compute` CTests both passed. These are driver pipeline-creation checks, not draws or D3D12 replay. AI-assisted.
OreoFR commented 2026-11-28 21:51:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:51:59Z.


Verified by OreoFR

Run 1 (lot 4)

  • Base: main 09c153948 + PR head abb81b0ae; integration package 1 of 6 (20 PRs, merged without conflict)
  • Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; full Python suite; translator suite
  • Red on main: n/a (integration test; main baseline: xbox_present and d3d12_set_descriptor_heaps)
  • Green with the PR: ctest: only xbox_present and d3d12_set_descriptor_heaps fail, as on main; Python: the same 7 failing files as main, the PRs' 11 test files pass; translator: 0 failures
  • Verdict: CLEAN PACKAGE (no new failure vs main)

Run 2 (lot 4 bis)

  • Base: main 33db04a70 + PR head abb81b0ae; integration package of 15 PRs
  • Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests; translator suite
  • Red on main: n/a (integration test; main baseline: xbox_present, and flaky xmem)
  • Green with the PR: ctest: only xbox_present fails as on main (xs_proxy_mock failed once, flaky: passes on rerun and 5/5 direct runs); Python: same failures as main, the PRs' tests pass; translator: 507 files, 6405 tests, 0 failures
  • Verdict: CLEAN PACKAGE (no new failure vs main)

All runs

  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246330159 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1514#issuecomment-7246330159). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:51:59Z. --- **Verified by OreoFR** **Run 1 (lot 4)** - Base: main `09c153948` + PR head `abb81b0ae`; integration package 1 of 6 (20 PRs, merged without conflict) - Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; full Python suite; translator suite - Red on main: n/a (integration test; main baseline: xbox_present and d3d12_set_descriptor_heaps) - Green with the PR: ctest: only xbox_present and d3d12_set_descriptor_heaps fail, as on main; Python: the same 7 failing files as main, the PRs' 11 test files pass; translator: 0 failures - Verdict: CLEAN PACKAGE (no new failure vs main) **Run 2 (lot 4 bis)** - Base: main `33db04a70` + PR head `abb81b0ae`; integration package of 15 PRs - Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests; translator suite - Red on main: n/a (integration test; main baseline: xbox_present, and flaky xmem) - Green with the PR: ctest: only xbox_present fails as on main (xs_proxy_mock failed once, flaky: passes on rerun and 5/5 direct runs); Python: same failures as main, the PRs' tests pass; translator: 507 files, 6405 tests, 0 failures - Verdict: CLEAN PACKAGE (no new failure vs main) **All runs** - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
zmasi commented 2026-11-29 01:25:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:25:48Z.


Windows 11 + MSVC 19.44 + RTX 3090 Verification — PASS (abb81b0ae9)

Verified abb81b0ae9 merged onto origin/main (5825b02ff8 / 53b77df14f, 0 conflicts, including a clean 3-way merge alongside #1209 across vk_pipeline_check.cpp, check_vk_pipeline_cli.cmake, and docs/pipeline_check.md) on native Windows 11 (10.0.26200.9974) with MSVC 19.44.35228, NVIDIA GeForce RTX 3090, and spirv-val (1.4.363.1).

Checks Run

  • Red -> Green CLI & malformed-index.json checks (check_vk_pipeline_cli.cmake):
    • Red (origin/main vk_pipeline_check.exe): cmake -P runtime/test/check_vk_pipeline_cli.cmake failed (rc=1, non-object mesh_compute and non-"ms" stage entries were not rejected before Vulkan load).
    • Green (#1514 + origin/main vk_pipeline_check.exe): cmake -P runtime/test/check_vk_pipeline_cli.cmake passed (rc=0), rejecting invalid mesh_compute values (123, true, "obj", []) and non-"ms" stages (cs, ps, vs, gs) with rc=2.
  • Red -> Green check_vk_pipeline_mesh_compute.py on NVIDIA GeForce RTX 3090:
    • Red (origin/main vk_pipeline_check.exe): python -I runtime/test/check_vk_pipeline_mesh_compute.py --ctest --exe <vk_pipeline_check_main.exe> failed (rc=1).
    • Green (#1514 + origin/main vk_pipeline_check.exe): 3/3 test methods passed (0 skipped, rc=0) on NVIDIA GeForce RTX 3090 (maxPushConstantsSize = 256), verifying spirv-val validation of both synthetic GLCompute modules (152-byte push-constant ms_comp + 128-byte --pc-tail-ubo ms_comp_tail), vkCreateComputePipelines compilation reported under "ms", --compute-only / --graphics-only filtering, --isolate --isolate-batch 2 child-process aggregation on Windows 11, native "ms" (mesh_compute: null) exclusion from --compute-only, and maxComputeSharedMemorySize enforcement on lds_bytes.
  • Documentation & registration suites: tests/test_docs_table_rows.py, tests/test_docs_encoding.py, tests/test_ctest_registration.py, and tests/test_ci_registration.py all passed (rc=0), with 0 new issues in tests/test_docs_cli_flags.py.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248776577 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1514#issuecomment-7248776577). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T01:25:48Z. --- ## Windows 11 + MSVC `19.44` + RTX 3090 Verification — PASS (`abb81b0ae9`) Verified `abb81b0ae9` merged onto `origin/main` (`5825b02ff8` / `53b77df14f`, `0` conflicts, including a clean 3-way merge alongside `#1209` across `vk_pipeline_check.cpp`, `check_vk_pipeline_cli.cmake`, and `docs/pipeline_check.md`) on native Windows 11 (`10.0.26200.9974`) with MSVC `19.44.35228`, **NVIDIA GeForce RTX 3090**, and `spirv-val` (`1.4.363.1`). ### Checks Run - **Red -> Green CLI & malformed-`index.json` checks (`check_vk_pipeline_cli.cmake`)**: - **Red (`origin/main` `vk_pipeline_check.exe`)**: `cmake -P runtime/test/check_vk_pipeline_cli.cmake` failed (`rc=1`, non-object `mesh_compute` and non-`"ms"` `stage` entries were not rejected before Vulkan load). - **Green (`#1514 + origin/main` `vk_pipeline_check.exe`)**: `cmake -P runtime/test/check_vk_pipeline_cli.cmake` passed (`rc=0`), rejecting invalid `mesh_compute` values (`123`, `true`, `"obj"`, `[]`) and non-`"ms"` stages (`cs`, `ps`, `vs`, `gs`) with `rc=2`. - **Red -> Green `check_vk_pipeline_mesh_compute.py` on NVIDIA GeForce RTX 3090**: - **Red (`origin/main` `vk_pipeline_check.exe`)**: `python -I runtime/test/check_vk_pipeline_mesh_compute.py --ctest --exe <vk_pipeline_check_main.exe>` failed (`rc=1`). - **Green (`#1514 + origin/main` `vk_pipeline_check.exe`)**: **`3/3` test methods passed (`0` skipped, `rc=0`)** on **NVIDIA GeForce RTX 3090** (`maxPushConstantsSize = 256`), verifying `spirv-val` validation of both synthetic `GLCompute` modules (`152`-byte push-constant `ms_comp` + `128`-byte `--pc-tail-ubo` `ms_comp_tail`), `vkCreateComputePipelines` compilation reported under `"ms"`, `--compute-only` / `--graphics-only` filtering, `--isolate --isolate-batch 2` child-process aggregation on Windows 11, native `"ms"` (`mesh_compute: null`) exclusion from `--compute-only`, and `maxComputeSharedMemorySize` enforcement on `lds_bytes`. - **Documentation & registration suites**: `tests/test_docs_table_rows.py`, `tests/test_docs_encoding.py`, `tests/test_ctest_registration.py`, and `tests/test_ci_registration.py` all passed (`rc=0`), with `0` new issues in `tests/test_docs_cli_flags.py`. AI-assisted.
TheGeogeo commented 2026-11-29 14:17:58 +00:00 (Migrated from github.com)

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


Ready for testing: merges cleanly with main 3535eb5c4. Not in main yet: git cherry finds 1 commit(s) not there, and 6 of the 244 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:7257194910 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1514#issuecomment-7257194910). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:17:58Z. --- Ready for testing: merges cleanly with `main` `3535eb5c4`. Not in `main` yet: `git cherry` finds 1 commit(s) not there, and 6 of the 244 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:51:32 +00:00 (Migrated from github.com)

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


RUN report for #1514 (VK-PIPELINE-CHECK-MESH-COMPUTE)

Heads: PR head abb81b0ae (base b07b9ecb0); origin/main bd643e46e, merged locally with git merge --no-ff (clean, 5 files).

Kind: runtime C++ test tool (vk_pipeline_check) plus CTest and Python test, docs page.

Commands (VS 2022 vcvars64 shell, Ninja, RelWithDebInfo, -DLEONIDA_REQUIRE_VULKAN=ON, SDL3 found via SDL3_DIR):

  • cmake -S runtime -B <build> -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON
  • cmake --build <build> -j 8 --target vk_pipeline_check (merged tree: --target gta6rt vk_pipeline_check)
  • ctest --test-dir <build> -R "^(vk_pipeline_check_cli|vk_pipeline_check_mesh_compute|vk_pipeline_check_stack)$" --output-on-failure
  • LEONIDA_VK_PIPELINE_CHECK=<build>/vk_pipeline_check.exe python -I -B tests/test_vk_pipeline_check_index.py and ...test_vk_pipeline_check_isolate.py (both skip without the variable)
  • python -I -B tests/<file> for test_ctest_registration.py, test_docs_links.py, test_docs_table_rows.py

Results:

  • RED (behavioural: runtime/test/vk_pipeline_check.cpp and docs/pipeline_check.md reverted to the PR base, the three test files and the CMake registration kept; there is no new API, so the old binary builds and runs): vk_pipeline_check_cli fails (mesh_compute=123: expected a malformed index, got 1); vk_pipeline_check_mesh_compute fails 2 of 3 cases: the --mesh-compute entries are treated as native mesh stages and skipped (SKIPPED ms_comp (missing stub ps_0.spv), ms pipelines: 0 ok, 0 failed, 2 skipped), and the LDS rejection names maxMeshSharedMemorySize instead of maxComputeSharedMemorySize. The third case (native ms control entry) passes, as expected.
  • GREEN at PR head: vk_pipeline_check_cli, vk_pipeline_check_mesh_compute, vk_pipeline_check_stack pass (3/3, not skipped); test_vk_pipeline_check_index.py 11 tests OK, test_vk_pipeline_check_isolate.py 10 tests OK; test_ctest_registration.py, test_docs_links.py, test_docs_table_rows.py OK.
  • GREEN merged into origin/main: same 3 CTests pass; the same Python files pass (index 11 OK, isolate 10 OK, registration 11 OK, docs links 18 OK, table rows 2 OK).
  • gta6rt imports (dumpbin /imports, DLL!symbol, merged vs plain main bd643e46e): 714 imports each, new imports: none, removed: none.
  • Note: this GPU has VK_EXT_mesh_shader, so the red here is the "native mesh path with a GLCompute module" case from the description. The no-mesh-shader case (SKIPPED ... no VK_EXT_mesh_shader) was not reachable on this machine.

Machine: Windows 11 Pro x64, RTX 3090 24 GB (has VK_EXT_mesh_shader), NVIDIA 621.40, MSVC 14.44 (VS 2022 Build Tools), CMake/Ninja from VS, Vulkan SDK 1.4.363.1, SDL3 3.4.20 static, Python 3.13.12.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258423740 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1514#issuecomment-7258423740). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T15:51:32Z. --- RUN report for #1514 (VK-PIPELINE-CHECK-MESH-COMPUTE) Heads: PR head `abb81b0ae` (base `b07b9ecb0`); origin/main `bd643e46e`, merged locally with `git merge --no-ff` (clean, 5 files). Kind: runtime C++ test tool (`vk_pipeline_check`) plus CTest and Python test, docs page. Commands (VS 2022 vcvars64 shell, Ninja, RelWithDebInfo, `-DLEONIDA_REQUIRE_VULKAN=ON`, SDL3 found via SDL3_DIR): - `cmake -S runtime -B <build> -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON` - `cmake --build <build> -j 8 --target vk_pipeline_check` (merged tree: `--target gta6rt vk_pipeline_check`) - `ctest --test-dir <build> -R "^(vk_pipeline_check_cli|vk_pipeline_check_mesh_compute|vk_pipeline_check_stack)$" --output-on-failure` - `LEONIDA_VK_PIPELINE_CHECK=<build>/vk_pipeline_check.exe python -I -B tests/test_vk_pipeline_check_index.py` and `...test_vk_pipeline_check_isolate.py` (both skip without the variable) - `python -I -B tests/<file>` for `test_ctest_registration.py`, `test_docs_links.py`, `test_docs_table_rows.py` Results: - RED (behavioural: `runtime/test/vk_pipeline_check.cpp` and `docs/pipeline_check.md` reverted to the PR base, the three test files and the CMake registration kept; there is no new API, so the old binary builds and runs): `vk_pipeline_check_cli` fails (`mesh_compute=123: expected a malformed index, got 1`); `vk_pipeline_check_mesh_compute` fails 2 of 3 cases: the --mesh-compute entries are treated as native mesh stages and skipped (`SKIPPED ms_comp (missing stub ps_0.spv)`, `ms pipelines: 0 ok, 0 failed, 2 skipped`), and the LDS rejection names `maxMeshSharedMemorySize` instead of `maxComputeSharedMemorySize`. The third case (native `ms` control entry) passes, as expected. - GREEN at PR head: `vk_pipeline_check_cli`, `vk_pipeline_check_mesh_compute`, `vk_pipeline_check_stack` pass (3/3, not skipped); `test_vk_pipeline_check_index.py` 11 tests OK, `test_vk_pipeline_check_isolate.py` 10 tests OK; `test_ctest_registration.py`, `test_docs_links.py`, `test_docs_table_rows.py` OK. - GREEN merged into origin/main: same 3 CTests pass; the same Python files pass (index 11 OK, isolate 10 OK, registration 11 OK, docs links 18 OK, table rows 2 OK). - gta6rt imports (`dumpbin /imports`, DLL!symbol, merged vs plain main `bd643e46e`): 714 imports each, new imports: none, removed: none. - Note: this GPU has VK_EXT_mesh_shader, so the red here is the "native mesh path with a GLCompute module" case from the description. The no-mesh-shader case (SKIPPED ... no VK_EXT_mesh_shader) was not reachable on this machine. Machine: Windows 11 Pro x64, RTX 3090 24 GB (has VK_EXT_mesh_shader), NVIDIA 621.40, MSVC 14.44 (VS 2022 Build Tools), CMake/Ninja from VS, Vulkan SDK 1.4.363.1, SDL3 3.4.20 static, Python 3.13.12.
aslan2142 commented 2026-12-01 17:23:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:23:40Z.


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:7319228026 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1514#issuecomment-7319228026). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:23:40Z. --- 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!1514
No description provided.