Repository navigation
Conversation
|
Tested 909d3c2 (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
|
909d3c2 to
95d0053
Compare
Preserve graphics state and replay a strided DISPATCH_MESH argument buffer through VK_EXT_mesh_shader.
95d0053 to
4343395
Compare
|
Retail result with this merged onto current Because #1723 reworked 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
One detail for anyone testing the Windows artifact: my first run exited with I ran this single synthetic test locally. No game files were used. AI-assisted setup and report preparation. |
|
@DadaCap counts from your
So mesh indirect is no longer refused here (0 record skips). The last two losses end on the same dispatches ( Did you see the upscaler crash with |
|
@OreoFR thank you, these are useful counts. Correction (edited): I first wrote that I have not seen the 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 |
|
Retail data point for the merge DadaCap published (DadaCap/leonida RTX 4080 16 GB, NVIDIA 621.24, Windows 11 26300. Local merge: main b0f3d39 + #1849 #1893 #1889 #1860 #1886 #1882 #1887 #1851 + Snooozs's merge of #1592 +
So 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, 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 ( |
|
Second run with
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):
@quartz-heron-58 this matches what I see with
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 8481605 (#2102), Runtime: main b0f3d39 + #1849 #1893 #1889 #1860 #1886 #1882 #1887 #1851, Snooozs's merge of #1592,
The 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 Tree: Shaders: main corpus, Recipe:
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 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, What stops those three main runs here is compile time on this driver, not a fault:
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 ffcfe68 + #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: #1608 (comment). 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. |
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.