Tests: cover BC1 writes to scattered physical pages #760
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!760
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-760"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@gabrielsteglich on GitHub · 2026-11-24 04:47 UTC · original
gabrielsteglich:test/bc1-physical-page-destinations→main· +89 −0 · 1 files · 1 commits · openAdds a synthetic regression test for BCPack BC1 requests that write to scattered physical pages. This revision is based directly on
mainat930e8b4, which includes the decoder from #905 (67a3735).What is in it
crates/xcl/src/hle/dstorage.rs, reuse the syntheticbc1-16-1.binfixture and compare the queue's 128-byte output with a linear decode. The successful request crosses a 64 KiB page boundary and resolves its second page after enqueue. The truncated request returnsE_DECOMPRESSION, with the failure destination and guard bytes intact.Tested
cargo build --release --locked --workspaceandcargo test --release --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputcompleted successfully. On9ee0cd3, Cargo reported 752 passed, 0 failed, and 41 ignored. Both BC1 queue tests passed, as did the GPU compute readback.SKIPPED. Two require native wave64 and two require the D3D12 debug layer. Optional sample-data tests were disabled.Regression run
scripts/smoke.ps1ran the same retail title offline for 60 seconds per build with fresh title profiles and separate XCL DXIL caches. These runs check startup. The synthetic test exercises physical-page BC1 writes.mainPR head
Not tested
AI use
@MesshM on GitHub · 2026-11-24 05:15 UTC · original
Test run of
cb1de0f460a4bfe04f45b46d73e669dfa62eb173on AMD RDNA4. I merged it onto currentmain6025201locally (clean merge), so the tree tested includes the stack under it (#273, #208).Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 713 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 672 passed, 0 failed, 21 ignoredSKIPPED;bcpack_bc1_requests_into_scattered_physical_pagespasses.Review: Test-only on top of #273; I reviewed the top commit only.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@ivall on GitHub · 2026-11-24 10:39 UTC · original
#273 is superseded by #905 (merged in
67a3735), so this branch's base and fixture (bc1-16-1.bc1) are gone. The physical-page destination path with a BCPack request is still not covered by a test: if you want to keep this, rebase it ontomain– #208's lane fixtures are intests/data/bcpack, or a BC1 stream that the decoder takes can be built from them – and it can go in as a test-only PR.@gabrielsteglich on GitHub · 2026-11-24 16:11 UTC · original
Thanks for the guidance, @ivall. I rebased the physical-page BC1 test onto
mainwith the decoder from #905. The updated head is9ee0cd3. The workspace suite reported 752 passed and 0 failed on the RTX 3090 test machine, and both 60-second smoke runs exited cleanly. I updated the PR description with the results. The description check passed, and the Windows CI run is awaiting maintainer approval.@JJAutoCompare on GitHub · 2026-11-25 06:18 UTC · original
Empirical test report (
9ee0cd33)Commit
9ee0cd33e97a9ca6e5c96df9da246cbd916453c1from PR #760.Hardware / environment
XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1outside the Arc harness.1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad47), unoptimized test profile with debug info and incremental compilation disabled.Commands and results
cargo test --workspace --no-runcompiled the workspace test binaries and exited 0.cargo test -p xcl --lib hle::dstorage::tests::bcpack_bc1_requests_exited 0 with 2 passed, 0 failed, 0 ignored, and 0 skipped. The filter selected both BC1 queue tests affected by the PR. Rust's test harness filtered out 727 other tests.Observed behavior
S_OKand matched the linear decode across the two noncontiguous destination pages, including the page-table entry supplied after enqueue and before submit.E_DECOMPRESSION. The five-page comparison verified that all bytes outside the valid request's two write ranges retained their0xCDsentinel, including the truncated request's destinations.XCL_SAMPLE_BCPACKunset.Not tested
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr760-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 11:16 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.