Tests: verify BCPack BCn block packing #1369

Closed
github-bot wants to merge 1 commit from gh-pr/1369/head into gh-pr/1369/base
Owner

@⁠hajduzsolt on GitHub · 2026-11-24 15:19 UTC · original
hajduzsolt:tests/bcpack-block-packing → main · +48 −0 · 1 files · 1 commits · closed without merging

Add synthetic checks for the final BC1, BC3, BC4 and BC5 block packing performed by the BCPack decoder. Fixed expected bytes cover RGB565 endpoints, index ordering, biased alpha endpoints and channel placement. The decoder is unchanged.

What is in it

  • crates/xcl/src/hle/bcpack/victory.rs: three self-contained unit tests.

Tested

  • Windows 11 Pro build 26300, Ryzen 7 9800X3D, Radeon RX 9070 XT, driver 32.0.32029.2010; Rust 1.98.1 MSVC, debug.
  • cargo build --workspace
  • cargo test -p xcl --lib block_packing_tests -- --test-threads=4: 3 passed, 0 failed, 0 ignored.
  • cargo test --workspace -- --test-threads=4: 754 passed, 0 failed, 41 ignored. The reported passes include tests that return early when prerequisites are missing.
  • Repeated with --nocapture: the same counts; test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state reported SKIPPED because the D3D12 debug layer is unavailable.

Regression run

  • Test-only change; no retail-title smoke run. The test-only label requires maintainer review.

Not tested

  • D3D12 debug layer, retail titles, or adapters other than the one above. The synthetic tests cover block packing, not a complete encoded BCPack stream.

AI use

  • Codex, GPT-6: selected and wrote the tests and ran the commands above.
**@⁠hajduzsolt** on GitHub · 2026-11-24 15:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1369) `hajduzsolt:tests/bcpack-block-packing` → `main` · +48 −0 · 1 files · 1 commits · closed without merging Add synthetic checks for the final BC1, BC3, BC4 and BC5 block packing performed by the BCPack decoder. Fixed expected bytes cover RGB565 endpoints, index ordering, biased alpha endpoints and channel placement. The decoder is unchanged. **What is in it** - `crates/xcl/src/hle/bcpack/victory.rs`: three self-contained unit tests. **Tested** - Windows 11 Pro build 26300, Ryzen 7 9800X3D, Radeon RX 9070 XT, driver 32.0.32029.2010; Rust 1.98.1 MSVC, debug. - `cargo build --workspace` - `cargo test -p xcl --lib block_packing_tests -- --test-threads=4`: 3 passed, 0 failed, 0 ignored. - `cargo test --workspace -- --test-threads=4`: 754 passed, 0 failed, 41 ignored. The reported passes include tests that return early when prerequisites are missing. - Repeated with `--nocapture`: the same counts; `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state` reported SKIPPED because the D3D12 debug layer is unavailable. **Regression run** - Test-only change; no retail-title smoke run. The test-only label requires maintainer review. **Not tested** - D3D12 debug layer, retail titles, or adapters other than the one above. The synthetic tests cover block packing, not a complete encoded BCPack stream. **AI use** - Codex, GPT-6: selected and wrote the tests and ran the commands above.
Cover endpoint packing, index order, and channel placement with synthetic blocks and fixed expected bytes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:52:10 +00:00
github-bot closed this pull request 2026-11-26 04:52:10 +00:00
Author
Owner

@⁠hajduzsolt on GitHub · 2026-11-24 16:12 UTC · original

Closing standalone test-only PR in favor of functional compiler/runtime PRs with integrated unit tests.

**@⁠hajduzsolt** on GitHub · 2026-11-24 16:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/1369#issuecomment-7137294052) Closing standalone test-only PR in favor of functional compiler/runtime PRs with integrated unit tests.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 16:33 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 16:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1369#issuecomment-7137856928) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.