Repository navigation
Conversation
|
CI: the "Build and test" job's one failure is not in this PR's code. The run shows 1781 passed, 1 failed, 28 ignored. The one is AI use: Claude Code with Claude Fable 5.2 read the CI log and wrote this. |
|
I tested larger synthetic shapes on RTX 5070 / NVIDIA 616.92 at head
The two-mip array hits All focused GPU runs completed without skips and the device remained healthy. No retail title, GPU memory budget, or timing was measured. AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report. |
|
@imnicho, thanks for this. We ported raylitebull's One thing that looks like a defect:
Coverage differences, as possible follow-ups on top of yours, not changes this PR needs:
Checked and fine: the split-barrier test is bitwise ( We're glad to send any of the follow-ups as small PRs stacked on this one if you'd like them. AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon. |
|
Update for head Run on an RX 9070 XT and an RTX 3060 in the same PC: the four new tests pass, and nothing in Tested: at the PR head
Not tested: AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
…format is copied from it (XCL_ALIAS_COPY=1) A retail title packs light as R9G9B9E5 into R32_UINT textures with unordered access and samples the same memory through R9G9B9E5 textures it places at the same addresses (59 pairs: its sky, its light probes, the bounced light its lighting pass adds). On the console the two are one memory. Here the written one is GPU-owned and the sampled one is a texture of its own, kept in step with title memory nothing writes, so what is read through it is stale. alias_copy keeps the title's placed textures by address. Where a sampled one lies in the memory of a written one of the same size, levels, layers and texel width, the written one's texels are copied into it on the GPU through a buffer, where the title says the written one is written no more for now: at its enhanced barrier of that texture (list xcl-dev#146) whose access before is render target or unordered access, and at its legacy transition out of those states. Only that is read of an enhanced barrier; the two textures are moved to the copy states and back from the states the legacy barriers left them in. Off by default: with the switch off nothing is kept and each hook is one atomic load. The pairs by address and shape and the copy through a buffer follow the format-aliased copies of xcl-dev#1989 by raylitebull. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
@andrewDoing thank you, that was a real hole: the limit of 64 parts was an arbitrary one of mine, and a pair past it was silently left stale (counted under "pairs that cannot be copied", nothing more). The head is now AI use: Claude Code with Claude Fable 5.2 made the change and wrote this. |
|
I reran the three native RTX 5070 / NVIDIA 616.92 alias-copy controls from my earlier report on updated head
All three fenced readbacks passed without skips. This validates the synthetic subresource boundary and controls; the title's use of the exact two-mip array shape, performance, and memory budget remain unmeasured. AI use: OpenAI Codex with GPT-6.2 Astra ran the tests; Codex reviewed and prepared this report. |
|
merge-check Independent Windows check: verdict: not yet Review verdict: not yet. I traced two state mismatches in the opt-in path. These are source-level findings; I have not run a GPU regression for either boundary.
The PR's WARP fixture verifies its copy path; this check did not measure title visuals, title performance, or paired smoke. Hardware: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), rustc 1.99.1. AI use: Codex (GPT-6.2 Sol) ran the builds and tests and checked the source paths; Codex (GPT-6.2 Astra) independently reviewed the state invariants. |
|
Test report for #3094 on NVIDIA: the whole workspace suite on this PR merged onto today's Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the tests above on the hardware named and wrote this report. |
|
RTX 4090, Series X profile, clean head Copies off/on at the same 50 ms graphics wait. I matched the first three heavy frames using features in the base-color dump, then compared the format-10 FP16 target on pixels where the aligned base colors agreed within 8/255 in every channel. In the first pair (BMP 1908 off / 1899 on), 157 features agreed with 0.05-pixel median residual at 640×360. Both HDR targets ran 168 draws, with 487/486 stand-ins off/on. Across 60,341 matching scene pixels the median brightness in XCL’s tone-mapped 8-bit HDR preview was 0 off / 182 on. Both final images were still nearly black. The next two matched HDR pairs gave 0 / 177 and 0 / 191. By the third pair (1910 off / 1901 on), the median of the whole presented image was 21 / 197. The off image shows a dark yard with a few lights. With copies on, people and tables are visible in bright haze. This supports the courtyard lighting change on Ada. Exposure and geometry are still visibly broken. The cell interior and the copies' frame-time cost remain unmeasured here. Getting past the loading artwork. I used the same checkpoint, A presses at 25/30/35/40/62/64 s and a fresh verified copy of the same populated XCL cache (4,946 files) for each 360 s run. With copies on and the default graphics pipeline wait, the last interval with a present ended at 116.07 s. One thread spent 241.62 of the remaining 243.93 s inside 59 logged graphics pipeline waits. With just Where the world first appears. In Reproduction settings. Windows 11 build 26300, RTX 4090 24 GB, NVIDIA 621.40, Ryzen 7 5800X3D, 32 GB RAM. OpenAI Codex (GPT-6) assisted with building the head, running the title, verifying the traces and images, and writing this report. |
With
XCL_ALIAS_COPY=1, a sampled texture the title places in the memory of a written one of another format is copied from it on the GPU. A retail title reads its sky, its light probes and its bounced light through 59 such pairs; onnvidia-devthey were stale, and with the copies its room, sky and yard are lit. The default is unchanged (off).Plan comment: #1989 (comment)
What is in it
The title packs light as R9G9B9E5 into R32_UINT textures with unordered access (a compute program cannot store R9G9B9E5) and samples the same memory through R9G9B9E5 textures it places at the same addresses. On the console the two are one memory. On
nvidia-devthe written one is GPU-owned (vram) and the sampled one is a texture of its own, kept in step with the title's memory (title_textures), which nothing writes. Many of the pairs are at addresses that are not on 64 KiB pages, where the two cannot share pages either.New module
hle/d3d12x/alias_copy.rs:create_placed_resource_xtells it of every placed texture (three places: GPU-owned, kept in step, a resource of its own). A pair is a written texture (render target or UAV) and a sampled one at the same address with the same size, levels, layers and texel width and another format. Buffers, depth buffers, multisampled and block-compressed textures are not kept.uav_barrier_xstill answers that call with one UAV barrier for all resources;plan_enhancednow reads the texture barriers of its groups, and one whose access before is render target or unordered access asks for the copy. A legacy transition out of RENDER_TARGET / UNORDERED_ACCESS asks for it too (plan, fromresource_barrier_x). Nothing else of an enhanced barrier is used: translating them into states stays D3D12.X: translate list #146 Enhanced Barriers to legacy ResourceBarrier #1025's.list_x::texture_through_buffer, on the PC list past XCL's hooks). The two textures go to the copy states and back from the states the legacy barriers left them in; a texture a transition named only part of is left out. On DIRECT and COMPUTE lists.title_textures::note_gpu_writeis told, so no upload from the title's memory goes over the copy.The pairs by address and shape and the copy through a buffer are @raylitebull's, from #1989. This is that mechanism written for
nvidia-devwith the enhanced barrier as its trigger; #1989 syncs at legacy transitions and UAV barriers, which this title does not issue for these textures onnvidia-dev(numbers below).Size: 5 files, 421 lines of code and 252 of tests.
Not in it: views by address (#70 / #71),
CopyResourcebetween format families, a copy back from the sampled texture, buffers of pairs that went are kept until the process ends (59 pairs in a whole run of the title).Tested
cargo test -p xcl --lib -- --test-threads=4(debug) on839b33a1f: 1778 passed, 0 failed, 28 ignored, 27SKIPPEDlines (21 "no wave64", 3 f16 forms refused after #1426, 1 "no heap windows", 1 "no GPU_UPLOAD heaps", 1 "cannot disable the driver cache"). The head6396870e2differs from it by one condition (below) and the larger WARP test; the module's 4 tests were run again on it and pass.New tests:
gpu_a_written_textures_texels_reach_its_sampled_pair_at_the_enhanced_barrier(WARP): an R32_UINT array texture with unordered access, 70 layers and two levels (140 parts) holds a different value in every texel; after the enhanced barrier (access 0x10 to 0x80) andrecord, its R9G9B9E5 pair, read back, holds the same bits in every level of every layer.a_sampled_texture_in_the_memory_of_a_written_one_of_another_format_is_its_pair,a_written_textures_transition_out_of_a_written_state_asks_for_the_copy,an_enhanced_barrier_of_a_written_texture_asks_for_the_copy(the pairs, the two triggers and what does not trigger, a call that is no list of groups).In the title (RTX 5080 16 GB, driver 610.47, Intel Core i7-7700K, 16 GB RAM, Windows 10 22H2, release build, Series S profile, 600 s limit, warm shader caches):
The tree is
nvidia-devd1be8103with the other changes listed in the set-up of my #1989 report and #3089's commit (the lighting target's depth plane) instead of #1989's merge,XCL_DEPTH_UAV_TWIN=1.access 0x10 -> 0x80, layout 3 -> 6, all subresources, and at 0 legacy transitions, 0 aliasing barriers and 0 UAV barriers naming one. So D3D12.X: add depth+UAV color twins, format-aliased placed texture copies, and dual-twin UAV barriers #1989's own triggers do not fire for these onnvidia-dev.nvidia-devhas them. One run reached the 600 s limit: 586 frames after the world's set-up at 155 s, 2,110,141 draws, none skipped, 16,384 copies logged by 484 s, no device loss; in its captures the room's walls, the window with the sunset sky, the yard, the fence and the lettering on the clothes are lit. The other 7 ended at this tree's GPU hang before the room: 67, 86, 90, 99, 107, 128 and 227 frames after the set-up. (The last three of the 8, the full one among them, were of a build that also had a local lookup for another experiment switched on; it matched nothing in 2,097,152 tries.)Regression run
scripts/smoke.ps1, 60 s,XCL_PREPARE=0, each of the three built in release from a clean worktree. The switch is off in these runs, as it is by default.main(e429936c):The base (
nvidia-dev01b94f5fc):This PR (
6396870e2):Not tested
crates/xcl/tests(eachd3d12_*one takes about 9 minutes here).AI use
Claude Code with Claude Fable 5.2 wrote the code and the tests, ran the suite and the title, and wrote this description.
🤖 Generated with Claude Code