Tests: verify BCPack BCn block packing #1359

Closed
hajduzsolt wants to merge 1 commit from upstream-pr/1369 into main
hajduzsolt commented 2026-11-24 15:19:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T15:19:30Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6585132627 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1369). Originally posted by [hajduzsolt](https://github.com/hajduzsolt) on 2026-11-24T15:19:30Z. --- 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.
upstream-sync closed this pull request 2026-11-24 17:05:36 +00:00
hajduzsolt commented 2026-11-24 17:06:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T16:12:38Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7137294052 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1369#issuecomment-7137294052). Originally posted by [hajduzsolt](https://github.com/hajduzsolt) on 2026-11-24T16:12:38Z. --- Closing standalone test-only PR in favor of functional compiler/runtime PRs with integrated unit tests.
DavidM1911 commented 2026-11-24 17:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T16:33:39Z.


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

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

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7137856928 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1369#issuecomment-7137856928). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T16:33:39Z. --- 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

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
xcl-dev/xcl!1359
No description provided.