Microsoft's DXIL validator over every translated shader (main 7d93ee07): 25,622 pass, 71 mesh shaders over 32 KiB #4673

Open
opened 2026-12-01 01:24:52 +00:00 by github-bot · 3 comments
Owner

@⁠davemathews12 on GitHub · 2026-12-01 01:21 UTC · original

What was run

Microsoft's own DXIL validator (dxv, built from DirectXShaderCompiler 88571203 on Linux) over every shader victory translate emits from the 1.0.2.1 shaders.rpf, on main 7d93ee07. Shaders were written with VICTORY_EMIT_OUT=<dir>, once with VICTORY_HOST_WAVE=32 (NVIDIA) and once without (waves up to 64).

At run time the layer signs its DXIL itself and never runs the validator, so this is the first check of all of them against it.

Results (same for both wave sizes)

  • 25,693 distinct containers emitted: 25,622 pass.
  • 71 fail, all with one error: vertex plus primitive output size is greater than 32768.
  • All 71 are vertex programs lowered to mesh shaders, at 128 vertices / 128 primitives after mesh_prologue lowers the maxima: 33,280 to 36,352 bytes (median 33,792), 1.6–11 % over.
  • They are ped and fire/spatter/decal transforms: PedTransform{Fire,Decals,TransmissionFire}, PedTransformSkin*, Transform*Spatter*Fire*, MirrorReflectionTransform*, TransformSkinD*. Full list with hashes below.

This is the known shortcut in lower.rs mesh_prologue ("outputs past the cap even at the lane count are still emitted … drivers take them"). VICTORY_MESH_LINK=1 (#1457) would link them to their pixel inputs, but it's off by default and not in play's defaults. So every run hands these 71 to the driver as invalid DXIL. NVIDIA takes them; I have no evidence either way for AMD or Intel.

What wasn't tested

No game run (no Windows machine). This doesn't show that any visible bug comes from these 71. It's the list to check first if ped fire, decal or spatter effects misbehave on a non-NVIDIA card, and a data point for whether VICTORY_MESH_LINK should be on by default.

Reproduce

  1. Build dxv from DirectXShaderCompiler (Linux: cmake -C cmake/caches/PredefinedParams.cmake with SPIR-V off, then ninja dxv dxildll).
  2. VICTORY_EMIT_OUT=<dir> VICTORY_HOST_WAVE=32 victory translate <shaders.rpf>
  3. LD_LIBRARY_PATH=<build>/lib <build>/bin/dxv <dir>/<file>.dxil for each file.
The 71 (shader hash, name)
23dd6a3775477825 MSNC_VS_PedTransformSkinFire
3121e67bbd71dbb6 MSNC_VS_PedTransformSkinFire
47f44a8f2a0565db MSNC_VS_PedTransformSkinFire
68900e4f1f024c35 MSNC_VS_PedTransformSkinFire
a2ff7e7837e7739e MSNC_VS_PedTransformSkinFire
cc981766061e37b2 MSNC_VS_PedTransformSkinFire
25c01e81f9b3b09d MSNC_VS_PedTransformSkinTransmissionFire
2e8dacd567af2024 MSNC_VS_PedTransformSkinTransmissionFire
780971bac43bb9b8 MSNC_VS_PedTransformSkinTransmissionFire
785fa27c88588b16 MSNC_VS_PedTransformSkinTransmissionFire
a1369fee01bf5c0a MSNC_VS_PedTransformSkinTransmissionFire
b5a606a527270bd4 MSNC_VS_PedTransformSkinTransmissionFire
60f9746372f4ad2d MSNC_VS_PedTransformSkin_Decals
6a2459f265aae582 MSNC_VS_PedTransformSkin_Decals
8a621a22094767f3 MSNC_VS_PedTransformSkin_Decals
9080bc6aad1062a8 MSNC_VS_PedTransformSkin_Decals
f67b0467ab3066e0 MSNC_VS_PedTransformSkin_Decals
fd78eb72b8fa4641 MSNC_VS_PedTransformSkin_Decals
a7e6f56e963ae8d6 MSR_VS_MirrorReflectionTransformSkinD
3c2a9ba9910ad06f MSR_VS_TransformSkin
4a2ebf94d9636f16 MSR_VS_TransformSkinD
b76a0e6a2437533b MSR_VS_TransformSkinD_NoDeform
3fb28740dddfab52 MSR_VS_TransformSkinSpatterTransmissionFire
bb4ed3cc46d3f3a6 MSR_VS_TransformSkinSpatterTransmissionFire
37f607ca9a3b43e6 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass
3ccabae4caf79a29 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass
47aa0ef2ac70b331 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass
8f614d281ed88b49 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass
f52e4df6223ae211 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass
1984603583c27a2f MSR_VS_TransformSkin_Fire_AlphaPrepass
c614008f566cb2a4 MSR_VS_TransformSkin_Fire_AlphaPrepass
2475023fb5517763 MS_VS_MirrorReflectionTransformD
495c54f177c3b1f8 MS_VS_MirrorReflectionTransformSkinD
052e365ca656d85f MS_VS_PedTransformFire
0591d784444976c4 MS_VS_PedTransformFire
7e8580492e7a51fe MS_VS_PedTransformFire
cae2477d493c3988 MS_VS_PedTransformFire
df0816d7d5f1f1a2 MS_VS_PedTransformFire
92775547a2dfd4e7 MS_VS_PedTransformTransmissionFire
b903c805595a3f9b MS_VS_PedTransformTransmissionFire
be7cb028c31b0895 MS_VS_PedTransformTransmissionFire
c53c69116e9f28fc MS_VS_PedTransformTransmissionFire
d3d6790dd880471a MS_VS_PedTransformTransmissionFire
1c4341525e0dfa4a MS_VS_PedTransform_Decals
3c24964d207ca74f MS_VS_PedTransform_Decals
5fd6ab0653f0f0b7 MS_VS_PedTransform_Decals
e7f6ba5d1754ea8c MS_VS_PedTransform_Decals
f28ab4812b4d0595 MS_VS_PedTransform_Decals
4df2585254ccaa8e MS_VS_Transform
72da0ba1efaec1e0 MS_VS_TransformD
43b0a93b0ee4bdbb MS_VS_TransformSkin
afd3e04650b44596 MS_VS_TransformSkinD
a2385475e4e9db47 MS_VS_TransformSkinD_NoDeform
51a4ecf5bb1e3661 MS_VS_TransformSkinSpatterTransmissionFire
5b5705ecf9cab2fd MS_VS_TransformSkinSpatterTransmissionFire
175c31344b4e1135 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass
312d162de79f8ba1 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass
32e2f32c29605087 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass
65a8492e36da5e10 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass
86a5a6c01ea74012 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass
318626cf6ab538e6 MS_VS_TransformSkin_Fire_AlphaPrepass
f43803ebbb7e0681 MS_VS_TransformSkin_Fire_AlphaPrepass
188297e431dd761f MS_VS_TransformSpatter_Fire_AlphaPrepass
238e43d59a4091eb MS_VS_TransformSpatter_Fire_AlphaPrepass
42ee6a125a096ddb MS_VS_TransformSpatter_Fire_AlphaPrepass
7e7678e63808f549 MS_VS_TransformSpatter_Fire_AlphaPrepass
d1d99349b4023e2d MS_VS_TransformSpatter_Fire_AlphaPrepass
0d5757a32bf46266 MS_VS_TransformTransmissionSpatterFire
493f7e6b064c15d7 MS_VS_TransformTransmissionSpatterFire
7984977f257b22a1 MS_VS_Transform_Fire_AlphaPrepass
ba7d59cbdc728d60 MS_VS_Transform_Fire_AlphaPrepass
**@⁠davemathews12** on GitHub · 2026-12-01 01:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4672) ## What was run Microsoft's own DXIL validator (`dxv`, built from DirectXShaderCompiler 88571203 on Linux) over every shader `victory translate` emits from the 1.0.2.1 `shaders.rpf`, on `main` 7d93ee07. Shaders were written with `VICTORY_EMIT_OUT=<dir>`, once with `VICTORY_HOST_WAVE=32` (NVIDIA) and once without (waves up to 64). At run time the layer signs its DXIL itself and never runs the validator, so this is the first check of all of them against it. ## Results (same for both wave sizes) - 25,693 distinct containers emitted: **25,622 pass**. - **71 fail, all with one error**: `vertex plus primitive output size is greater than 32768`. - All 71 are vertex programs lowered to mesh shaders, at 128 vertices / 128 primitives after `mesh_prologue` lowers the maxima: 33,280 to 36,352 bytes (median 33,792), 1.6–11 % over. - They are ped and fire/spatter/decal transforms: `PedTransform{Fire,Decals,TransmissionFire}`, `PedTransformSkin*`, `Transform*Spatter*Fire*`, `MirrorReflectionTransform*`, `TransformSkinD*`. Full list with hashes below. This is the known shortcut in `lower.rs` `mesh_prologue` ("outputs past the cap even at the lane count are still emitted … drivers take them"). `VICTORY_MESH_LINK=1` (#1457) would link them to their pixel inputs, but it's off by default and not in `play`'s defaults. So every run hands these 71 to the driver as invalid DXIL. NVIDIA takes them; I have no evidence either way for AMD or Intel. ## What wasn't tested No game run (no Windows machine). This doesn't show that any visible bug comes from these 71. It's the list to check first if ped fire, decal or spatter effects misbehave on a non-NVIDIA card, and a data point for whether `VICTORY_MESH_LINK` should be on by default. ## Reproduce 1. Build `dxv` from DirectXShaderCompiler (Linux: `cmake -C cmake/caches/PredefinedParams.cmake` with SPIR-V off, then `ninja dxv dxildll`). 2. `VICTORY_EMIT_OUT=<dir> VICTORY_HOST_WAVE=32 victory translate <shaders.rpf>` 3. `LD_LIBRARY_PATH=<build>/lib <build>/bin/dxv <dir>/<file>.dxil` for each file. <details><summary>The 71 (shader hash, name)</summary> ``` 23dd6a3775477825 MSNC_VS_PedTransformSkinFire 3121e67bbd71dbb6 MSNC_VS_PedTransformSkinFire 47f44a8f2a0565db MSNC_VS_PedTransformSkinFire 68900e4f1f024c35 MSNC_VS_PedTransformSkinFire a2ff7e7837e7739e MSNC_VS_PedTransformSkinFire cc981766061e37b2 MSNC_VS_PedTransformSkinFire 25c01e81f9b3b09d MSNC_VS_PedTransformSkinTransmissionFire 2e8dacd567af2024 MSNC_VS_PedTransformSkinTransmissionFire 780971bac43bb9b8 MSNC_VS_PedTransformSkinTransmissionFire 785fa27c88588b16 MSNC_VS_PedTransformSkinTransmissionFire a1369fee01bf5c0a MSNC_VS_PedTransformSkinTransmissionFire b5a606a527270bd4 MSNC_VS_PedTransformSkinTransmissionFire 60f9746372f4ad2d MSNC_VS_PedTransformSkin_Decals 6a2459f265aae582 MSNC_VS_PedTransformSkin_Decals 8a621a22094767f3 MSNC_VS_PedTransformSkin_Decals 9080bc6aad1062a8 MSNC_VS_PedTransformSkin_Decals f67b0467ab3066e0 MSNC_VS_PedTransformSkin_Decals fd78eb72b8fa4641 MSNC_VS_PedTransformSkin_Decals a7e6f56e963ae8d6 MSR_VS_MirrorReflectionTransformSkinD 3c2a9ba9910ad06f MSR_VS_TransformSkin 4a2ebf94d9636f16 MSR_VS_TransformSkinD b76a0e6a2437533b MSR_VS_TransformSkinD_NoDeform 3fb28740dddfab52 MSR_VS_TransformSkinSpatterTransmissionFire bb4ed3cc46d3f3a6 MSR_VS_TransformSkinSpatterTransmissionFire 37f607ca9a3b43e6 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass 3ccabae4caf79a29 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass 47aa0ef2ac70b331 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass 8f614d281ed88b49 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass f52e4df6223ae211 MSR_VS_TransformSkinSpatter_Fire_AlphaPrepass 1984603583c27a2f MSR_VS_TransformSkin_Fire_AlphaPrepass c614008f566cb2a4 MSR_VS_TransformSkin_Fire_AlphaPrepass 2475023fb5517763 MS_VS_MirrorReflectionTransformD 495c54f177c3b1f8 MS_VS_MirrorReflectionTransformSkinD 052e365ca656d85f MS_VS_PedTransformFire 0591d784444976c4 MS_VS_PedTransformFire 7e8580492e7a51fe MS_VS_PedTransformFire cae2477d493c3988 MS_VS_PedTransformFire df0816d7d5f1f1a2 MS_VS_PedTransformFire 92775547a2dfd4e7 MS_VS_PedTransformTransmissionFire b903c805595a3f9b MS_VS_PedTransformTransmissionFire be7cb028c31b0895 MS_VS_PedTransformTransmissionFire c53c69116e9f28fc MS_VS_PedTransformTransmissionFire d3d6790dd880471a MS_VS_PedTransformTransmissionFire 1c4341525e0dfa4a MS_VS_PedTransform_Decals 3c24964d207ca74f MS_VS_PedTransform_Decals 5fd6ab0653f0f0b7 MS_VS_PedTransform_Decals e7f6ba5d1754ea8c MS_VS_PedTransform_Decals f28ab4812b4d0595 MS_VS_PedTransform_Decals 4df2585254ccaa8e MS_VS_Transform 72da0ba1efaec1e0 MS_VS_TransformD 43b0a93b0ee4bdbb MS_VS_TransformSkin afd3e04650b44596 MS_VS_TransformSkinD a2385475e4e9db47 MS_VS_TransformSkinD_NoDeform 51a4ecf5bb1e3661 MS_VS_TransformSkinSpatterTransmissionFire 5b5705ecf9cab2fd MS_VS_TransformSkinSpatterTransmissionFire 175c31344b4e1135 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass 312d162de79f8ba1 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass 32e2f32c29605087 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass 65a8492e36da5e10 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass 86a5a6c01ea74012 MS_VS_TransformSkinSpatter_Fire_AlphaPrepass 318626cf6ab538e6 MS_VS_TransformSkin_Fire_AlphaPrepass f43803ebbb7e0681 MS_VS_TransformSkin_Fire_AlphaPrepass 188297e431dd761f MS_VS_TransformSpatter_Fire_AlphaPrepass 238e43d59a4091eb MS_VS_TransformSpatter_Fire_AlphaPrepass 42ee6a125a096ddb MS_VS_TransformSpatter_Fire_AlphaPrepass 7e7678e63808f549 MS_VS_TransformSpatter_Fire_AlphaPrepass d1d99349b4023e2d MS_VS_TransformSpatter_Fire_AlphaPrepass 0d5757a32bf46266 MS_VS_TransformTransmissionSpatterFire 493f7e6b064c15d7 MS_VS_TransformTransmissionSpatterFire 7984977f257b22a1 MS_VS_Transform_Fire_AlphaPrepass ba7d59cbdc728d60 MS_VS_Transform_Fire_AlphaPrepass ``` </details>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 01:24:52 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-12-01 01:21 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU you have and which Windows version (10 or 11).

If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.

**@⁠github-actions[bot]** on GitHub · 2026-12-01 01:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4672#issuecomment-7297407733) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU you have and which Windows version (10 or 11). **If this issue needs logs and none are posted here within 12 hours, it will be closed.** Add them by editing your post or in a comment.
Author
Owner

@⁠tyr0nsur on GitHub · 2026-12-01 01:26 UTC · original · edited 2026-12-01 01:31 UTC

I reproduced the boundary on Windows with two synthetic SM 6.5 mesh shaders, each declaring 128 vertices and 128 primitives. With 64 vertex scalars (32,768 bytes) Windows SDK 10.0.26100.0's validator passed it. Adding one scalar per vertex (33,280 bytes) reproduced the same error. Current main's mesh_requires_link returned false and true for the two fixtures respectively. DirectX output-size rule

For the next comparison, VICTORY_EMIT_OUT writes the standalone template before the link-aware check. The same dump can still fail with VICTORY_MESH_LINK=1. The built-in standalone --validate check with linking enabled can validate a no-pixel-input variant. VICTORY_PAIRS with --validate --pipelines checks the linked mesh and pixel stages of a chosen pair and creates the PSO. A material-specific sample on a target adapter would tell us more about making the option a default. Dump order · Paired check

I also repeated the boundary test with 97 vertices and 97 primitives, dividing the exported scalars between both signatures. The validator and current main's predicate still agreed: 32,768 bytes after rounding both counts to 128 passed, and one additional primitive scalar (33,280 bytes) required linking.

**@⁠tyr0nsur** on GitHub · 2026-12-01 01:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4672#issuecomment-7297503207) · edited 2026-12-01 01:31 UTC I reproduced the boundary on Windows with two synthetic SM 6.5 mesh shaders, each declaring 128 vertices and 128 primitives. With 64 vertex scalars (32,768 bytes) Windows SDK 10.0.26100.0's validator passed it. Adding one scalar per vertex (33,280 bytes) reproduced the same error. Current main's `mesh_requires_link` returned `false` and `true` for the two fixtures respectively. [DirectX output-size rule](https://microsoft.github.io/DirectX-Specs/d3d/MeshShader.html#mesh-shader-output-size-limits) For the next comparison, `VICTORY_EMIT_OUT` writes the standalone template before the link-aware check. The same dump can still fail with `VICTORY_MESH_LINK=1`. The built-in standalone `--validate` check with linking enabled can validate a no-pixel-input variant. `VICTORY_PAIRS` with `--validate --pipelines` checks the linked mesh and pixel stages of a chosen pair and creates the PSO. A material-specific sample on a target adapter would tell us more about making the option a default. [Dump order](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/7d93ee07599bff5ceffdd1b50a1ed822bb854383/apps/victory/src/translate.rs#L777-L788) · [Paired check](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/7d93ee07599bff5ceffdd1b50a1ed822bb854383/apps/victory/src/translate.rs#L390-L416) I also repeated the boundary test with 97 vertices and 97 primitives, dividing the exported scalars between both signatures. The validator and current main's predicate still agreed: 32,768 bytes after rounding both counts to 128 passed, and one additional primitive scalar (33,280 bytes) required linking.
Author
Owner

@⁠davemathews12 on GitHub · 2026-12-01 01:35 UTC · original

No game was run for this report, so there are no play or crash logs: it is an offline check of the translator's output. This is the run's own output instead.

victory translate (main 7d93ee07, VICTORY_HOST_WAVE=32):
containers 26503 (614 duplicates skipped)
programs 26084 translated of 26084
DXIL 14247 emitted of 14247 vertex and pixel programs
2681 emitted of 2682 compute programs
8765 emitted of 8765 mesh programs

dxv (DirectXShaderCompiler 88571203) over every emitted container:
files 25693, ok 25622, FAIL 71
71 x "For shader 'main', vertex plus primitive output size is greater than 32768. Validation failed."
The same 71 fail without VICTORY_HOST_WAVE (waves up to 64).

Thanks @⁠tyr0nsur for reproducing the 32,768-byte boundary on Windows with the SDK validator.

**@⁠davemathews12** on GitHub · 2026-12-01 01:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4672#issuecomment-7297673208) No game was run for this report, so there are no play or crash logs: it is an offline check of the translator's output. This is the run's own output instead. victory translate (main 7d93ee07, VICTORY_HOST_WAVE=32): containers 26503 (614 duplicates skipped) programs 26084 translated of 26084 DXIL 14247 emitted of 14247 vertex and pixel programs 2681 emitted of 2682 compute programs 8765 emitted of 8765 mesh programs dxv (DirectXShaderCompiler 88571203) over every emitted container: files 25693, ok 25622, FAIL 71 71 x "For shader 'main', vertex plus primitive output size is greater than 32768. Validation failed." The same 71 fail without VICTORY_HOST_WAVE (waves up to 64). Thanks @⁠tyr0nsur for reproducing the 32,768-byte boundary on Windows with the SDK validator.
This discussion has been locked. Commenting is limited to contributors.
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#4673
No description provided.