CLI: key embedded shaders on their declared container bytes #981

Open
github-bot wants to merge 2 commits from github-bot/gh-981 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-11-25 14:52 UTC · original
avt0m4t48:fix/embedded-shader-spans → main · +116 −6 · 5 files · 2 commits · open

Fixes #736. Thanks to yualk for isolating the raw scanner and the cache-key mismatch.

When the scanner finds a raw DXBC container inside another file, use the exact validated span from its header. The translator and the offline cache now hash the same bytes as the runtime lookup, even when a second container or padding follows it.

  • The original Windows CLI reported one known hash asked and zero found. The patched CLI found both named test containers in a file with prefix and suffix bytes.
  • A separate native Windows smoke test built two synthetic console shaders. The CLI translated the requested shader. An exact-byte cache lookup then hit it, while the unrequested shader missed and could be cached and read back afterward.
  • The Windows DXBC parser tests and the asset policy on the exact production commit passed. The fixtures use authored data. They do not measure retail boot time or GPU pipeline creation.

Original CLI reproduction · Patched Windows verification

AI-assisted using Codex.

**@⁠avt0m4t48** on GitHub · 2026-11-25 14:52 UTC · [original](https://github.com/fxceless/victory-fork/pull/981) `avt0m4t48:fix/embedded-shader-spans` → `main` · +116 −6 · 5 files · 2 commits · open Fixes #736. Thanks to yualk for isolating the raw scanner and the cache-key mismatch. When the scanner finds a raw DXBC container inside another file, use the exact validated span from its header. The translator and the offline cache now hash the same bytes as the runtime lookup, even when a second container or padding follows it. - The original Windows CLI reported one known hash asked and zero found. The patched CLI found both named test containers in a file with prefix and suffix bytes. - A separate native Windows smoke test built two synthetic console shaders. The CLI translated the requested shader. An exact-byte cache lookup then hit it, while the unrequested shader missed and could be cached and read back afterward. - The Windows DXBC parser tests and the asset policy on the exact production commit passed. The fixtures use authored data. They do not measure retail boot time or GPU pipeline creation. [Original CLI reproduction](https://github.com/avt0m4t48/victory-fork/actions/runs/45635131352) · [Patched Windows verification](https://github.com/avt0m4t48/victory-fork/actions/runs/45637575583) AI-assisted using Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:55:06 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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