Port XEMSS parser, shader and offline translation improvements #361

Open
github-bot wants to merge 4 commits from github-bot/gh-361 into main AGit
Owner

@⁠tecnofifamobile-ai on GitHub · 2026-11-24 23:53 UTC · original
tecnofifamobile-ai:contribute/xemss-shader-and-pe → main · +620 −70 · 11 files · 4 commits · open

Summary

This consolidates the reusable changes from XEMSS into VIctory fork's existing PE parser, shader compiler and victory translate workflow.

  • Validate DXBC part offsets against the end of the header and offset table.
  • Validate AMD64 PE TLS directory size, callback addresses and null termination. Preserve a terminator in a section's zero-filled mapped tail.
  • Build shader blocks in decoded address order and reject late far jumps with no decoded target. Keep the fork's lane-spill handling.
  • Lower all 15 nonzero float image_store masks, including sparse masks and packed f16 operands. Add RGBA32F GPU readback coverage.
  • Add opt-in --output and --timings to victory translate. Export mode preserves distinct containers and existing output files, reports partial failures, and enforces the repository's output policy. The existing validation and pipeline checks remain in the workflow.

Ports XEMSS #5 and #6, plus the initial XEMSS DXBC boundary fix. f16 signed-zero coverage is already tracked in #278.

Verification

  • Windows x64 with the Windows SDK DXIL validator.
  • Full local Windows suite: 503 reported passed, 0 failed, 7 ignored, including the repository asset-policy test. The optional console-compiler comparisons were skipped.
  • PE and shader crate suites passed locally. The masked store regression passed on both hardware and WARP for f32 and packed f16.
  • CLI integration passed with a broken input, an unsupported stage, and two distinct containers sharing a DXIL part. Both good outputs were written and preserved on rerun.
  • Workspace Clippy passed with default and all features using -D warnings. git diff --check passed.

All new fixtures are generated by the tests. No game inputs are included in this change.

AI-assisted with Codex.

**@⁠tecnofifamobile-ai** on GitHub · 2026-11-24 23:53 UTC · [original](https://github.com/fxceless/victory-fork/pull/361) `tecnofifamobile-ai:contribute/xemss-shader-and-pe` → `main` · +620 −70 · 11 files · 4 commits · open ## Summary This consolidates the reusable changes from XEMSS into VIctory fork's existing PE parser, shader compiler and `victory translate` workflow. - Validate DXBC part offsets against the end of the header and offset table. - Validate AMD64 PE TLS directory size, callback addresses and null termination. Preserve a terminator in a section's zero-filled mapped tail. - Build shader blocks in decoded address order and reject late far jumps with no decoded target. Keep the fork's lane-spill handling. - Lower all 15 nonzero float `image_store` masks, including sparse masks and packed f16 operands. Add RGBA32F GPU readback coverage. - Add opt-in `--output` and `--timings` to `victory translate`. Export mode preserves distinct containers and existing output files, reports partial failures, and enforces the repository's output policy. The existing validation and pipeline checks remain in the workflow. Ports [XEMSS #5](https://github.com/tecnofifamobile-ai/XEMSS/pull/5) and [#6](https://github.com/tecnofifamobile-ai/XEMSS/pull/6), plus the initial XEMSS DXBC boundary fix. f16 signed-zero coverage is already tracked in #278. ## Verification - Windows x64 with the Windows SDK DXIL validator. - Full local Windows suite: 503 reported passed, 0 failed, 7 ignored, including the repository asset-policy test. The optional console-compiler comparisons were skipped. - PE and shader crate suites passed locally. The masked store regression passed on both hardware and WARP for f32 and packed f16. - CLI integration passed with a broken input, an unsupported stage, and two distinct containers sharing a DXIL part. Both good outputs were written and preserved on rerun. - Workspace Clippy passed with default and all features using `-D warnings`. `git diff --check` passed. All new fixtures are generated by the tests. No game inputs are included in this change. AI-assisted with Codex.
Port the validated parser changes from XEMSS 32ee768 and tecnofifamobile-ai/XEMSS#6.
Adapt tecnofifamobile-ai/XEMSS#6 while keeping VIctory fork lane-spill handling.
Port tecnofifamobile-ai/XEMSS#5, including all 15 masks on hardware and WARP with f32 and packed f16 inputs.
Integrate the batch capabilities from tecnofifamobile-ai/XEMSS#6 into the existing VIctory fork command.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:39 +00:00
This pull request has changes conflicting with the target branch.
  • apps/victory/src/main.rs
  • apps/victory/src/translate.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/361/head:github-bot/gh-361'
git switch 'github-bot/gh-361'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-361'
git switch 'github-bot/gh-361'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-361'
git switch 'github-bot/gh-361'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-361'
git switch 'main'
git merge --squash 'github-bot/gh-361'
git switch 'main'
git merge --ff-only 'github-bot/gh-361'
git switch 'main'
git merge 'github-bot/gh-361'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.