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

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

@⁠Dathinel on GitHub · 2026-11-25 19:14 UTC · original
Dathinel:tests/dathinel-format-valu → main · +656 −0 · 1 files · 2 commits · open

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.

**@⁠Dathinel** on GitHub · 2026-11-25 19:14 UTC · [original](https://github.com/fxceless/victory-fork/pull/1092) `Dathinel:tests/dathinel-format-valu` → `main` · +656 −0 · 1 files · 2 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:17 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 19:15 UTC · original · edited 2026-11-26 20:12 UTC

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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 19:15 UTC · [original](https://github.com/fxceless/victory-fork/pull/1092#issuecomment-7172032760) · edited 2026-11-26 20:12 UTC <!-- 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 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/1092/head:github-bot/gh-1092'
git switch 'github-bot/gh-1092'

Merge

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