Shaders: PSV0 and signatures laid out as the validator expects #1208
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1208"
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?
Imported from Marvisak/VIctory. Originally posted by powplusplus on 2026-11-24T16:25:59Z.
On
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.Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:04Z.
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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:34:57Z.
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