Shader info: show stage I/O even when instruction decoding fails #353

Merged
FIocker merged 1 commit from upstream-pr/353 into main 2026-11-25 00:10:28 +00:00
FIocker commented 2026-11-24 02:31:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by FIocker on 2026-11-24T02:31:59Z.


Show the native stage and its input/output metadata in victory shader-info --disasm alongside the existing resource layout. Report this parsed metadata before instruction decoding, so a decode error still leaves useful context for shader investigation.

Built with cargo build -p victory --locked on Windows. Tested the CLI on two synthetic containers containing an empty vertex signature. One had a single end-program instruction. The other had truncated code and reported its decode error. Both printed the vertex stage I/O. The staged asset-policy check passed.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6573294252 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/353). Originally posted by [FIocker](https://github.com/FIocker) on 2026-11-24T02:31:59Z. --- Show the native stage and its input/output metadata in `victory shader-info --disasm` alongside the existing resource layout. Report this parsed metadata before instruction decoding, so a decode error still leaves useful context for shader investigation. Built with `cargo build -p victory --locked` on Windows. Tested the CLI on two synthetic containers containing an empty vertex signature. One had a single end-program instruction. The other had truncated code and reported its decode error. Both printed the vertex stage I/O. The staged asset-policy check passed.
jeremygold02 commented 2026-11-24 06:55:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:25:42Z.


Tested PR #353 at head e6ebec9ccf0bc27cfe0b5509ec3d07a0969eb25f (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at e6ebec9ccf0bc27cfe0b5509ec3d07a0969eb25f.

  • cargo test --locked -p victory --bin victory — passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s ); cases: run::tests::loader_lock_is_reentrant_and_exclusive.

Behavior covered: The CLI test target builds and its existing loader-lock test passes; it does not exercise the new shader survey formatting, and no CLI input was run.
Code: apps/victory/src/shader.rs

<!-- greyfinch-sync:Marvisak/VIctory:comment:7122009333 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/353#issuecomment-7122009333). Originally posted by [jeremygold02](https://github.com/jeremygold02) on 2026-11-24T04:25:42Z. --- Tested PR #353 at head `e6ebec9ccf0bc27cfe0b5509ec3d07a0969eb25f` (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at `e6ebec9ccf0bc27cfe0b5509ec3d07a0969eb25f`. - `cargo test --locked -p victory --bin victory` — passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s ); cases: run::tests::loader_lock_is_reentrant_and_exclusive. Behavior covered: The CLI test target builds and its existing loader-lock test passes; it does not exercise the new shader survey formatting, and no CLI input was run. Code: [apps/victory/src/shader.rs](https://github.com/Marvisak/VIctory/blob/e6ebec9ccf0bc27cfe0b5509ec3d07a0969eb25f/apps/victory/src/shader.rs)
mercuryVM commented 2026-11-24 07:00:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:56:49Z.

Review: APPROVED


Tested e6ebec9 on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (264 passed, 0 failed).

Layout and used-resource lines now go out ahead of gfx10::decode, still under if disasm, plus the new stage I/O line. A decode failure keeps that context, and the successful path prints the same lines as before plus I/O, in the same order. No change without --disasm.

No issues found.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6034943415 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/353#pullrequestreview-6034943415). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T06:56:49Z. **Review:** APPROVED --- Tested e6ebec9 on Windows 11, RTX 5070, MSVC: `cargo test --workspace --no-fail-fast` passes (264 passed, 0 failed). Layout and used-resource lines now go out ahead of `gfx10::decode`, still under `if disasm`, plus the new stage I/O line. A decode failure keeps that context, and the successful path prints the same lines as before plus I/O, in the same order. No change without `--disasm`. No issues found. AI-assisted (Claude Code).
upstream-sync closed this pull request 2026-11-25 01:03:28 +00:00
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!353
No description provided.