Repository navigation
Conversation
|
Tested Independently reran the pinned standalone CPU executable for All three native processes exited 0. Total was 3 passed, 0 failed, 0 ignored, 0 skipped. The fixture checked nine initial cases that emitted no warning, then matched four warnings in RTV, DSV, RTV, DSV order. The warning for RTV handle Not tested Device detection, D3D12 or UMA behavior, production diagnostics and runtime call sites, GPU, full crate and workspace suites, and title smoke. AI use T3 Code through Codex ( |
245e471 to
6c395e1
Compare
The console's descriptor helpers are compiled into the title. In an optimised build, CopyDescriptorsSimple of render-target or depth-stencil descriptors is a plain memory copy of N x 112 / 128 bytes (the console's sizes), while XCL's RTV / DSV heaps are PC heaps with PC increments. Such a copy would overwrite neighbouring PC descriptors and leave handles that no CreateRenderTargetView / CreateDepthStencilView / device copy wrote. Diagnostic only, no behaviour change: the title's RTV / DSV heaps, the handles their view creations and device copies write, and the handles OMSetRenderTargets, ClearRenderTargetView and ClearDepthStencilView get are tracked. A handle in a title heap that nothing wrote is logged with its heap and offset (four lines, then the checks stop). At device adoption, the u64 at +0x10 (the console's null constant-buffer address, which inline null CBVs use) and the byte at +0x18 (validation builds: 0 = inline descriptor writes) are logged, with whether +0x10 is in unified memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6c395e1 to
8560353
Compare
|
No open or merged PR adds this check. #3192 and the merged #3179 remap superseded targets, a different change. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 8560353, diff read, not a merge-check;
Fine: no behaviour changes, the 4-line cap holds, copies are recorded after every early return, a null 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
... with handle ... that no view creation or device copy wrote (...)warnings (at most four) and the device adoption line with +0x10 / +0x18 here (not the whole log). A change to console-shaped RTV / DSV heaps is only worth making if a title shows this. The retail game logs none of the warnings in 60 s.Console code may copy render-target and depth-stencil descriptors itself, at the console's sizes, into XCL's PC heaps. This diagnostic shows whether a title does, with no change in behaviour.
The console's descriptor helpers are compiled into the title. In an optimised build, CopyDescriptorsSimple of RTV / DSV descriptors is a plain memory copy of N × 112 / 128 bytes (the console's descriptor sizes), not a device call. XCL's RTV / DSV heaps are PC heaps with PC increments. Such a copy would overwrite neighbouring PC descriptors, and the copied handles were never written by CreateRenderTargetView / CreateDepthStencilView or a device copy. A change to console-shaped RTV / DSV heaps is only worth making if a title shows this.
What is in it
target_handles.rs(new) tracks:the title's RTV / DSV heaps, from
dev_create_descriptor_heap_x, the console device slot;the handles their view creations (
dev_create_rtv,dev_create_dsv_x) and device copies (CopyDescriptors(Simple)) write.Checked calls:
OMSetRenderTargets(up to 8 RTVs, the single-range form at the heap's increment, and the DSV),ClearRenderTargetView, andClearDepthStencilView(console list GPU tests that cannot run on the adapter say so: SKIPPED lines, a count in scripts/test.ps1, XCL_REQUIRE_GPU (#42) #51).Each check logs a handle inside a title heap that nothing wrote, with its heap, descriptor index and byte remainder. It logs four lines, then the checks stop. Handles outside the title's heaps (XCL's own) are not checked, so XCL's own work cannot produce a line.
At device adoption (
real::adopt), the u64 at device +0x10 and the byte at +0x18 are logged once per device, with whether +0x10 lies in unified memory. Inline null CBVs take their address from +0x10, and validation builds read +0x18 to choose inline descriptor writes.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 245e471: 2140 passed, 4 failed, 48 ignored. SKIPPED: 15 (14 no wave64, 1 no heap windows).The 4 failures are the e2e title tests
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.They also fail on
main309c3ec: 2138 passed, the same 4 failed, 48 ignored, same 15 SKIPPED.New tests:
target_handles::tests::an_unwritten_handle_in_a_title_heap_is_reported_with_its_place: oktarget_handles::tests::heaps_and_copies_mark_handles: okRegression 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 one queue job with other PRs' heads, this head in the next job; every run started from the same DXIL cache.main:This PR's head:
The retail game logged no unwritten render-target / depth handle line in 60 s. Device adoption logged +0x10 outside unified memory and +0x18 = 0.
Not tested
Whether any title copies RTV / DSV descriptors inline. That is what this PR is for.
Not done: counting V#s in console view heaps whose address equals device +0x10 (inline null CBVs). No cheap place sees every slot a title writes inline, so the +0x10 value and whether it is in unified memory are logged instead.
The regression runs skip startup shader preparation (
XCL_PREPARE=0), onmainand on this PR alike.AMD GPUs.
AI use
Claude Code, Claude Opus 5.5: wrote the code, the tests and this description; ran the tests.
Claude Code (Claude Opus 5.5) ran the regression runs and added them here.
🤖 Generated with Claude Code