Tests: name the TTPF archive the mip-chain check expects #747

Closed
Luxuryig wants to merge 1 commit from upstream-pr/752 into main
Luxuryig commented 2026-11-24 04:38:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Luxuryig on 2026-11-24T04:38:35Z.


retail_ttpf_textures_detile_with_their_mip_chains only passes on the archive it was written for: 912 textures and 3 volume LUTs (the README's "909 of 912"). XCL_SAMPLE_TTPF was documented as a generic texture archive, so another archive failed with a bare mip chain model: a / b that looks like a tiling-model bug. A size miss, or an archive with no volume LUTs, now names that expected archive. The numeric asserts are unchanged. Fixes #707.

What is in it

  • crates/xcl/src/gpu/texture.rs: the size-fit failure and an empty volume-LUT list panic with "expected archive has 912 textures and 3 volume LUTs", plus this archive's texture and volume-LUT counts. The 99% size fit, mip closeness, mip tail, and volume roughness asserts are the same.
  • README.md: XCL_SAMPLE_TTPF is that archive, not a generic texture archive.

Tested

  • NVIDIA GeForce RTX 4060 Ti, driver 32.0.16.1664 (nvidia-smi 616.64), 7949 MiB VRAM as XCL reports (nvidia-smi total 8188 MiB); AMD Ryzen 5 5500; Windows NT 10.0.26200.0; rustc 1.99.1; DXC 1.8.2502.11 from Windows Kits 10.0.26100.0 x64. Debug profile. XCL_SAMPLE_* unset.
  • cargo test -p xcl --lib gpu::texture::tests::retail_ttpf_textures_detile_with_their_mip_chains -- --test-threads=1 on 987378b: 1 passed, 0 failed, 0 ignored. Printed XCL_SAMPLE_TTPF not set – skipping.
  • .\scripts\test.ps1 on 987378b (--test-threads=4), run twice: the lib binary stopped at 657 passed, 3 failed, 21 ignored. Failed: hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels (cubemap extra_pages must be reused at same va), then transitions_apply_when_their_list_is_submitted and hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory with PoisonError. That cubemap test passes alone (--test-threads=1). It is not in this diff.
  • cargo test --workspace -- --test-threads=1 on 987378b: 701 passed, 0 failed, 41 ignored.
  • SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
  • SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
  • python .\scripts\test_pr_check.py: 3 tests, OK.
  • not set, their tests are skipped: XCL_SAMPLE_RPF, XCL_SAMPLE_DLLS, XCL_SAMPLE_TTPF, XCL_SAMPLE_BK2, XCL_SAMPLE_BVH4, XCL_SAMPLE_AWC, XCL_SAMPLE_XG, XCL_SAMPLE_DXC

Regression run

main:

xcl-smoke v1
commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175
gpu: NVIDIA GeForce RTX 4060 Ti
title: xcl-smoke-game
seconds: 20
exit: 0x0
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 1
device removals: 0
crashes: 0
peak commit: 2631 MB

this PR:

xcl-smoke v1
commit: 987378b265cb6326e43a41da08c428fcd4949424
gpu: NVIDIA GeForce RTX 4060 Ti
title: xcl-smoke-game
seconds: 20
exit: 0x0
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 1
device removals: 0
crashes: 0
peak commit: 2722 MB

Not tested

  • No retail Scarlett title is installed. Both smokes are the in-tree test title at C:\Users\User\AppData\Local\Temp\xcl-smoke-game, with --hello, for 20 seconds. A local TitleArgs parameter was added to scripts/smoke.ps1 for those runs only and is not in this commit. Stock smoke.ps1 cannot pass title args, so without --hello the test title exits 1 and smoke counts that as a crash. This smoke does not exercise the TTPF test (XCL_SAMPLE_TTPF unset). The title exits before a frame total is logged, so both runs show frames "none logged".
  • The mip-chain numeric asserts were not run on the 912-texture archive or on any other archive.
  • Not run on AMD.

AI use

  • Grok Build (Grok 4.7) wrote the code, tests if any, and the description.
<!-- greyfinch-sync:ivall/xcl:issue:5466180241 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/752). Originally posted by [Luxuryig](https://github.com/Luxuryig) on 2026-11-24T04:38:35Z. --- `retail_ttpf_textures_detile_with_their_mip_chains` only passes on the archive it was written for: 912 textures and 3 volume LUTs (the README's "909 of 912"). `XCL_SAMPLE_TTPF` was documented as a generic texture archive, so another archive failed with a bare `mip chain model: a / b` that looks like a tiling-model bug. A size miss, or an archive with no volume LUTs, now names that expected archive. The numeric asserts are unchanged. Fixes #707. **What is in it** - `crates/xcl/src/gpu/texture.rs`: the size-fit failure and an empty volume-LUT list panic with "expected archive has 912 textures and 3 volume LUTs", plus this archive's texture and volume-LUT counts. The 99% size fit, mip closeness, mip tail, and volume roughness asserts are the same. - `README.md`: `XCL_SAMPLE_TTPF` is that archive, not a generic texture archive. **Tested** - NVIDIA GeForce RTX 4060 Ti, driver 32.0.16.1664 (nvidia-smi 616.64), 7949 MiB VRAM as XCL reports (nvidia-smi total 8188 MiB); AMD Ryzen 5 5500; Windows NT 10.0.26200.0; rustc 1.99.1; DXC 1.8.2502.11 from Windows Kits 10.0.26100.0 x64. Debug profile. `XCL_SAMPLE_*` unset. - `cargo test -p xcl --lib gpu::texture::tests::retail_ttpf_textures_detile_with_their_mip_chains -- --test-threads=1` on `987378b`: 1 passed, 0 failed, 0 ignored. Printed `XCL_SAMPLE_TTPF not set – skipping`. - `.\scripts\test.ps1` on `987378b` (`--test-threads=4`), run twice: the lib binary stopped at 657 passed, 3 failed, 21 ignored. Failed: `hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` (`cubemap extra_pages must be reused at same va`), then `transitions_apply_when_their_list_is_submitted` and `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory` with `PoisonError`. That cubemap test passes alone (`--test-threads=1`). It is not in this diff. - `cargo test --workspace -- --test-threads=1` on `987378b`: 701 passed, 0 failed, 41 ignored. - SKIPPED `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`: no wave64 - SKIPPED `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware`: no wave64 - `python .\scripts\test_pr_check.py`: 3 tests, OK. - not set, their tests are skipped: XCL_SAMPLE_RPF, XCL_SAMPLE_DLLS, XCL_SAMPLE_TTPF, XCL_SAMPLE_BK2, XCL_SAMPLE_BVH4, XCL_SAMPLE_AWC, XCL_SAMPLE_XG, XCL_SAMPLE_DXC **Regression run** main: ``` xcl-smoke v1 commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175 gpu: NVIDIA GeForce RTX 4060 Ti title: xcl-smoke-game seconds: 20 exit: 0x0 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 1 device removals: 0 crashes: 0 peak commit: 2631 MB ``` this PR: ``` xcl-smoke v1 commit: 987378b265cb6326e43a41da08c428fcd4949424 gpu: NVIDIA GeForce RTX 4060 Ti title: xcl-smoke-game seconds: 20 exit: 0x0 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 1 device removals: 0 crashes: 0 peak commit: 2722 MB ``` **Not tested** - No retail Scarlett title is installed. Both smokes are the in-tree test title at `C:\Users\User\AppData\Local\Temp\xcl-smoke-game`, with `--hello`, for 20 seconds. A local `TitleArgs` parameter was added to `scripts/smoke.ps1` for those runs only and is not in this commit. Stock `smoke.ps1` cannot pass title args, so without `--hello` the test title exits 1 and smoke counts that as a crash. This smoke does not exercise the TTPF test (`XCL_SAMPLE_TTPF` unset). The title exits before a frame total is logged, so both runs show frames "none logged". - The mip-chain numeric asserts were not run on the 912-texture archive or on any other archive. - Not run on AMD. **AI use** - Grok Build (Grok 4.7) wrote the code, tests if any, and the description.
MesshM commented 2026-11-24 07:06:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:53:59Z.


Test run of 987378b265cb6326e43a41da08c428fcd4949424 on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows, not Wine), Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 701 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 660 passed, 0 failed, 21 ignored
  • 0 SKIPPED; retail_ttpf_textures_detile_with_their_mip_chains passes here without XCL_SAMPLE_TTPF (nothing to check), so only the no-sample path ran.

Review: Naming the archive the counts belong to turns a bare a / b mismatch on another archive into a message that says why. Test-only. I found nothing to change.

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 onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7122438782 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/752#issuecomment-7122438782). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T04:53:59Z. --- Test run of `987378b265cb6326e43a41da08c428fcd4949424` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows, not Wine), Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **701 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 660 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `retail_ttpf_textures_detile_with_their_mip_chains` passes here without `XCL_SAMPLE_TTPF` (nothing to check), so only the no-sample path ran. **Review:** Naming the archive the counts belong to turns a bare `a / b` mismatch on another archive into a message that says why. Test-only. I found nothing to change. **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 onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
DavidM1911 commented 2026-11-25 12:06:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:16:23Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7160826118 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/752#issuecomment-7160826118). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:16:23Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
github-actions[bot] commented 2026-11-29 07:41:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:41:40Z.


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:7252631959 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/752#issuecomment-7252631959). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:41:40Z. --- 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:04:10 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 987378b

Main commit 3416143 ("Tests: detile every TTPF archive entry and check mip chains") rewrote retail_ttpf_textures_detile_with_their_mip_chains. It now reads every entry of any RDS5 archive, and the README describes XCL_SAMPLE_TTPF as "an RDS5 texture archive, checked entry by entry". #707 is closed. The panics this PR adds name one specific archive (912 textures, 3 volume LUTs), so they no longer apply, and the hunk conflicts with main.
Recommendation: close (superseded by main commit 3416143).

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:7300346812 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/752#issuecomment-7300346812). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:04:10Z. --- **Triage (#1607)** – head 987378b Main commit 3416143 ("Tests: detile every TTPF archive entry and check mip chains") rewrote `retail_ttpf_textures_detile_with_their_mip_chains`. It now reads every entry of any RDS5 archive, and the README describes `XCL_SAMPLE_TTPF` as "an RDS5 texture archive, checked entry by entry". #707 is closed. The panics this PR adds name one specific archive (912 textures, 3 volume LUTs), so they no longer apply, and the hunk conflicts with main. Recommendation: close (superseded by main commit 3416143). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:39:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:39:29Z.


Closing as superseded: this change is already on main (34161433). main test retail_ttpf_textures_detile_with_their_mip_chains was rewritten by 3416143 (no more fit/sized asserts or 912/3-LUT message); the PR only adds panics to the removed asserts plus README wording; README on main already says any archive

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311456999 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/752#issuecomment-7311456999). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:39:29Z. --- Closing as superseded: this change is already on `main` (34161433). main test retail_ttpf_textures_detile_with_their_mip_chains was rewritten by 3416143 (no more fit/sized asserts or 912/3-LUT message); the PR only adds panics to the removed asserts plus README wording; README on main already says any archive Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

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!747
No description provided.