Shaders: link oversized mesh exports to live pixel inputs #1457
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1457
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Mikey970 on GitHub · 2026-11-28 20:18 UTC · original
Mikey970:pr/mesh-signature-link→main· +300 −13 · 8 files · 2 commits · merged 2026-11-29 00:24 UTCSome 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.
@nick0451 on GitHub · 2026-11-28 21:44 UTC · original
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.