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

Open
jamal-fv wants to merge 1 commit from upstream-pr/648 into main
jamal-fv commented 2026-11-28 21:51:25 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-28T21:51:25Z.


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 #641 (related #540).

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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5544917500 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/648). Originally posted by [jamal-fv](https://github.com/jamal-fv) on 2026-11-28T21:51:25Z. --- ## 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 #641 (related #540). ## 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)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/648:upstream-pr/648'
git switch 'upstream-pr/648'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/648'
git switch 'upstream-pr/648'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/648'
git switch 'upstream-pr/648'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/648'
git switch 'main'
git merge --squash 'upstream-pr/648'
git switch 'main'
git merge --ff-only 'upstream-pr/648'
git switch 'main'
git merge 'upstream-pr/648'
git push origin 'main'
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
LakshanSivakumar/Native-Victory-macOS!648
No description provided.