Shaders: link oversized mesh exports to live pixel inputs #1457

Manually merged
github merged 2 commits from github-bot/gh-1457 into gh-pr/1457/base 2026-11-29 00:27:48 +00:00 AGit
Owner

@⁠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 UTC

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 existing VICTORY_PAIRS translation diagnostic can validate and create the linked pipelines. Leave VICTORY_MESH_OUTPUT_STRICT unset 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.

**@⁠Mikey970** on GitHub · 2026-11-28 20:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1457) `Mikey970:pr/mesh-signature-link` → `main` · +300 −13 · 8 files · 2 commits · merged 2026-11-29 00:24 UTC 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 existing `VICTORY_PAIRS` translation diagnostic can validate and create the linked pipelines. Leave `VICTORY_MESH_OUTPUT_STRICT` unset 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 20:22:53 +00:00
Author
Owner

@⁠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.

  • No crash, device loss or ERROR line. The picture matches main (the same view; only the idle pose differs). The shaders that do not translate are the same 10 as main.
  • With VICTORY_MESH_LINK=1 the 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.
  • fps in round 2: 23.8 against main 23.0-23.5. Round 1 (18.5) was slow for every new build in the session, a first-start cost.

Tested with an AI assistant (Claude Code); results are from this PC.

**@⁠nick0451** on GitHub · 2026-11-28 21:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1457#issuecomment-7246237158) 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. - No crash, device loss or `ERROR` line. The picture matches main (the same view; only the idle pose differs). The shaders that do not translate are the same 10 as main. - With `VICTORY_MESH_LINK=1` the 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. - fps in round 2: 23.8 against main 23.0-23.5. Round 1 (18.5) was slow for every new build in the session, a first-start cost. Tested with an AI assistant (Claude Code); results are from this PC.
github-bot referenced this pull request from a commit 2026-11-29 00:27:22 +00:00
github-bot changed target branch from main to gh-pr/1457/base 2026-11-29 00:27:37 +00:00
github manually merged commit 69ee869a5e into gh-pr/1457/base 2026-11-29 00:27:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1457
No description provided.