Repository navigation
Conversation
|
Ran the upload-logging test groups at System
Results
What this adds Not tested AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - ran the commands above on this machine and wrote this report; no game data was used. |
|
Test report for #3483 at Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
…hange `hot_runs` makes a block new to the watched ranges hot. To find those it kept a set of all blocks (2 MiB) of the ranges of the last look and, each time the ranges changed, made the set again over every block of every range while holding `HOT` (the walk thread takes it too). The ranges are made again whenever a tile is mapped, a texture is placed, a GPU-view page is shown: in a retail title's world that is ~3.5 GB in 16 ranges, ~1,800 blocks, and the ranges change between many of the submits. Now `new_blocks` compares the ranges with the last look's (both sorted and apart, as `watch_ranges` makes them): a range found among the old ones as it is has no new block, and a block of a changed range is new when no old range meets it, which is what the set said. 16 ranges with one changed: 4 µs against 1.4 ms for a set of all their blocks (debug build, the test's own timing; not measured in a release build or a game). Test: new_blocks_are_those_no_old_range_meets (against a set of all the old blocks: ranges grown, shifted, merged, new, gone, in part of a block). Ported from amd-dev without its reasons for a hot block (`HOT_NEW`, `look_stats::HOT_WHY`), which main does not have: a new block is put in with its time only, as before. (cherry picked from commit 5b660277a9460246eca668b144872fe4c66c1594) (cherry picked from commit 5ff2b66) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pload
When CopyPageMappingsBatchX changed the pages under a texture read
through its pages, those 64 KiB pages went up again with no comparison:
no write watch fires for a clean pool page newly mapped. In a retail
title's open world (RX 9070 XT) about 4400 textures per
1024 submits were read again that way ("25294 read again for a mapping
changed under them" by 127 s), next to 7903 uploads of 2082 MB that took
1890 ms of the 1024 submits.
The changed parts are now compared, page by page, with the hashes of
what the PC texture got at its last upload (the same comparison CPU-
written pages get; a page whose hash is not known differs), and only
pages that differ go up. A page mapped again with the bytes the texture
has (the same page after an unmap, a page moved in its pool) costs a
hash instead of an upload. A render target or UAV texture, and one the
GPU wrote that gives way, still sends its pages with no comparison.
VIctory-Neo does the same: a remapped slot is digested again and only
uploaded when its bytes differ. XCL_TEXTURE_REMAP_COMPARE=0 restores the
old behaviour; on by default.
A line every 1024 submits that upload says what went up and for what:
whole textures, CPU-written pages, remapped pages, parts sent again
behind another queue (count and MB each), how many remapped textures
were compared and left out, and the GPU writes kept by
XCL_GPU_WRITE_STAYS. It gives the breakdown the 2 GB could only be
estimated from before.
Tests: new title_textures::tests::remapped_pages_are_compared_with_what_
they_held. cargo test -p xcl --lib -- title_textures texture_upload:
53 passed, 0 failed (RX 9070 XT). Not measured on the title.
Port onto main: amd-dev's XCL_GPU_WRITE_STAYS (c06cf41) is not on
main, so its early return in mapping_changed and its test are left
out; main's own GPU-write tracking decides instead: a texture whose
gpu_written mark gives way to the mapping still sends its pages with no
comparison. main clears gpu_written once the GPU's bytes are copied
back (publish_download) but kept the hashes of the upload before the
GPU's write, so a page mapped again with those old bytes would have
looked the same and the PC texture kept the GPU's texels: a published
GPU write now makes what the texture's pages held unknown
(texture_upload::unknown), and the next comparison sends all of it. As
a side effect a CPU write to such a texture after the copy-back sends
it whole instead of in parts. The selection follows main's
texture_needs_upload (pages to compare count like parts to send again)
and main's Due (no displaced textures). The upload breakdown line
described above is not in this commit: it is the next one, on its own.
New test title_textures::tests::a_remapped_page_of_a_texture_the_gpu_
wrote_is_not_taken_for_what_it_held (fails without the unknown() call;
remapped_pages_are_compared_with_what_they_held fails without the
comparison). cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib --
title_textures texture_upload: 77 passed, 0 failed, 1 ignored, no
SKIPPED (Windows 11, Ryzen 7 7800X3D with Radeon iGPU, RTX 5070 Ti).
Not measured on a title.
(cherry picked from commit 01ec624f32b33c2f4115f677781432b498471111)
(cherry picked from commit 02ceae6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A line every 1024 submits that upload says what went up and for what: whole textures, CPU-written pages, remapped pages, parts sent again behind another queue (count and MB each), and how many remapped textures were compared and left out. It gives the breakdown of the upload volume that could only be estimated before (in a retail title's open world, 7903 uploads of 2082 MB per 1024 submits on amd-dev), and shows what the comparison of remapped pages (XCL_TEXTURE_REMAP_COMPARE) saves. Split out of amd-dev's 02ceae6 ("compare the pages a mapping changed under a texture before upload"), which carried this line with the behaviour change. Port onto main: the line leaves out amd-dev's count of GPU writes kept by XCL_GPU_WRITE_STAYS (c06cf41), which main does not have. Whether a texture had a CPU-written page is worked out only for the textures that go up, after main's texture_needs_upload has picked them, so the selection itself does no more work. Logging only; no test. cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib -- title_textures texture_upload: 77 passed, 0 failed, 1 ignored, no SKIPPED (Windows 11, Ryzen 7 7800X3D with Radeon iGPU, RTX 5070 Ti). The line was not seen in a title run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4845a75 to
efc10d4
Compare
|
Ran the Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build, Both counts match the new test of the description and the three tests in that module at this exact head; the named test passes on this adapter. Not tested: the full workspace suite, the standalone D3D12 reproduction of the driver bug, a title run with AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
This supersedes my immediately preceding comment in this thread (#3483 (comment)). That body was the wrong local draft, posted because two publishes shared one temporary file; please disregard it. This is the measured report for Ran the Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build, The same four tests fail on both trees: Not tested: the full workspace suite, the release smoke, a title run, Wine on AMD (where the fault this PR describes happens), the AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
merge-check
|
Stacked on #3482 (and #3477); only the top commit (
efc10d43) belongs here.The diagnostics part of raylitebull's amd-dev
02ceae64, split from #3482. Every 1024 submits that upload title textures, one log line says what went up and for what:Each kind is given as a count and MB. amd-dev's counts of kept GPU writes are left out, because main has no
XCL_GPU_WRITE_STAYS. Whether a texture had a CPU-written page is only worked out for textures already picked to go up, so picking textures costs no more.What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: the counters and the lineTested
cargo test -p xcl --lib -- title_textures texture_upload: 77 passed, 0 failed, 1 ignoredcargo test --workspace --no-fail-fast -- --test-threads=4on efc10d4, rebased on main 86e86fc (5070 Ti): 2892 passed, 0 failed, 51 ignored. SKIPPED: 28 notices, almost allno wave64(the others: no D3D12 debug layer, heap windows off, driver cache needs Developer Mode). The narrower runs listed here are from before the rebase.Regression run
main:
this PR:
Not tested
AI use
02ceae64.🤖 Generated with Claude Code