Tests: detile every TTPF archive entry and check mip chains #2924

Merged
thehollowedone merged 2 commits from upstream-pr/2924 into main 2026-11-27 05:02:20 +00:00
thehollowedone commented 2026-11-26 23:46:12 +00:00 (Migrated from github.com)

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

  • Windows 11 build 26300, RTX 3080 Ti / NVIDIA 621.35, Ryzen 7 9800X3D, Rust 1.99.1, MSVC debug build.
  • 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 GPU SKIPPED notices; 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.
  • The opt-in archive test passed on five licensed local archives with 1/1, 912/912, 1,159/1,159, 6,204/6,204 and 10,013/10,013 entries detiled. The 912-entry sample yielded 4,412 subresources. No game data is included.

Regression run

  • Paired retail smoke blocks are pending. On clean main commit 8b957bec6f82495aec940944c6bf47faa02db590, scripts/smoke.ps1 with 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 a Log: 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.
  • All changes to crates/xcl/src/gpu/texture.rs are inside #[cfg(test)] mod tests; the only other changed file is README.md. Please review the diff for the maintainer-applied test-only label described in CONTRIBUTING.md. That label waives the smoke requirement for this revision only.

Not tested

  • Native console byte references for every output byte, the remaining local archives, AMD/Intel GPUs and a completed retail title runtime smoke run. This PR establishes archive detiling coverage, not visual or byte-for-byte parity.

AI use

  • Codex (GPT-6.2 Sol) investigated, wrote the test and README change, ran the tests and drafted this description. Codex (GPT-6.2 Astra) reviewed the test reader and identified edge cases checked by the added regressions.
<!-- greyfinch-sync:ivall/xcl:issue:5518719075 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2924). Originally posted by [thehollowedone](https://github.com/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** - Windows 11 build 26300, RTX 3080 Ti / NVIDIA 621.35, Ryzen 7 9800X3D, Rust 1.99.1, MSVC debug build. - `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 GPU `SKIPPED` notices; 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. - The opt-in archive test passed on five licensed local archives with 1/1, 912/912, 1,159/1,159, 6,204/6,204 and 10,013/10,013 entries detiled. The 912-entry sample yielded 4,412 subresources. No game data is included. **Regression run** - Paired retail smoke blocks are pending. On clean `main` commit `8b957bec6f82495aec940944c6bf47faa02db590`, `scripts/smoke.ps1` with 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 a `Log:` 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. - All changes to `crates/xcl/src/gpu/texture.rs` are inside `#[cfg(test)] mod tests`; the only other changed file is `README.md`. Please review the diff for the maintainer-applied `test-only` label described in CONTRIBUTING.md. That label waives the smoke requirement for this revision only. **Not tested** - Native console byte references for every output byte, the remaining local archives, AMD/Intel GPUs and a completed retail title runtime smoke run. This PR establishes archive detiling coverage, not visual or byte-for-byte parity. **AI use** - Codex (GPT-6.2 Sol) investigated, wrote the test and README change, ran the tests and drafted this description. Codex (GPT-6.2 Astra) reviewed the test reader and identified edge cases checked by the added regressions.
thehollowedone commented 2026-11-27 00:35:23 +00:00 (Migrated from github.com)

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)] in gpu/texture.rs, plus README. I ran scripts/pr_check.py --local against 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 main with a licensed local title. Its startup began preparing a 26,503-entry shader archive and did not reach a generated xcl-smoke block 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-only label? 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.

<!-- greyfinch-sync:ivall/xcl:comment:7206586000 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2924#issuecomment-7206586000). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T00:35:23Z. --- CI gate follow-up on [head `34161433`](https://github.com/xcl-dev/xcl/commit/3416143360f0c66f888d7292a8865954de895442): both commits change tests only inside `#[cfg(test)]` in `gpu/texture.rs`, plus README. I ran `scripts/pr_check.py --local` against 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 `main` with a licensed local title. Its startup began preparing a 26,503-entry shader archive and did not reach a generated `xcl-smoke` block 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-only` label? [CONTRIBUTING.md](https://github.com/xcl-dev/xcl/blob/main/CONTRIBUTING.md#what-a-pr-needs-to-be-merged) 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.
thehollowedone commented 2026-11-27 01:57:16 +00:00 (Migrated from github.com)

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.rs diff 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.ps1 on clean main 8b957bec with 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-only label 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.

<!-- greyfinch-sync:ivall/xcl:comment:7207710609 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2924#issuecomment-7207710609). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T01:57:16Z. --- Maintainer review request for #2924: the `crates/xcl/src/gpu/texture.rs` diff 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.ps1` on clean main `8b957bec` with 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-only` label 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.
Prime1997 commented 2026-11-27 05:02:14 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7210295499 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2924#issuecomment-7210295499). Originally posted by [Prime1997](https://github.com/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.
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!2924
No description provided.