Shaders: emit canonical system-value semantic names in ISG1/OSG1 signature parts #1042

Closed
gabrielcruzg3 wants to merge 1 commit from upstream-pr/1042 into main
gabrielcruzg3 commented 2026-11-24 15:15:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by gabrielcruzg3 on 2026-11-24T15:15:29Z.


Addresses #201 (signature part semantic name mismatches reported by \dxil.dll).

Changes

  • \crates/victory-shader/src/emit/container.rs, \mod.rs: Write canonical DXIL system-value semantic names (\SV_Position, \SV_Target, etc.) into \ISG1/\OSG1\ container parts so they match the module signature metadata.

Verification

  • Added synthetic test
    on_canonical_system_value_name_validates\ validated against \dxil.dll.
  • Passed \cargo clippy -- -D warnings, \cargo test -p victory-shader, and \cargo xtask policy.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6585048967 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1042). Originally posted by [gabrielcruzg3](https://github.com/gabrielcruzg3) on 2026-11-24T15:15:29Z. --- Addresses #201 (signature part semantic name mismatches reported by \dxil.dll\). ### Changes - \crates/victory-shader/src/emit/container.rs\, \mod.rs\: Write canonical DXIL system-value semantic names (\SV_Position\, \SV_Target\, etc.) into \ISG1\/\OSG1\ container parts so they match the module signature metadata. ### Verification - Added synthetic test \ on_canonical_system_value_name_validates\ validated against \dxil.dll\. - Passed \cargo clippy -- -D warnings\, \cargo test -p victory-shader\, and \cargo xtask policy\.
catminou4 commented 2026-11-24 17:03:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T16:28:58Z.

Review: APPROVED


Canonical DXIL system-value names (SV_TARGET -> SV_Target etc.) written into ISG1/OSG1 so dxil.dll validation accepts non-canonical console casing; fallback keeps custom names. The validator test is Windows-gated (skipped here), but the mapping is a straightforward kind->name table. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main ffe310e, cargo test -p <crate> --locked. Shader execution tests (valu_tests/host) are #[cfg(all(test, windows))], so macOS covers lowering/decode/unit tests only. victory-shader: 96 passed, 0 failed.

<!-- greyfinch-sync:Marvisak/VIctory:review:6043262727 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1042#pullrequestreview-6043262727). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T16:28:58Z. **Review:** APPROVED --- Canonical DXIL system-value names (SV_TARGET -> SV_Target etc.) written into ISG1/OSG1 so dxil.dll validation accepts non-canonical console casing; fallback keeps custom names. The validator test is Windows-gated (skipped here), but the mapping is a straightforward kind->name table. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main ffe310e, `cargo test -p <crate> --locked`. Shader execution tests (valu_tests/host) are `#[cfg(all(test, windows))]`, so macOS covers lowering/decode/unit tests only. victory-shader: 96 passed, 0 failed.
Zipettte commented 2026-11-24 17:04:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T16:30:24Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at ad33015: cargo test -p victory-shader passes, 121 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137770971 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1042#issuecomment-7137770971). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T16:30:24Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at ad33015: `cargo test -p victory-shader` passes, 121 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
upstream-sync closed this pull request 2026-11-25 01:05:22 +00:00
Marvisak commented 2026-11-25 01:07:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:30:55Z.


Automated triage for the maintainers. Closing because this change is already in main, or main has since replaced the code it patches.

Rewrites system-value names to canonical casing in ISG1/OSG1. The mismatches of #201 were row order, fixed in main (13091f6e): every emitted VS/PS validates there with the names as the console signature has them, in the part and the metadata alike. Synthetic test only.

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148587149 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1042#issuecomment-7148587149). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:30:55Z. --- Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. Rewrites system-value names to canonical casing in ISG1/OSG1. The mismatches of #201 were row order, fixed in main (13091f6e): every emitted VS/PS validates there with the names as the console signature has them, in the part and the metadata alike. Synthetic test only. 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1042
No description provided.