Repository navigation
Conversation
a385e9a to
3c87803
Compare
3c87803 to
7fae625
Compare
|
No open or merged PR makes the same change; #3313 clears stale PC views on CBV/BVH/buffer overwrites, a different (behaviour) change, while this only adds AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 7fae625, diff read, not a merge-check;
Fine: without AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
A console view descriptor is a value: a copy keeps the view it was copied from when the source slot later gets another view. XCL's T# names its slot's PC descriptor instead (word 0), so a title's memory copy follows the source slot: a view made there afterwards changes the copy, in-flight work included. Nothing measured whether a title does this. Under XCL_TRACE_FRAME, the view heap census now reports, per heap: - copies (images naming another slot's PC index) whose other words differ from the image now in the slot owning that index: stale; - image views written over with other words (a rewrite). The descriptor tables sampled at draws mark a stale slot, and the census prints how many were seen. Without XCL_TRACE_FRAME nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7fae625 to
7e422de
Compare
|
Thanks for both reviews. Rebased onto — Claude Code (Claude Opus 5.5), on behalf of the PR author |
|
Follow-up review (head 7e422de, since 7fae625, diff read, not a merge-check; checks red):
New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Help wanted: evidence. This PR only measures and changes no behaviour; it is the first step for the console-layout guesses. Please run a title on this head and post the
frame trace: view heap ...census lines (their stale counts) andframe trace: ... stale copies seen in descriptor tables at draws, withXCL_TRACE_FRAME=1for a short run here (not the whole log). It decides whether XCL's T# naming its slot's PC descriptor (instead of being a value) needs changing. The regression run below was withoutXCL_TRACE_FRAME, so it does not measure; not run with it on the retail game yet.A console view descriptor is a value. A copy keeps the view it was copied from when the source slot later gets another view, even while the GPU has not yet run the work that reads the copy. XCL's T# names its slot's PC descriptor instead (word 0 = that slot's index in the PC heap). So a copy the title makes as memory follows the source slot: a view made there afterwards changes every earlier copy, in-flight work included, and the draw reads the wrong texture without any error. HANDOFF names this limitation, but nothing measured whether a title runs into it. This PR is the measurement. It changes no behaviour.
What is in it
console_heap.rs, underXCL_TRACE_FRAME:write.bind.rs: the descriptor-table slots that the frame trace samples at draws are marked(stale copy), and the census prints how many were seen.XCL_TRACE_FRAMEnothing changes: the only added work inwritesits behind the cachedtrace_frame()check.Tested
NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0 MSVC; tests in debug
cargo test --workspace --no-fail-fast -- --test-threads=4on a385e9a: 2139 passed, 4 failed, 48 ignored. SKIPPED: 15 (14 no wave64, 1 no heap windows).incomplete_discovered_corpus_blocks_headless_title_entry,test_title_draws_with_a_root_signature_under_the_debug_layer,test_title_runs_and_game_folder_is_untouchedandtest_title_runs_under_the_debug_layer_with_dred.main309c3ec. This branch's base,mainbb9a6b4, has no suite run of its own.New test
console_heap::tests::a_memory_copy_whose_source_slot_is_rewritten_is_stale: ok. It makes view A in slot 0, copies it as memory to slot 2, then makes view B in slot 0.Retail game, a385e9a release, one 60 s run with
XCL_TRACE_FRAME=1(XCL_PREPARE=0,XCL_PRESS_AT=25:A); census of the shader-visible view heap (1 245 184 slots):Regression run
RTX 2070 SUPER, the retail game, 60 s,
XCL_PRESS_AT=25:A,XCL_PREPARE=0(no startup shader preparation), release builds.mainran in an earlier queue job than this head; every run started from the same DXIL cache.main:This PR's head:
Not tested
XCL_PREPARE=0), onmainand on this PR alike.AI use
🤖 Generated with Claude Code