vk_pipeline_check: check --mesh-compute entries as compute pipelines #1514
Closed
leonida/mandy
robot00f wants to merge 0 commits from
feat/vk-pipeline-check-mesh-compute into main
pull from: feat/vk-pipeline-check-mesh-compute
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!1514
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/vk-pipeline-check-mesh-compute"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
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-computetranslates a mesh shader, the emitted SPIR-V module is aGLComputecompute shader (VK_SHADER_STAGE_COMPUTE_BIT), while itsindex.jsonentry preserves"stage": "ms"and records"mesh_compute": {...}.Previously,
runtime/test/vk_pipeline_check.cpptreated every"stage": "ms"entry as a nativeVK_EXT_mesh_shadergraphics stage:VK_EXT_mesh_shader(such as NVIDIA Pascal, AMD RDNA1/Vega/Polaris, Intel Gen9, and MoltenVK), all--mesh-computeentries were skipped withSKIPPED <name> (no VK_EXT_mesh_shader), theirlds_bytescheck readmesh_props.maxMeshSharedMemorySize(0) instead ofprops.limits.maxComputeSharedMemorySize, their required subgroup size was checked againstVK_SHADER_STAGE_MESH_BIT_EXTinstead ofVK_SHADER_STAGE_COMPUTE_BIT, and--stage cs(--compute-only) left them out.VK_EXT_mesh_shaderwhere--mesh-computeis enabled (for example Intel's Windows Vulkan driver, wheremake_game.pyturns--mesh-computeon automatically),vk_pipeline_checkpassed theGLComputemodule asVK_SHADER_STAGE_MESH_BIT_EXTtovkCreateGraphicsPipelines.Changes
runtime/test/vk_pipeline_check.cpp:"mesh_compute"onShaderMeta(accepting{...}ornull, and failing malformed index parsing before Vulkan loads if"mesh_compute"is neither an object nornullor appears on a stage other than"ms").--mesh-computeentries throughvkCreateComputePipelines(VK_SHADER_STAGE_COMPUTE_BIT),maxComputeSharedMemorySize,VK_SHADER_STAGE_COMPUTE_BITsubgroup-size checks, and--stage cs(--compute-only), while keeping their summary and--isolatecounts under"ms"and leaving native"ms"entries on theVK_EXT_mesh_shadergraphics 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-endvk_pipeline_checkcoverage (registered in CTest asvk_pipeline_check_mesh_computewithSKIP_RETURN_CODE 77) for 152-byte (PhysicalStorageBufferAddresses2x32-bit pointer withoutshaderInt64) and--pc-tail-ubo(128-byte + set-1 UBO)--mesh-computemodules,--compute-only/--graphics-onlyfiltering, native"ms"control entries,maxComputeSharedMemorySizerejection,--isolateaggregation, andspirv-valvalidation.docs/pipeline_check.md: document--mesh-computehandling invk_pipeline_check.Tested
ms_tritranslated withLEONIDA_MESH_COMPUTE=1):vk_pipeline_checkskippedms_triwithSKIPPED ms_tri (no VK_EXT_mesh_shader)(ms pipelines: 0 ok, 0 failed, 1 skipped) under--stage alland checked0 shadersunder--compute-only.ms_triwithLEONIDA_MESH_COMPUTE=1):ms: 1 modules ok, 0 failedandms pipelines: 1 ok, 0 failed, 0 skippedunder both--stage alland--compute-only.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.2included).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.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_validationis not installed on this host; GPU withoutVK_EXT_mesh_shader, native mesh-shader GPU path exercised via stage-filter control).AI-assisted: yes (Antigravity)
Checklist
mainand merges cleanly.CONTRIBUTING.md), including in logs or reports quoted here.docs/design.md, with how it was confirmed. (Not applicable: no translator rule changed;docs/pipeline_check.mdupdated.)[KEEP]
--mesh-computeentries (GLCompute SPIR-V,"stage": "ms") were checked as native mesh stages inruntime/test/vk_pipeline_check.cpp. Routing them throughvkCreateComputePipelineswith compute limits is the right direction.linux-gpu-tools,macos,windows,change-scopeandno-game-dataare all still pending. This is a 453-line C++/CMake change that needs those builds to pass.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.Tested
abb81b0aeon Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), againstmain5129be10d:vk_pipeline_checkfrom this head (C++ changed).runtime/test/check_vk_pipeline_mesh_compute.pywith this head's binary: 3/3 OK on both MoltenVK 1.4.2 and KosmicKrisp (Mesa 26.3.1).66d4f5aa3(whoseruntime/test/vk_pipeline_check.cpppredates the change), 2/3 fail with exactly the pre-fix behaviour — both--mesh-computemodules are reportedSKIPPED … (no VK_EXT_mesh_shader)and are counted underms, instead of compiling throughvkCreateComputePipelinesas compute. The third test (spirv-valon the synthetic modules) passes either way.mainbuild; the failures are the mesh-compute assertions themselves, not unrelated CLI drift.AI-assisted; synthetic fixtures only, no game data.
On gfx906 (Vega 20, RADV Mesa 26.0.8, fixed subgroup 64, no
VK_EXT_mesh_shader), I rebuilt the checker from bothb07b9ecbandabb81b0a. 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-onlyselected 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_cliandvk_pipeline_check_mesh_computeCTests both passed. These are driver pipeline-creation checks, not draws or D3D12 replay.AI-assisted.
Verified by OreoFR
Run 1 (lot 4)
09c153948+ PR headabb81b0ae; integration package 1 of 6 (20 PRs, merged without conflict)Run 2 (lot 4 bis)
33db04a70+ PR headabb81b0ae; integration package of 15 PRsAll runs
AI-assisted (Claude Code, Claude Opus 5.5).
Windows 11 + MSVC
19.44+ RTX 3090 Verification — PASS (abb81b0ae9)Verified
abb81b0ae9merged ontoorigin/main(5825b02ff8/53b77df14f,0conflicts, including a clean 3-way merge alongside#1209acrossvk_pipeline_check.cpp,check_vk_pipeline_cli.cmake, anddocs/pipeline_check.md) on native Windows 11 (10.0.26200.9974) with MSVC19.44.35228, NVIDIA GeForce RTX 3090, andspirv-val(1.4.363.1).Checks Run
index.jsonchecks (check_vk_pipeline_cli.cmake):origin/mainvk_pipeline_check.exe):cmake -P runtime/test/check_vk_pipeline_cli.cmakefailed (rc=1, non-objectmesh_computeand non-"ms"stageentries were not rejected before Vulkan load).#1514 + origin/mainvk_pipeline_check.exe):cmake -P runtime/test/check_vk_pipeline_cli.cmakepassed (rc=0), rejecting invalidmesh_computevalues (123,true,"obj",[]) and non-"ms"stages (cs,ps,vs,gs) withrc=2.check_vk_pipeline_mesh_compute.pyon NVIDIA GeForce RTX 3090:origin/mainvk_pipeline_check.exe):python -I runtime/test/check_vk_pipeline_mesh_compute.py --ctest --exe <vk_pipeline_check_main.exe>failed (rc=1).#1514 + origin/mainvk_pipeline_check.exe):3/3test methods passed (0skipped,rc=0) on NVIDIA GeForce RTX 3090 (maxPushConstantsSize = 256), verifyingspirv-valvalidation of both syntheticGLComputemodules (152-byte push-constantms_comp+128-byte--pc-tail-uboms_comp_tail),vkCreateComputePipelinescompilation reported under"ms",--compute-only/--graphics-onlyfiltering,--isolate --isolate-batch 2child-process aggregation on Windows 11, native"ms"(mesh_compute: null) exclusion from--compute-only, andmaxComputeSharedMemorySizeenforcement onlds_bytes.tests/test_docs_table_rows.py,tests/test_docs_encoding.py,tests/test_ctest_registration.py, andtests/test_ci_registration.pyall passed (rc=0), with0new issues intests/test_docs_cli_flags.py.AI-assisted.
Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 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).
RUN report for #1514 (VK-PIPELINE-CHECK-MESH-COMPUTE)
Heads: PR head
abb81b0ae(baseb07b9ecb0); origin/mainbd643e46e, merged locally withgit 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=ONcmake --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-failureLEONIDA_VK_PIPELINE_CHECK=<build>/vk_pipeline_check.exe python -I -B tests/test_vk_pipeline_check_index.pyand...test_vk_pipeline_check_isolate.py(both skip without the variable)python -I -B tests/<file>fortest_ctest_registration.py,test_docs_links.py,test_docs_table_rows.pyResults:
runtime/test/vk_pipeline_check.cppanddocs/pipeline_check.mdreverted 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_clifails (mesh_compute=123: expected a malformed index, got 1);vk_pipeline_check_mesh_computefails 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 namesmaxMeshSharedMemorySizeinstead ofmaxComputeSharedMemorySize. The third case (nativemscontrol entry) passes, as expected.vk_pipeline_check_cli,vk_pipeline_check_mesh_compute,vk_pipeline_check_stackpass (3/3, not skipped);test_vk_pipeline_check_index.py11 tests OK,test_vk_pipeline_check_isolate.py10 tests OK;test_ctest_registration.py,test_docs_links.py,test_docs_table_rows.pyOK.dumpbin /imports, DLL!symbol, merged vs plain mainbd643e46e): 714 imports each, new imports: none, removed: none.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.
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.