Skip to content

Tests: verify successful BCPack requests through the queue - #1047

Open
gloger2003 wants to merge 1 commit into
xcl-dev:mainfrom
gloger2003:test/dstorage-bcpack-queue
Open

gloger2003 wants to merge 1 commit into
xcl-dev:mainfrom
gloger2003:test/dstorage-bcpack-queue

Conversation

@gloger2003

@gloger2003 gloger2003 commented Nov 24, 2026 •

Copy link
Copy Markdown

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.

@DavidM1911

Copy link
Copy Markdown
Contributor

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

KiryaAfimin commented Nov 24, 2026 •

Copy link
Copy Markdown

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.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants