Repository navigation
Tests: check cubemap tile reuse independently of idle page reclamation - #447
Conversation
A placement sweeps pages belonging to unrelated targets idle for two seconds. Comparing device-wide bytes before and after the second cube can therefore fail when those old targets expire. Snapshot the mapped title-page and extra-page pool/tile identities for the cube and require the new and original resources to share all of them. Keep the existing placement-growth, reclamation and pixel-readback checks.
|
Independent RTX 3060 check of PR #447. Tested on NVIDIA GeForce RTX 3060 12 GB (610.88 / 32.0.16.1088), Intel Core i5-8400, Windows 11 Home 26200.9974, Rust 1.100.0 x86_64-pc-windows-msvc, MSVC linker 14.44.35230, debug.
On this same machine, the earlier Not tested: full workspace at this PR head, retail titles, or other adapters. AI use: OpenAI Codex (GPT-6) ran the local checks and drafted the report. |
|
Independent RTX 2060 check of PR #447. Tested — Windows 11 Pro build 26300, Intel Core i7-9700K, NVIDIA GeForce RTX 2060 (driver cargo test --release --locked -p xcl --lib hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels -- --exact --test-threads=1 --nocapture
Not tested — The full workspace suite on this PR, other GPUs, or a retail title. AI use — Codex (GPT-6) ran the tests and drafted this report. |
|
Test run on AMD RDNA4 – commit Tested
Not tested
Run and report: Claude Code (Claude Opus 5.5). |
|
Independent Turing check of #447. Tested: NVIDIA GeForce RTX 2060 SUPER 8 GB (Turing, 32-wide), driver 617.14 (32.0.16.1714), Intel Core i5-9400F, Windows 11 Pro 26300, Rust 1.100.0 x86_64-pc-windows-msvc, debug.
The failure on |
towiice
left a comment
There was a problem hiding this comment.
Tested PR head 48e7434 on NVIDIA GeForce GTX 1650 SUPER (Turing / TU116, wave32, driver 610.88), Windows 11 build 10.0.26300 (26H2), Rust 1.100.0 (stable-x86_64-pc-windows-gnullvm), DXC v1.9.2609:
cargo test -p xcl --lib cube -- --test-threads=4: 5 passed, 0 failed (0.58 s), includinggpu::recomp::tests::gpu_retail_vs_blit_gen_amb_cubeandgpu::recomp::tests::gpu_cube_array_slices.
All cubemap tests pass on Turing.
|
Test of #447 on RTX 3080 / Zen 1 / Windows 10, plus the PR merged onto current Tested: NVIDIA GeForce RTX 3080 10 GB, driver 617.42 (32.0.16.1742); AMD Ryzen 5 1600 (Zen 1); Windows 10 Pro 22H2 (19045.6466) with Agility SDK 1.620.2 through
Not tested: other GPUs, release build, any title. AI use: Claude Code with Claude Opus 5.5 ran the tests and drafted this report. |
|
Independent Ampere 8 GB (RTX 3070, driver 610.88) check on exact PR head Tested
Not tested
AI use
|
|
Independent RTX 4060 validation of PR #447. Tested
PR head: The original cubemap assertion failed on local main ( Results on PR #447
The resource-specific tile identity assertions passed consistently. No blocking findings on this configuration. Not tested: AMD/Intel GPUs, native Wave64, retail titles, release builds, or rebasing onto current main. AI use: OpenAI Codex (GPT-5, exact variant unavailable) assisted with code review, test execution and analysis. ChatGPT (GPT-6.2) condensed the report. |
|
A check the runs above don't have: the failure forced, so it no longer depends on timing. Details of the cause are in #718. Tested
Not tested
AI use
|
|
Follow-up to my report above, confirming what @fromthemoonx found on #718: the Tested
Not tested
AI use
|
|
Test report for #447 on an RTX 5080 (wave32, Blackwell). It fixes the #718 flake here, and on this machine Tested
Not tested
AI use
|
|
Tested: PR head 48e7434 on a GTX 1650 (4 GB), driver 621.24, i7-12700K, Windows build 26300.9974, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug build.
|
|
Hey everyone! Just a heads up, I am commenting on this to attach my Discord for those who want to work on this: This is not a self advertisement, I just don't want people using this push request and getting confused. |
|
Tested on AMD Radeon RX 9070 XT (RDNA4) at AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0 x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug build. Tested:
Not tested: retail title / Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine. Update: the flake does reproduce on this machine without this PR. On main Correction (hidden skips): "0 SKIPPED" above means no |
|
Full-suite run on this PR's head Tested
Not tested: AMD / wave64; no retail title (the changes are in AI-assisted (Claude Code). |
…cl-dev#718) The device-wide page count also drops when unrelated idle pages are swept, so this check compares that resource's extra-page tiles instead. The cubemap check in the same test stays with xcl-dev#447. Assisted-by: Grok Build (Grok 4.7)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Merging: the check compares this resource's own tiles instead of a device-wide byte count, which is what made it fail by timing. Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf. |
Part of #288. On an RTX 3060 Ti, the cubemap reuse test sometimes fails on main even though the second placement can reuse the same tiles. The test compares all page bytes on the device. Creating a placement can also reclaim pages from earlier textures after their two-second idle period.
What is in it
vram.rssnapshots the pool and tile identity for each title-page and extra-page tile of a mapped resource.title_textures.rschecks that the second cube has the same ordered tile identities and that the first cube retains them. The bounded streaming, immediate-reclamation and pixel-readback assertions still run.Tested
48e7434f5fa51934c3cd225eed4336a0bf9b0747, Windows 11 Pro build 26200, Intel Core i5-10400, GeForce RTX 3060 Ti (driver 32.0.16.1714), Rust 1.100.0. Built the workspace in debug and the smoke binary withcargo build --locked --release -p xcl.a6f5f7a:cargo test -p xcl --lib placed_title_textures_share_vram_and_preserve_pixels -- --test-threads=1 --nocapturefailed, with total page bytes falling from 17,170,432 to 2,555,904.cargo test --locked -p xcl --lib hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels -- --exact --test-threads=1 --nocapturetwice on the PR. Both runs passed on the GPU. Each observed 33 title-page and three extra-page tiles reused, and zero page growth after the streaming working set had filled.cargo test --workspace --no-fail-fast -- --test-threads=4: 676 passed, 0 failed, 41 ignored. 2 GPU tests reported a skip. The full suite was rerun withXCL_DXC_DIRpointing to the installed DXC. The initial run loaded a compiler that returnedE_NOINTERFACEand failed shader-related tests.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Related work and independent tests
This PR checks cubemap reuse. Luxuryig checks the separate unaligned-texture assertion in the same test. The two assertions can fail independently when unrelated memory is reclaimed. PR #770 and forced reproduction of the unaligned case.
A contributor tested both PRs together on an RTX 4060 Laptop, on upstream main at
beaa245. All three full runs reported 713 passed, 0 failed and 41 ignored, with two wave64 skips in each. Main alone reproduced the cubemap assertion in two of three runs. The unaligned failure did not occur spontaneously in that comparison. Independent comparison on #718Regression run
Same title, graphics settings and 60-second limit on both release builds, using fresh title-data directories. Both smoke blocks use the same anonymized title identifier. The synthetic GPU regression exercises cubemap reuse.
Main
PR
Not tested
Other GPUs and drivers, retail gameplay, and optional tests requiring external sample files.
AI use
OpenAI Codex (GPT-6) helped diagnose the assertion, check existing PRs, implement the test-only change, and run validation.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord