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

Open
github-bot wants to merge 1 commit from github-bot/gh-752 into main AGit
Owner

@⁠Luxuryig on GitHub · 2026-11-24 04:38 UTC · original
Luxuryig:tests-ttpf-archive-message → main · +14 −3 · 2 files · 1 commits · open

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.
**@⁠Luxuryig** on GitHub · 2026-11-24 04:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/752) `Luxuryig:tests-ttpf-archive-message` → `main` · +14 −3 · 2 files · 1 commits · open `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.
retail_ttpf_textures_detile_with_their_mip_chains only passes on the archive it was written for (912 textures, 3 volume LUTs). XCL_SAMPLE_TTPF was documented as a generic texture archive, so pointing it at another one 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 archive. The numeric asserts are unchanged.

Assisted-by: Grok Build (Grok 4.7)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:31:23 +00:00
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 04:53 UTC · original

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.

**@⁠MesshM** on GitHub · 2026-11-24 04:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/752#issuecomment-7122438782) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 11:16 UTC · original

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

**@⁠DavidM1911** on GitHub · 2026-11-25 11:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/752#issuecomment-7160826118) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/752/head:github-bot/gh-752'
git switch 'github-bot/gh-752'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-752'
git switch 'github-bot/gh-752'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-752'
git switch 'github-bot/gh-752'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-752'
git switch 'main'
git merge --squash 'github-bot/gh-752'
git switch 'main'
git merge --ff-only 'github-bot/gh-752'
git switch 'main'
git merge 'github-bot/gh-752'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.