shader: rebuild image descriptor dword 5 from getDimensions (#641) #652

Open
github-bot wants to merge 1 commit from github-bot/gh-648 into main AGit
Owner

@⁠jamal-fv on GitHub · 2026-11-28 21:51 UTC · original
jamal-fv:fix/shader-refusals → main · +151 −9 · 4 files · 1 commits · draft

Summary

  • Rebuild GFX10 image descriptor dword 5 (MAX_MIP / ARRAY_PITCH / PERF_MOD) from getDimensions in Lower::descriptor_data; dwords 6–7 stay refused as metadata.
  • Unit test pins the accept/refuse split; docs/native-host.md and reports/shader-refusals.md record the corpus A/B.
  • Refs #645 (related #544).

Corpus sweep (refused-299, 6141 containers, outside the repo)

before after
ok 4584 4587
refused 1557 1554
  • Newly translated: 3 (compute_7bc776ad7536135c, compute_cd4e49742135ce3b, compute_e487768c1c93ecf7) — were image dwords 5–7.
  • REGRESSIONS: 0
  • Output changed: 3566 — every image descriptor_data path now emits the dword-5 rebuild (same unconditional style as dwords 1–4); see report.
  • Remaining image class: 205 as an image's dwords 6 to 7.

Test plan

  • cargo test -p victory-shader (421 passed, 3 ignored)
  • cargo xtask policy
  • tools/corpus/compare.sh baseline vs after (0 regressions)
  • Maintainer by-output sweep / merge check

Made with Cursor

**@⁠jamal-fv** on GitHub · 2026-11-28 21:51 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/648) `jamal-fv:fix/shader-refusals` → `main` · +151 −9 · 4 files · 1 commits · draft ## Summary - Rebuild GFX10 image descriptor **dword 5** (`MAX_MIP` / `ARRAY_PITCH` / `PERF_MOD`) from `getDimensions` in `Lower::descriptor_data`; dwords 6–7 stay refused as metadata. - Unit test pins the accept/refuse split; `docs/native-host.md` and `reports/shader-refusals.md` record the corpus A/B. - Refs #645 (related #544). ## Corpus sweep (refused-299, 6141 containers, outside the repo) | | before | after | |---|---:|---:| | ok | 4584 | 4587 | | refused | 1557 | 1554 | - **Newly translated: 3** (`compute_7bc776ad7536135c`, `compute_cd4e49742135ce3b`, `compute_e487768c1c93ecf7`) — were image dwords 5–7. - **REGRESSIONS: 0** - **Output changed: 3566** — every image `descriptor_data` path now emits the dword-5 rebuild (same unconditional style as dwords 1–4); see report. - Remaining image class: 205 as `an image's dwords 6 to 7`. ## Test plan - [x] `cargo test -p victory-shader` (421 passed, 3 ignored) - [x] `cargo xtask policy` - [x] `tools/corpus/compare.sh` baseline vs after (0 regressions) - [ ] Maintainer by-output sweep / merge check Made with [Cursor](https://cursor.com)
Programs that read MAX_MIP / ARRAY_PITCH as data were refused as
"an image's dwords 5 to 7". Dword 5 is rebuilt like the size fields;
metadata dwords 6–7 stay refused. Refs #641.

Co-authored-by: Cursor <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:52:50 +00:00
This pull request can be merged automatically.
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/652/head:github-bot/gh-648'
git switch 'github-bot/gh-648'

Merge

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