Shaders: link oversized mesh exports to live pixel inputs #1457
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1457"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Mikey970 on 2026-11-28T20:18:46Z.
Some translated mesh shaders declare more than D3D12's 32 KiB mesh-output limit even after reducing their vertex and primitive maxima. A given material's pixel stage often reads only part of those exports.
Opt in with
VICTORY_MESH_LINK=1. Link oversized mesh outputs to the paired pixel shader's live inputs, keep system values and the original root bindings, and key the linked mesh variant by the paired pixel bytecode. Depth-only draws can drop unconsumed generic exports. The existingVICTORY_PAIRStranslation diagnostic can validate and create the linked pipelines. LeaveVICTORY_MESH_OUTPUT_STRICTunset for this experiment so lowering can emit the template.On our integration branch, the original implementation passed DXIL validation and created hardware pipelines for all 71 oversized mesh shaders paired with pixel programs from the archive. This upstream adaptation passed Rust syntax parsing and diff checks. Compilation and hardware validation against current main are pending.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T21:44:27Z.
A smoke test in play: RTX 3090 24 GB (driver 610.88), i9-14900K, Windows 11. A release build of this PR merged onto main
923e38c, run in turn with main and three other PR builds. Series S, DLSS Performance, frame generation off. The same frozen save, outdoors on a balcony, standing still. Two rounds, each run 40 s to settle and 60 s measured, then a screenshot.ERRORline. The picture matches main (the same view; only the idle pose differs). The shaders that do not translate are the same 10 as main.VICTORY_MESH_LINK=1the log shows no mesh-link line in this scene, so no oversized mesh shader seems to be created here. This confirms the switch does no harm when it has nothing to link; it does not test the linking itself.Tested with an AI assistant (Claude Code); results are from this PC.