d3d12: use GPU count buffers for indirect mesh dispatches #429
Closed
leonida/mandy
PyZikYG wants to merge 0 commits from
vulkan-mesh-dispatch-count into main
pull from: vulkan-mesh-dispatch-count
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!429
Loading…
Reference in a new issue
No description provided.
Delete branch "vulkan-mesh-dispatch-count"
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 as D3D-MESH-INDIRECT-COUNT.
Depends on: #424
A mesh-only ExecuteIndirect command with a GPU count buffer previously failed recording. This change reuses the compute indirect-count helper to prepare compact mesh dispatch records on the GPU. It reads the count at execution and writes zero-group records beyond the count, so even a UINT32_MAX counter is bounded by MaxCommandCount before drawing. The helper runs outside pipeline statistics queries. The count path requires buffer device addresses and compute scratch.
This PR includes the rebased #424 commit until #424 is merged.
AI-assisted: yes.
Tested 909d3c2d (on top of #424) on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32, mesh shaders), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows: pass
Runtime built at this head with
scripts\build_runtime.ps1(MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0). No game files.ctest -R ^d3d12_mesh$ -V: passed, and the new path is taken on this card:mesh indirect used a GPU count buffer, thendirect and indirect mesh dispatches and a stream VS draw matched all 4096 pixels(D3D-29: mesh tier 1, native mesh stage). Same statistics line as #424 (mesh only: C 8/8 PS 1024).Retail result with this merged onto current
main(RTX 5080, NVIDIA 621.24): in the world phase the indirect draws recorded went from 4,096 recorded / 53,405 skipped to 9,172 / 516 in a run that also gainednative_hashes.txtandfspx_gfx, and the run showed a world picture (#1608 finding). So the draws this adds are what the world is made of;mesh indirectis gone from the skip reasons, onlytopologyremains.Because #1723 reworked
ExecuteIndirect, my merge is not your diff: mesh goes ExecuteIndirect ->record_indirect->draw_indirectwithmesh=true, so it inherits the argument clamp, the shared list budget, the range and usage checks, predication and bundle deferral, and it emits onevkCmdDrawMeshTasksIndirect[Count]EXTinstead of a loop. I keptmain's behaviour for compound signatures (created, then skipped with a counter). Your commits are kept as they are. Tests that pass on the merge:d3d12_mesh(extended with bundle, compound skip, kind mismatch and indirect mesh inside a statistics query),indirect_clamp, everyindirecttest, bundle tests,d3d12_draw, state map and replay pipeline compile tests;d3d12_meshand the stateful indirect tests also with validation on. Clamp counters in the retail run: 0 clamped, 0 zeroed, 0 over budget.Known limits of that merge: the clamp treats a mesh dispatch as one-dimensional (Y and Z forced to 1), which would cut a 3D grid; I saw no clamped record.
If it helps you rebase, I can push the merge to my fork as a branch for you to take from. I will not open a pull request of my own for it. AI-assisted (Claude Code).
Tested PR #429 at
43433957on Windows 11 build 26300.9974 with an NVIDIA GeForce RTX 5070 Laptop GPU, driver 621.24. I used theruntime-windowsartifact from Actions run 45584633004.d3d12_mesh_test.exepassed (exit 0). It printedmesh indirect used a GPU count buffer, and all 4096 pixels matched for the direct and indirect mesh dispatches and the vertex-shader draw.One detail for anyone testing the Windows artifact: my first run exited with
0xc0000409. The three shaders were present in the extractedgeneratedfolder. After I made them available at the build-time pathD:\a\leonida\leonida\runtime\build\generated, the same executable passed with the same driver.I ran this single synthetic test locally. No game files were used. AI-assisted setup and report preparation.
@DadaCap counts from your
mesh-indirect-on-main(255501cd9), as asked. Retail, RTX 4070 Laptop 8 GB, NVIDIA 621.40, Windows 11. Merged with #1849 #1867 #1887 #1896 #1860 #1889 #1886 (and #1893, now onmain), host image copy on. Settings:LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_MAP_READBACK=1 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_TITLE_WATCHDOG=0, window cap 1024 MiB, arena 2048 MiB;fspx_gfx(18,493 programs) andnative_hashes.txtpresent. One run per row.LEONIDA_DEVICE_TYPE=6, 3 runs (one withoutMAP_READBACK)amd_fidelityfx_upscaler_xbox.dll+0x65ff(read at 0x10: a count of 0, then a null pointer read without a check). None of my 11 runs on the default device type shows it.recorded=4436 emitted=128,replay_skips=3662(allpending_pipeline), 0 record skips. Device lost at ~172 s, fault type 4, last pipeline$MS_VS_OctaSLODWind_5fd19871_Wrapped/PS_OctaSLODReZ_f191416b_WrappedLEONIDA_VK_VALIDATION=1recorded=131072 emitted=16760at ~400 s, the cutscene card over a plain green screen (it was black before). Only validation messages:VUID-VkImageViewCreateInfo-image-12397(16) and-usage-02275(14). Device lost at ~457 s, type 4LEONIDA_CONSOLE_RETRY_US=0emitted=1024, device lost at ~254 s, type 4So mesh indirect is no longer refused here (0 record skips). The last two losses end on the same dispatches (
lib_cs_02921indirect, thenlib_cs_03001at 160x90 andlib_cs_03006) and the same faulting code addresses, so it is reproducible. Mesh pipelines take 40-46 s each to compile here, and up to 113k draws wait for theirs. Next: the same with host image copy off, as you ran it.Did you see the upscaler crash with
LEONIDA_DEVICE_TYPE=6on the 5080? Counts and program names only. AI-assisted (Claude Code).@OreoFR thank you, these are useful counts. Correction (edited): I first wrote that I have not seen the
+0x65ffcrash. I did, once, in an early run today (m24,LEONIDA_DEVICE_TYPE=6): then only 22 of the 29 FSPX programs of the FidelityFX upscaler translated. With #674 and #1662 in the translator all 29 translated and the crash was gone in the next run (m25, one run each), so please check how many FSPX programs your shader folder has. Since m50 I have not seen it. All my recent runs useLEONIDA_DEVICE_TYPE=6(RTX 5080, 16 GB), and no log of the 19 or so runs since m50 has that address. The obvious differences are host image copy (mine is off, throughLEONIDA_HOST_IMAGE_COPY=0of #1851),LEONIDA_VALUE_WAIT_TIMEOUT_MS, and the 8 GB against 16 GB, so I can't say which one matters. Your host-image-copy-off run should tell.For the picture: in a run today with #1957, the G-buffer holds the textured scene at the world frames, but the lit buffer has only sky and emissive lights, and I found no
VS_TiledLightingorTL_PS_*pipeline in three logs. #1896 may be what is missing (its topologies); I am testing that now, with your list of merged pull requests containing it already, so whether your log hasTL_PS_*builds would be interesting. AI-assisted (Claude Code, Claude Opus 5.5).Retail data point for the merge DadaCap published (DadaCap/leonida
mesh-indirect-on-main), on a 16 GB card with 32 GB of RAM.RTX 4080 16 GB, NVIDIA 621.24, Windows 11 26300. Local merge: main b0f3d3998 + #1849 #1893 #1889 #1860 #1886 #1882 #1887 #1851 + Snooozs's merge of #1592 +
mesh-indirect-on-main(255501cd9; one conflict with the #1592 merge, in a printf of d3d12_mesh_test.cpp). fspx_gfx 16,914 programs, native_hashes.txt present, host image copy on,LEONIDA_ASYNC_PIPELINES=1,LEONIDA_TITLE_WINDOWS_MB=4096,LEONIDA_ARENA_MB=2048,LEONIDA_TITLE_WATCHDOG=0, three groups of very large compute programs skipped withLEONIDA_SKIP_COMPUTE(reason below), scripted keyboard pad.vkDeviceWaitIdle (title staging), one fault address of type 6, checkpoint a draw at submission 5,162 (list 3, command 0) with a mesh + pixel pipeline boundSo the mesh draws are recorded here as on the RTX 5080, but most are skipped at replay (38,024), and the one run ended in a device loss inside a mesh draw. I have not looked at why replay skips them (async pipelines not built yet is my first guess, since graphics pipelines build in the background in this run) and have no second run.
Why the compute skip: without it the world start cannot be passed on this machine. Compute programs of 6 to 24 MiB of SPIR-V (three name groups, about 15 programs) are compiled on the dispatch path, and nvgpucomp64 was still inside one after 46 s with the process growing by 3.6 GB in ten seconds; the next ones of 4 to 5.6 MiB take 20 to 57 s each. I will write that up separately in #1608.
Not checked: host image copy off,
LEONIDA_DEVICE_TYPE, validation, the mesh tests on this merge (only the build and the boot).AI-assisted (Claude Code).
Correction to my table above: the run without the mesh merge did not end cleanly either. Its log has a device loss at ~485 s that I missed (
vkDeviceWaitIdle (title staging), checkpoint a copy at submission 5,751 on a compute queue); the process then sat until my time limit. So both runs lost the device, at about the same time (471 s and 485 s) and at different commands (a mesh draw with the merge, a copy without), and the device loss with the merge cannot be put down to the mesh path from these two runs. The indirect counts stand.Second run with
mesh-indirect-on-mainon the RTX 4080, and it narrows what I reported above: both runs that had the merge lost the device at a draw with the same mesh + pixel pipeline pair bound.The run without the merge that I corrected above lost the device at a copy instead, so two of two with the merge end at this pair and zero of one without. The pair is a 64-wide mesh program of ~432 KiB of SPIR-V (run at this card's 32-wide size) with its pixel program; I keep program names out of posts, but can give the two FSPX code hashes if that helps find it on the 5080.
Separately, for anyone repeating this without async pipelines: with foreground builds the same merge did not reach that draw. Five of eight runs lost the device at the first world submission, checkpoint the first compute dispatch of list 0 (three of three with a 2,048 MiB arena, two of five with 4,095 MiB, the two being the runs that started from a warm pipeline cache).
Not checked: validation, host image copy off, whether the read fault is the mesh program's own or a neighbour's. Other local settings as in my first comment, plus a local size cut-off that drops compute programs over 3.5 MiB of SPIR-V in run 2 instead of the three name groups.
AI-assisted (Claude Code).
One more run, and it takes back the emphasis I put on "pair A": the pair is not special. With a local hack that never builds graphics pipelines using that mesh program (so its draws are dropped), everything else as in run 2, the device was lost at ~211 s at another draw (submission 3,388, list 4 command 71, kind draw) with a different mesh + pixel pair bound. Indirect graphics at the end: recorded 10,868, emitted 1,024, replay skips 7,054.
So on this RTX 4080 three of three runs with the mesh merge end in a device loss at a mesh draw, whichever mesh pipeline comes first, which points at what the mesh draws are given (arguments or the buffers they read; run 1's report had a read fault) rather than at one program. Still one machine, no validation run, and I have not looked at the arguments.
AI-assisted (Claude Code).
Correction to my last comment: the local hack never fired in that run (its log line is absent), so nothing was dropped and the run is simply a third run of the same recipe. What it shows is unchanged and a little simpler: this time the device was lost at a mesh draw with a different mesh + pixel pair bound, before any draw with pair A was built. Three of three runs with the mesh merge end at a mesh draw; two at pair A, one at another pair.
@DadaCap answers for my RTX 4070 Laptop (8 GB, 621.40):
+0x65ffin any recent run, but those runs do not setLEONIDA_DEVICE_TYPE=6.TL_PS_*andVS_TiledLightingpipelines are built in my world runs (about 30 builds each).@quartz-heron-58 this matches what I see with
mesh-indirect-on-main+ #2077 + #1914 on main. Nsight Aftermath dumps show two variants, bothTimeoutwith no page fault:lib_cs_00959stuck at the loop head of the wave64 round scheduler (--wave64-emulate, rounds form);Bisect on this machine (one run each):
So on my side it is not the clamp, the rendering scope or skipped dispatches. I'm now running the mesh programs retranslated with #2102 (all of them).
@OreoFR thank you, that fits here too: every loss on this RTX 4080 since the arena was made large enough has only type-4 addresses, no read or write. Since you are testing #2102, three runs with it from this machine. Every number below was read back from the run logs before posting.
What was retranslated: the main corpus (26,503) and fspx_gfx (18,493) with the tools at 84816055d (#2102),
--wave64-emulate. Of 400 mesh modules I hashed before and after, 400 changed. Not retranslated: the pipeline-library compute programs (still from the translator at 71a769d7d, plus 830 from an older translation that the current one refuses), so lib_cs_00959 is unchanged in these runs and this only tests the mesh side.Runtime: main b0f3d3998 + #1849 #1893 #1889 #1860 #1886 #1882 #1887 #1851, Snooozs's merge of #1592,
mesh-indirect-on-main(255501cd9), Undefined3301's V# bound commit (338a32b, cherry-picked), and a local diagnostic patch (compute programs over 3.5 MiB of SPIR-V are dropped; the session cache is checkpointed while builds run).LEONIDA_ASYNC_PIPELINES=1, arena 4,080 MiB granted of 4,095 asked,LEONIDA_TITLE_WINDOWS_MB=4096, host image copy on, a warm session pipeline cache, NVIDIA 621.24, 32 GB RAM.vkDeviceWaitIdle (title staging), checkpoint a draw (submission 5,650, list 5 command 88), 15 addresses, all type 4The pair bound in run 3 is the second pair of my earlier comment (the one that is not pair A). Before #2102, with async builds, the three runs I reported above ended at mesh draws at ~160, ~211 and ~471 s; with it, one of three at ~275 s. Three runs are too few to call that a change, and two of the three were cut by memory, not by me choosing to stop.
Not checked: the compute library retranslated with #2102, TdrDelay (left at the default here), validation, Aftermath dumps.
AI-assisted (Claude Code).
Runs of
mesh-indirect-on-main(255501cd9) from a second machine: RTX 4070 SUPER, NVIDIA 621.01, 64 GB. Counts only.Tree:
mainfe1553456 + #674 #1662 #1851 #1849 #1905 #1957 #1950 #1886 #1894 + #1592. The mesh runs also have 255501cd9 merged in. 3 conflicts in the indirect-draw code against #1896: I keptmain'stopology_supported()and this branch's mesh path, and added amesh_windowskip reason.Shaders: main corpus,
fspx_gfx(18,493) and library (2,683) translated with--wave64-emulateon that tree. The warm offline pipeline cache holds all 26,503 main pipelines. Library andfspx_gfxpipelines are built at run time.Recipe:
boot.ps1, 1,200 s,LEONIDA_TITLE_WATCHDOG=0,LEONIDA_DEVICE_FAULT=1,LEONIDA_DEVICE_TYPE=6, arena 2,048 MiB, host image copy off (auto: NVIDIA), the same 21-press input script, a fresh save folder each run. One run per row. Call counts are trace calls, one per call.vkDeviceWaitIdle (title staging), checkpoint a draw (submission 12,091, list 8, command 217), 1 address, type 4pending_pipeline)mesh), replay skips 81,412 (pending_pipeline)Not checked: #2102 retranslation, validation, Aftermath, more than one run per row.
AI-assisted (Claude Code).
A correction to all my runs above, and runs that line up with Tyrannys's row D. RTX 4080 16 GB, NVIDIA 621.24, Windows 11, 32 GB RAM. Counts only.
Correction. Every run I reported here before today was in Series X identity. My own launch script never set
LEONIDA_DEVICE_TYPE, so the runtime answered ConsoleMode 0x64 (type 7), not the 0x60 (type 6) thatboot.ps1sets. I checked the log line in each of those runs. So my memory numbers (28-29 GB private) and my device-loss times are Series X numbers and should not be compared with the Series S rows here.Series S, same patched tree as before (with 255501c merged), async builds: 2 runs. One ran 696 s with no device loss (private memory 22-25 GB). One lost the device at 132 s, checkpoint a dispatch, 2 addresses (one type 1, one type 6), so not the mesh-draw timeout signature.
Series S, plain main 3abb99c (no mesh merge), async builds: 3 runs of 571, 651 and 661 s, no device loss in any. That matches row D. Shaders: main corpus, fspx_gfx (18,493), library (2,635) and the 29 FSPX programs,
--wave64-emulate.What stops those three main runs here is compile time on this driver, not a fault:
LEONIDA_COMPUTE_WARMUP=0, 60-90 frames/s until about 55 s, then submissions wait on single compute pipeline creates of 1.9-4.5 MB of SPIR-V: 91 waits (346 s in all, longest 40 s) and 61 waits (362 s, longest 135 s) in the two runs. The library here has 646 modules over 3.5 MB.Not checked: more than these runs per row, the mesh merge on current main in Series S mode, TdrDelay (default), validation, Aftermath.
AI-assisted (Claude Code).
Test result for this path on a slower card: on an RTX 3060 Ti 8 GB under Windows, with this branch merged (main ffcfe68f1 + #1592 + this, plus #1862 #1851 #1886 #1882 #1905 #1944 #1957), the device is lost to a Windows GPU timeout (nvlddmkm event 153) in 3 of 4 runs while mesh indirect dispatches are recorded. With only the mesh kind skipped (local switch), 0 of 2 runs lose it. A list budget of 2^22 (at most 32768 mesh groups) didn't prevent it, so the cost looks per group rather than in the count. Table and counts: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7182436404. Not a blocker for the change itself, but on Windows below 5080 class this path may need a dispatch split or a mesh-group cap. AI-assisted.