Test BCPack, XMA and mip arithmetic through GFX10-to-DXIL translation #1089

Open
Dathinel wants to merge 2 commits from upstream-pr/1092 into main
Dathinel commented 2026-11-25 19:14:49 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-25T19:14:49Z.


Port twelve synthetic GFX10-to-DXIL regression tests from JMAN730/project-flamingo. They dispatch compute shaders for BCPack bit operations, XMA numeric conversion, and mip dimensions, and compare readback against CPU reference implementations. The pairs case also exercises both unused bits in each packed entry. The change is confined to the test module.

Tested on an RTX 3050 Laptop (4 GB, driver 32.0.16.1062) and D3D12 WARP with Rust 1.98.1. All 12 tests passed on both backends without adapter skips. To reproduce:

cargo test --locked -p victory-shader --lib -- formats_function --nocapture --test-threads=1

The workspace suite stops in the existing victory-gpu WARP indirect-draw budget test. The same assertion fails on unmodified d510ee4. Workspace Clippy with and without all features also reports existing victory-gpu diagnostics on that base. GitHub CI stops at the same Clippy errors.

The complete shader unit-test binary at 41f418c finished in 598 s (227 passed, 3 ignored). Package Clippy passed with all targets and features and warnings denied. Some unrelated shader tests skip internally when an optional SDK or adapter capability is unavailable.

AI-assisted port and review. Only synthetic inputs were used.

Additional local control on this PR head: applying only the test assertion change from #1098 (f1f95fe) made the full victory-gpu unit suite pass (182 passed, 5 ignored). Running the remaining workspace packages outside victory-gpu and victory-shader gave 184 passed and 4 ignored, including the asset policy check. #1098 was used locally and is separate from this PR. The CI Clippy failure described above is independent.

Retested after a clean local merge with main at c36971b: all 12 format regression tests passed on RTX 3050 Laptop and WARP in 244.25 s, with no adapter skips. Package Clippy passed with all targets and features and warnings denied. CI on that main commit stopped at workspace Clippy in victory-gpu.

On d06e104 (merged with 52ac4ec), the 12 tests passed on WARP in 3.95 s with 7438 dispatch results checked. For this local run the harness selected WARP only and logged each completed case batch. The fixtures and expectations were unchanged. The RTX 3050 result above is from the earlier base. CI on d06e104 passed both Clippy steps and reported all 12 tests OK. The workspace policy step failed on the size of host.rs and lower.rs, outside this diff.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5497571559 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1092). Originally posted by [Dathinel](https://github.com/Dathinel) on 2026-11-25T19:14:49Z. --- Port twelve synthetic GFX10-to-DXIL regression tests from JMAN730/project-flamingo. They dispatch compute shaders for BCPack bit operations, XMA numeric conversion, and mip dimensions, and compare readback against CPU reference implementations. The pairs case also exercises both unused bits in each packed entry. The change is confined to the test module. Tested on an RTX 3050 Laptop (4 GB, driver 32.0.16.1062) and D3D12 WARP with Rust 1.98.1. All 12 tests passed on both backends without adapter skips. To reproduce: ```powershell cargo test --locked -p victory-shader --lib -- formats_function --nocapture --test-threads=1 ``` The workspace suite stops in the existing `victory-gpu` WARP indirect-draw budget test. The same assertion fails on unmodified `d510ee4`. Workspace Clippy with and without all features also reports existing `victory-gpu` diagnostics on that base. [GitHub CI](https://github.com/fxceless/victory-fork/actions/runs/45683286522) stops at the same Clippy errors. The complete shader unit-test binary at `41f418c` finished in 598 s (227 passed, 3 ignored). Package Clippy passed with all targets and features and warnings denied. Some unrelated shader tests skip internally when an optional SDK or adapter capability is unavailable. AI-assisted port and review. Only synthetic inputs were used. Additional local control on this PR head: applying only the test assertion change from #1098 (`f1f95fe`) made the full `victory-gpu` unit suite pass (182 passed, 5 ignored). Running the remaining workspace packages outside `victory-gpu` and `victory-shader` gave 184 passed and 4 ignored, including the asset policy check. #1098 was used locally and is separate from this PR. The CI Clippy failure described above is independent. Retested after a clean local merge with main at `c36971b`: all 12 format regression tests passed on RTX 3050 Laptop and WARP in 244.25 s, with no adapter skips. Package Clippy passed with all targets and features and warnings denied. [CI on that main commit](https://github.com/fxceless/victory-fork/actions/runs/45701787136) stopped at workspace Clippy in `victory-gpu`. On d06e104 (merged with 52ac4ec), the 12 tests passed on WARP in 3.95 s with 7438 dispatch results checked. For this local run the harness selected WARP only and logged each completed case batch. The fixtures and expectations were unchanged. The RTX 3050 result above is from the earlier base. [CI on d06e104](https://github.com/fxceless/victory-fork/actions/runs/45889030133) passed both Clippy steps and reported all 12 tests OK. The workspace policy step failed on the size of host.rs and lower.rs, outside this diff.
chatgpt-codex-connector[bot] commented 2026-11-25 19:15:06 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T19:15:06Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T20:12:34.202110Z d06e104 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7172032760 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1092#issuecomment-7172032760). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-25T19:15:06Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"d06e104f75c19b89f96de1fb3b74f92537e02a3f","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T20:12:34.202110Z">2026-11-26T20:12:34.202110Z</relative-time> | `d06e104` | New commits | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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/1092:upstream-pr/1092'
git switch 'upstream-pr/1092'

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/1092'
git switch 'upstream-pr/1092'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1092'
git switch 'upstream-pr/1092'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1092'
git switch 'main'
git merge --squash 'upstream-pr/1092'
git switch 'main'
git merge --ff-only 'upstream-pr/1092'
git switch 'main'
git merge 'upstream-pr/1092'
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
fxceless/victory-fork!1089
No description provided.