Tests: verify successful BCPack requests through the queue #1040

Open
gloger2003 wants to merge 1 commit from upstream-pr/1047 into main
gloger2003 commented 2026-11-24 10:51:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gloger2003 on 2026-11-24T10:51:48Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5470747132 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1047). Originally posted by [gloger2003](https://github.com/gloger2003) on 2026-11-24T10:51:48Z. --- 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.
DavidM1911 commented 2026-11-24 12:05:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T11:30:53Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7130195175 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1047#issuecomment-7130195175). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T11:30:53Z. --- 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.
KiryaAfimin commented 2026-11-24 12:05:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KiryaAfimin on 2026-11-24T11:41:22Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7130419404 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1047#issuecomment-7130419404). Originally posted by [KiryaAfimin](https://github.com/KiryaAfimin) on 2026-11-24T11:41:22Z. --- 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.
DavidM1911 commented 2026-11-26 04:07:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T03:40:53Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7181930845 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1047#issuecomment-7181930845). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T03:40:53Z. --- 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
github-actions[bot] commented 2026-11-30 08:42:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:42:18Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273239351 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1047#issuecomment-7273239351). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:42:18Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:41:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:41:33Z.


Triage (#1607) – head b8da26d

No open or merged PR adds this test. Main's bcpack_bc1_requests_through_the_queue (dstorage.rs) runs successful BCPack requests only when XCL_SAMPLE_BCPACK is set. This test runs them every time, from the committed tests/data/bcpack/bc1-8192-3.bin fixture, with and without zlib. #2239 extends bcpack_parity.rs, the decoder, not the queue.
No problems found in the diff. It reads the process-wide stats() and asserts exactly (2, 0). That only holds while this file has a single test.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300998906 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1047#issuecomment-7300998906). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:41:33Z. --- **Triage (#1607)** – head b8da26d No open or merged PR adds this test. Main's `bcpack_bc1_requests_through_the_queue` (dstorage.rs) runs successful BCPack requests only when `XCL_SAMPLE_BCPACK` is set. This test runs them every time, from the committed `tests/data/bcpack/bc1-8192-3.bin` fixture, with and without zlib. #2239 extends `bcpack_parity.rs`, the decoder, not the queue. No problems found in the diff. It reads the process-wide `stats()` and asserts exactly (2, 0). That only holds while this file has a single test. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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/1047:upstream-pr/1047'
git switch 'upstream-pr/1047'

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/1047'
git switch 'upstream-pr/1047'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1047'
git switch 'upstream-pr/1047'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1047'
git switch 'main'
git merge --squash 'upstream-pr/1047'
git switch 'main'
git merge --ff-only 'upstream-pr/1047'
git switch 'main'
git merge 'upstream-pr/1047'
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
xcl-dev/xcl!1040
No description provided.