Microsoft's DXIL validator over every translated shader (main 7d93ee07): 25,622 pass, 71 mesh shaders over 32 KiB #4673
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#4673
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?
@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 shadervictory translateemits from the 1.0.2.1shaders.rpf, onmain7d93ee07. Shaders were written withVICTORY_EMIT_OUT=<dir>, once withVICTORY_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)
vertex plus primitive output size is greater than 32768.mesh_prologuelowers the maxima: 33,280 to 36,352 bytes (median 33,792), 1.6–11 % over.PedTransform{Fire,Decals,TransmissionFire},PedTransformSkin*,Transform*Spatter*Fire*,MirrorReflectionTransform*,TransformSkinD*. Full list with hashes below.This is the known shortcut in
lower.rsmesh_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 inplay'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_LINKshould be on by default.Reproduce
dxvfrom DirectXShaderCompiler (Linux:cmake -C cmake/caches/PredefinedParams.cmakewith SPIR-V off, thenninja dxv dxildll).VICTORY_EMIT_OUT=<dir> VICTORY_HOST_WAVE=32 victory translate <shaders.rpf>LD_LIBRARY_PATH=<build>/lib <build>/bin/dxv <dir>/<file>.dxilfor each file.The 71 (shader hash, name)
@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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%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.
@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_linkreturnedfalseandtruefor the two fixtures respectively. DirectX output-size ruleFor the next comparison,
VICTORY_EMIT_OUTwrites the standalone template before the link-aware check. The same dump can still fail withVICTORY_MESH_LINK=1. The built-in standalone--validatecheck with linking enabled can validate a no-pixel-input variant.VICTORY_PAIRSwith--validate --pipelineschecks 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 checkI 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.
@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.