Tests: detile every TTPF archive entry and check mip chains #2924
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2924"
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?
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T23:46:12Z.
Fixes #707. The opt-in TTPF archive test previously skipped tagged blocks and the final texture, so its 909/912 count did not check every entry. This change reads and detiles every entry and checks duplicated cubemap mips against the archive's full mip chain. It updates the README claim to match what the test measures; it does not change runtime texture handling.
Stacked on #1245; only the top commit (
34161433) belongs here. The first commit is #1245's mip-count correction, cherry-picked without modification.What is in it
crates/xcl/src/gpu/texture.rs: a test-only RDS5 reader for raw, zlib and BCPack blocks; full entry and subresource coverage; synthetic regressions for tagged blocks, the final entry, alpha masks, uniform mip tails and small volumes.README.md: describe full detiling coverage without claiming a native byte-for-byte reference.Tested
cargo build --offline --locked --workspace: passed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,451 passed, 0 failed, 47 ignored across 38 targets. There were 25 printed GPUSKIPPEDnotices; they are not counted as GPU coverage.cargo test --offline --locked -p xcl --lib gpu::texture::tests::ttpf_ -- --test-threads=1: 5 passed, 0 failed, 0 ignored.Regression run
maincommit8b957bec6f82495aec940944c6bf47faa02db590,scripts/smoke.ps1with a 60-second title duration did not get past startup shader and pipeline preparation within either the default 120-second startup allowance or a 520-second retry. Neither run printed aLog:path or generated a smoke block. Both ran in a bounded Windows job; the longer run peaked at 6,912 MiB of job commit with at least 23,010 MiB of system headroom. The PR-head run was not started because there is no valid main block to pair with it.crates/xcl/src/gpu/texture.rsare inside#[cfg(test)] mod tests; the only other changed file isREADME.md. Please review the diff for the maintainer-appliedtest-onlylabel described in CONTRIBUTING.md. That label waives the smoke requirement for this revision only.Not tested
AI use
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T00:35:23Z.
CI gate follow-up on head
34161433: both commits change tests only inside#[cfg(test)]ingpu/texture.rs, plus README. I ranscripts/pr_check.py --localagainst this diff and description: it fails only for the missing paired smoke blocks; with--test-only, it passes.I attempted the standard 60-second smoke on clean
mainwith a licensed local title. Its startup began preparing a 26,503-entry shader archive and did not reach a generatedxcl-smokeblock before the script's watchdog. I will not substitute a partial run for a smoke block. I am warming the reusable cache under a memory guard to try the pair again.Could a maintainer review the test-only diff and apply the
test-onlylabel? CONTRIBUTING.md specifies that label event as the smoke waiver for a test-only change in a runtime source file.AI use: Codex (GPT-6.2 Sol) checked the diff and local gate, ran the bounded smoke attempt, and drafted this note.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T01:57:16Z.
Maintainer review request for #2924: the
crates/xcl/src/gpu/texture.rsdiff is entirely within#[cfg(test)] mod tests; the only other change is to README.md. The full workspace suite and five opt-in archive samples are reported in the PR description.I tried
scripts/smoke.ps1on clean main8b957becwith a licensed retail title and a 60-second measured duration. Startup shader/pipeline preparation exceeded both the standard 180-second and an extended 580-second watchdog before XCL printed a log path, so no valid smoke block was generated. The runs were bounded; the extended run peaked at 6,912 MiB of job commit with at least 23,010 MiB of system headroom. I did not run the PR head without a main block to pair it with.Could a maintainer review this test-only diff and, if appropriate, apply the
test-onlylabel under CONTRIBUTING.md? I updated the PR description with the attempt and its limits. AI use: Codex (GPT-6.2 Sol) ran the checks and drafted this report.Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-27T05:02:14Z.
The test is good for XCL itself: it checks every texture in an archive instead of skipping a few.
Merged.