translate: identify unsupported ACCC/FSPX shader containers #1649

Closed
JamesHoi wants to merge 1 commit from upstream-pr/1650 into main
JamesHoi commented 2026-11-24 20:27:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by JamesHoi on 2026-11-24T20:27:45Z.


victory translate groups containers without a DXIL part under “SM5 or older”. Driver compute containers with an ACCC part whose payload starts with FSPX also enter this branch. That makes the report point to the wrong shader format when investigating a missing compute pipeline.

This change gives ACCC/FSPX its own diagnostic, identifies legacy SHDR and SHEX parts, and reports container parse errors separately. It only changes the translation report.

Verified through the command-line entry point using synthetic containers and 29 locally available ACCC/FSPX containers. All 29 received the new classification. The tests and patch contain no game data.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6590763460 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1650). Originally posted by [JamesHoi](https://github.com/JamesHoi) on 2026-11-24T20:27:45Z. --- `victory translate` groups containers without a DXIL part under “SM5 or older”. Driver compute containers with an ACCC part whose payload starts with FSPX also enter this branch. That makes the report point to the wrong shader format when investigating a missing compute pipeline. This change gives ACCC/FSPX its own diagnostic, identifies legacy SHDR and SHEX parts, and reports container parse errors separately. It only changes the translation report. Verified through the command-line entry point using synthetic containers and 29 locally available ACCC/FSPX containers. All 29 received the new classification. The tests and patch contain no game data.
catminou4 commented 2026-11-24 22:01:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:41:53Z.

Review: COMMENTED


Static review only: apps/victory is Windows-only — nothing compiles on macOS; source review of the diff.

translate now classifies unsupported containers: ACCC part with FSPX payload → 'unsupported ACCC/FSPX shader (no DXIL part)', SHDR/SHEX parts → 'no DXIL part (SM5 or older)', else 'no DXIL part'. The unit test builds a minimal DXBC container by hand and checks the classification. Reason strings will show up in translate reports — good diagnostics improvement.

<!-- greyfinch-sync:Marvisak/VIctory:review:6047871168 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1650#pullrequestreview-6047871168). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T21:41:53Z. **Review:** COMMENTED --- Static review only: apps/victory is Windows-only — nothing compiles on macOS; source review of the diff. translate now classifies unsupported containers: ACCC part with FSPX payload → 'unsupported ACCC/FSPX shader (no DXIL part)', SHDR/SHEX parts → 'no DXIL part (SM5 or older)', else 'no DXIL part'. The unit test builds a minimal DXBC container by hand and checks the classification. Reason strings will show up in translate reports — good diagnostics improvement.
upstream-sync closed this pull request 2026-11-25 02:04:46 +00:00
Marvisak commented 2026-11-25 02:05:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:23:08Z.


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

Draft that labels ACCC/FSPX containers as unsupported in translate's report; main now translates them (translate.rs:492 falls back to the ACCC part, native.rs reads FSPX), so the label would be wrong.

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:7149490451 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1650#issuecomment-7149490451). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:23:08Z. --- Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. Draft that labels ACCC/FSPX containers as unsupported in translate's report; main now translates them (translate.rs:492 falls back to the ACCC part, native.rs reads FSPX), so the label would be wrong. 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.
Marvisak commented 2026-11-25 02:06:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:33:19Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: apps/victory/src/translate.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149681132 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1650#issuecomment-7149681132). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:33:19Z. --- <!-- victory-triage v1 head=6b12a361be06576af95655b0588625dc283040ca verdict=needs-rebase at=2026-11-25T01:33:19Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `apps/victory/src/translate.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_

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!1649
No description provided.