Shaders: PSV0 and signatures laid out as the validator expects #1208
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1208
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1208/head"
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?
@powplusplus on GitHub · 2026-11-24 16:25 UTC · original
powplusplus:shader/psv-signature-validation→main· +268 −18 · 2 files · 1 commits · closed without mergingOn
ffe310e, dxil.dll rejects most emitted shaders with "Container part 'Pipeline State Validation' does not match expected for module" (15,054 programs in shaders.rpf), plus a few dozen signature mismatches.translate --validateover shaders.rpf, nothing else changes in what emits:The 53 mesh shaders left exceed the validator's 32 KB vertex plus primitive output limit.
Tested: clippy (default and all features),
cargo test -p victory-shaderwith three new tests.@Zipettte on GitHub · 2026-11-24 18:00 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
084d8d2:cargo test -p victory-shaderpasses, 123 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:34 UTC · original
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.Superseded by main: signature rows are already sorted by register only and one interpolation mode per row is already enforced (container::same_mode_per_row), and every emitted VS/PS validates. Its remaining change, unshared PSV0 strings, departs from the layout main validates with; its test's Psv literal also lacks main's gs field.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed