First renders on an RTX 5080: world meshes reach the G-buffer (wave64 mesh lanes numbered by the host) #940
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#940
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Peppacodes on GitHub · 2026-11-24 14:23 UTC · original
What renders
On an NVIDIA RTX 5080 (32-lane waves only), the world's mesh shaders now draw world geometry into the G-buffer. The presented image is still black.
From
VICTORY_DUMP_TARGETS=1:Images stay local (rule #1). Counts, hashes and frame numbers only here.
The new change
Shaders: wave64 mesh code counts lanes the host's way on 32-lane hostsed9afc0. It is one small change inlane_index()inemit/lower.rs, on top of #189.Mesh shaders can't declare
WaveSize, so on a 32-lane host a wave64 mesh program runs as two 32-lane waves:lane_index()numbered mesh lanes by console lane (flattenedThreadIdInGroup & 63).v_mbcntand lane picks on console lanes 32–63 read an empty half.When #189's mode isn't
Native, the change numbers wave64 mesh lanes by the host lane (WaveGetLaneIndex), so masks and lane numbers agree within each 32-lane half. Mesh code reads no other lanes (the existing comment there, and @ByMateos's census in #778), so each half acts as a narrower console wave.It doesn't cover the 115 programs with explicit lane reads. @alfycs's
feat/wave64-mesh-emulation(LDS emulation) is the fuller fix for those. This is a much smaller alternative for the rest.Tree and settings
The tree is
mainffe310eplus:It's a diagnostics build, run with
TdrDelay60 s and the title's hang watchdog turned off. I used a localVICTORY_PATCH=2215c70:9090,2215bdc:9090; that's the same thing as #454 and #917.VICTORY_SKIP_WAVE64=meshWave32. Pipeline-creation failures drop from 148 to 9. About 9 minutes in the world at 1 fps, 264 draws per frame, no device removal. The screen is black.VICTORY_SHADER_LOOP_LIMIT=64DXGI_ERROR_DEVICE_HUNGafter a 0.55 s submission at frame 1560: in flight were mesh97356b4fcf9fbb3fand the compute chain2c3592e9bbad543f.Not checked yet
No game files are attached. AI-assisted (Claude Code): the runs were made on my machine with my own copy.
@EduBertozzi on GitHub · 2026-11-24 14:24 UTC · original
One note for whoever carries
ed9afc0forward: the compute fallback for GPUs without mesh shaders (#3,pr/mesh-compute-fallbackon my fork) lowers mesh programs through the samelane_index().s.meshstays set whenmesh_as_computeis on, so the compute form also numbers lanes asflattenedThreadIdInGroup & 63.On a 32-lane GPU without mesh shaders (Pascal, or Intel iGPUs before Arc running 32-wide), a wave64 mesh program run as compute therefore has the same mismatch you describe: host-ballot masks covering 32 lanes, numbered by console lane. The change should cover that path as written. Its condition is on #189's mode, not on the shader stage. If it lands, I'll add a case to the fallback's synthetic tests: a 128-thread wave64 program using
v_mbcnt, run as compute on a GTX 1060.AI-assisted (Claude Code).
@Peppacodes on GitHub · 2026-11-24 14:24 UTC · original
A/B result, one run each, same tree and settings (loop limit 64, mesh allowed, watchdog off). The only difference is
ed9afc0:ed9afc0(run 18)0x887A0006, TDR at 60 s)DispatchMesh(kind 10) ofmesh 9e3584abcc819e6c, pixel b8df138593588098, list 9 at command 274So with a loop limit of 64 alone,
9e3584abcc819e6cstill runs past a minute on this card. With the host-lane numbering, the world frames finish in well under a second and the meshes reach the G-buffer.The run with the change still ends in a fault (
DEVICE_HUNGafter a 0.55 s submission, not a timeout) at frame 1560. Next run: the same, plus #587 and #452.@Peppacodes on GitHub · 2026-11-24 14:28 UTC · original
Run 20: the same tree plus #587 (mesh output bounds) and #452 (spin limit, its defaults, no manual loop limit). Wave64 mesh allowed, watchdog off, RTX 5080.
New on this card, possibly relevant to the
E_OUTOFMEMORYrefusals reported on #233/#334: a pipeline worker thread overflowed its stack inside the driver's compiler. The trace isthread 'victory-pipelines-4' has overflowed its stack,0xc00000fd, withnvgpucomp64.dll+0x254c175and+0x254c362repeating. That was followed byhost pipeline refused … 0x8007000Efor computec7d7a6283fad3cd6. The driver here is 32.0.16.1692. The workers use Rust's default 2 MB stack (pipeline/make.rs); I'll try a bigger one next and report whether that program then gets a pipeline.@Peppacodes on GitHub · 2026-11-24 14:29 UTC · original
Correction to the run 20 note above: the device was removed at frame 1653, about a minute before I posted it. The cause was a 63.3 s submission (
0x887A0006, TDR at 60 s), withDispatchMeshofmesh 51ff151f75cd5759, pixel 7fe75645c406cac6(list 1, command 501 of 546) andmesh 2a3ee88be3ae34a4in flight. The four world submissions before it took 0.3–0.86 s. So #452's spin limit doesn't bound that loop. Next: the same tree with @KenzoPortela's loop budget, which kept an RTX 3070 in the world for 30 minutes.@bailu12300 on GitHub · 2026-11-24 14:37 UTC · original
Ported
ed9afc0to an RTX 5060 tree — the world still presents blackTried your mesh-host-lane change on a minimal local tree (upstream
ffe310e+ #876 typeless + #902 heap fallback + the#728waterfall/lane fork). That tree has noWave64Mode/host_lane_index()(no #189), so I reproduced the semantics inline inlane_index():Compiles clean, runs through the same boot path. Result: presented image unchanged —
500 draws/frame, 1.0 fps (1080 ms/frame), uniform dark purple, same as before the patch. No device removal, nono host texture, heap still capped at 1,000,000 for 1,245,184.So on my machine the mesh lane numbering isn't what gated the picture: the scene has been reaching the title's targets (per your dump and #841's) all along, and the swapchain side stays zero. Two independent confirmations now (your 5080 G-buffer content, #841's 3090 2560×1440 non-zero / 3840×2160 zero) point at the present/copy path rather than mesh lane reads.
If it helps:
VICTORY_DUMP_TARGETSon this tree crashes after ~1 min with0x80000003 at victory-image…+0x1e1d3c8, so I couldn't get my own pixel stats — the copy-path comparison needs a tree where the dump survives.@Peppacodes on GitHub · 2026-11-24 14:52 UTC · original
Update from the same RTX 5080: with mpDom's
pr/present-1440p-fallback(d6897fa, which is r4tedx's integration stack plusVICTORY_PRESENT_1440P), the world is on screen. It's a street scene in false colour, at 3,000–3,800 draws per frame. Details, plus a save-file pitfall for scripted runs, are in #841.github-bot referenced this issue2026-11-26 07:33:19 +00:00
github-bot referenced this issue2026-11-26 07:33:40 +00:00
github-bot referenced this issue2026-11-26 07:43:55 +00:00
@Marvisak on GitHub · 2026-11-25 06:57 UTC · original
Automated triage for the maintainers.
Thanks for the A/B runs on the RTX 5080. On
main,lane_indexincrates/victory-shader/src/emit/lower.rsstill numbers mesh lanes by console lane (mesh_thread() & (wave - 1)), so the change ined9afc0(host lane numbering for wave64 mesh code on 32-lane hosts) isn't there. No open pull request carries it, and it is stacked on #189. Pull requests are open to everyone again, so please open one once #189's mode switch is settled. Note the comment above: the compute fallback in PR #961 goes through the samelane_index.Wave64 mesh programs on 32-lane hosts are discussed in #778, and the NVIDIA world hang is tracked in #71. The later device removals in these runs were long
DispatchMeshsubmissions with this change applied, so the change doesn't end the hang on its own. Left for the maintainers.Generated by Claude Code