Tests: verify successful BCPack requests through the queue #1047

Open
github-bot wants to merge 1 commit from github-bot/gh-1047 into main AGit
Owner

@⁠gloger2003 on GitHub · 2026-11-24 10:51 UTC · original
gloger2003:test/dstorage-bcpack-queue → main · +100 −0 · 1 files · 1 commits · open

Follow-up to #905. Exercise successful synthetic BC1 requests through the DirectStorage factory and queue.

What is in it

  • Submit the existing fixture directly and after zlib. Check both HRESULTs, every block in both 64 KiB outputs, destination guard bytes, and BC1 request counters.
  • The diff adds one integration test under crates/xcl/tests. The existing unit tests still cover optional retail samples and failure cases.

Tested

  • Windows 11 26300.9974, AMD Radeon RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC, Windows SDK DXC 1.9.2602.17.
  • Workspace build and full debug suite with four threads on b8da26d: 742 passed, 0 failed, 41 ignored, no explicit GPU capability skips.
  • Independent verification of the earlier in-file version on an RTX 3060 Ti.

Regression run
Test-only diff under crates/xcl/tests.

Not tested

  • Retail titles or external XCL_SAMPLE_* inputs for this revision.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) implemented the test, ran the checks, and drafted this description.
**@⁠gloger2003** on GitHub · 2026-11-24 10:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/1047) `gloger2003:test/dstorage-bcpack-queue` → `main` · +100 −0 · 1 files · 1 commits · open Follow-up to #905. Exercise successful synthetic BC1 requests through the DirectStorage factory and queue. **What is in it** - Submit the existing fixture directly and after zlib. Check both HRESULTs, every block in both 64 KiB outputs, destination guard bytes, and BC1 request counters. - The diff adds one integration test under crates/xcl/tests. The existing unit tests still cover optional retail samples and failure cases. **Tested** - Windows 11 26300.9974, AMD Radeon RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC, Windows SDK DXC 1.9.2602.17. - Workspace build and full debug suite with four threads on b8da26d: 742 passed, 0 failed, 41 ignored, no explicit GPU capability skips. - [Independent verification of the earlier in-file version](https://github.com/ivall/xcl/pull/1047#issuecomment-7130195175) on an RTX 3060 Ti. **Regression run** Test-only diff under crates/xcl/tests. **Not tested** - Retail titles or external XCL_SAMPLE_* inputs for this revision. **AI use** - OpenAI Codex (GPT-6, exact variant unavailable) implemented the test, ran the checks, and drafted this description.
Exercise the existing synthetic BC1 stream through the DirectStorage factory and queue with and without zlib. Verify the HRESULTs, all BC1 blocks, and the destination guard bytes.

Assisted-by: OpenAI Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:41:43 +00:00
Author
Owner

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

Independent verification on current main 384f7f7 (branch already contains it — clean).

Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.

  • cargo test -p xcl --lib bcpack: 10 passed, 0 failed — bcpack_bc1_requests_through_the_queue now exercises the synthetic fixture end-to-end: raw BCPack request and the zlib-compressed variant both decode to the expected 64 KiB BC1 block pattern (endpoint-delta and index-inheritance cases covered by the generator). The retail XCL_SAMPLE_BCPACK path is unchanged.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

**@⁠DavidM1911** on GitHub · 2026-11-24 11:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/1047#issuecomment-7130195175) Independent verification on current `main` `384f7f7` (branch already contains it — clean). **Machine:** Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug. - `cargo test -p xcl --lib bcpack`: **10 passed, 0 failed** — `bcpack_bc1_requests_through_the_queue` now exercises the synthetic fixture end-to-end: raw BCPack request and the zlib-compressed variant both decode to the expected 64 KiB BC1 block pattern (endpoint-delta and index-inheritance cases covered by the generator). The retail `XCL_SAMPLE_BCPACK` path is unchanged. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Author
Owner

@⁠KiryaAfimin on GitHub · 2026-11-24 11:41 UTC · original · edited 2026-11-24 11:43 UTC

Independently tested 74d0aed7604acba0b21253021439073f1b6a1ad7 on Windows 11 Pro build 26200, Ryzen 5 5600, GeForce RTX 4070 (driver 621.01), Rust 1.100.0 MSVC, DXC 1.9.2609.5, debug build.

Tested

With XCL_SAMPLE_BCPACK unset, the focused queue test passed. Both the direct BC1 request and the zlib → BC1 request returned S_OK. All 65,536 output bytes matched the expected blocks in each case.

cargo test --locked -p xcl --lib hle::dstorage::tests::bcpack_bc1_requests_through_the_queue -- --exact --nocapture

cargo build --locked --workspace succeeded. cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output reported 737 passed, 0 failed, 41 ignored. Four tests counted as passed printed SKIPPED: two require wave64 and two require the D3D12 debug layer. All XCL_SAMPLE_* variables were unset for the full suite, so its totals also include sample-dependent tests that returned early.

Not tested

Retail BCPack streams against reference blocks, or world loading in a retail title.

AI use

OpenAI Codex ran the tests.

**@⁠KiryaAfimin** on GitHub · 2026-11-24 11:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/1047#issuecomment-7130419404) · edited 2026-11-24 11:43 UTC Independently tested `74d0aed7604acba0b21253021439073f1b6a1ad7` on Windows 11 Pro build 26200, Ryzen 5 5600, GeForce RTX 4070 (driver 621.01), Rust 1.100.0 MSVC, DXC 1.9.2609.5, debug build. **Tested** With `XCL_SAMPLE_BCPACK` unset, the focused queue test passed. Both the direct BC1 request and the zlib → BC1 request returned `S_OK`. All 65,536 output bytes matched the expected blocks in each case. ```powershell cargo test --locked -p xcl --lib hle::dstorage::tests::bcpack_bc1_requests_through_the_queue -- --exact --nocapture ``` `cargo build --locked --workspace` succeeded. `cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` reported **737 passed, 0 failed, 41 ignored**. Four tests counted as passed printed `SKIPPED`: two require wave64 and two require the D3D12 debug layer. All `XCL_SAMPLE_*` variables were unset for the full suite, so its totals also include sample-dependent tests that returned early. **Not tested** Retail BCPack streams against reference blocks, or world loading in a retail title. **AI use** OpenAI Codex ran the tests.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 03:40 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 03:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1047#issuecomment-7181930845) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/1047/head:github-bot/gh-1047'
git switch 'github-bot/gh-1047'

Merge

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