Repository navigation
Conversation
|
At A local Verification assisted by OpenAI Codex (GPT-6.2 Astra). |
|
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on Two more than the baseline. Note for the record: a first run of this patch, while the machine was also building another project, sat over 11 minutes in three Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it. |
…emory Once the coherent window is full, a console buffer XCL cannot place in unified memory becomes a plain PC resource and its views get empty descriptors: shaders read zeros there and their writes go nowhere. XCL counted these views but never reported the count and logged only the first, so a run could not show whether the retail title's world load (#505) creates many of them. Count, by kind: buffer SRVs / UAVs / CBVs with an empty V#, texture views XCL cannot shape, console buffers and committed textures that found no room in unified memory. The first of each kind is logged; report.json gets them as d3d12.outside_uma, and the XCL_ACTIVITY memory line and the "console code so far" line add them with the coherent window's use. The activity line reads unified memory through the new uma::current(), which does not create it (uma::get() would). No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ad2f675 to
3261b74
Compare
|
@ettehn You're right, thank you. Fixed in
@dcastell1 thanks for the run. The head has changed since (above), and the regression run will be redone on it. Tested on AI use: Claude Code (Claude Opus 5.5) made the change, ran the tests and wrote this reply. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
A focused check on Tested. Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug. A scratch test called
Changing the counter guard to Not tested. How often a retail title creates null CBVs. The fixture checks descriptor creation and counters only. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the scratch checks and drafted this report. |
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Confirmed the |
Part of #505. Diagnostics only: no behaviour change.
Once the coherent window is full, a console buffer XCL cannot place in unified memory becomes a plain PC resource, and every view of it gets an empty descriptor (
num_records 0): a shader reads zeros there and its writes go nowhere. XCL counted these (NON_UMA_BUFFER_VIEWS) but never reported the count, and logged only the first one. So nobody can tell from a run whether the world load of the retail title creates thousands of them – which would fit the stop in #505 (the title stops submitting GPU work with no thread blocked in XCL, then its watchdog ends it) – or none.In a hand-driven run of the retail title on
main077ce40 (RTX 5080): the coherent window was full (3998 / 4095 MB) from 43 s on; the world load started at ~44 s; the first#101came at 59.5 s; presents and submits went to 0 at 62 s; the watchdog (+0x23cf683) at 90.4 s. 0 draws or dispatches skipped, 0 failed pipelines, 0Wait64BitValueXtimeouts, no title thread inside XCL or the driver at the crash. The single "buffer view … not in UMA" warning came at 14 s, and the log could say nothing more.What is in it
crates/xcl/src/hle/d3d12x/real.rs:OUTSIDE_UMAcounts, by kind: buffer SRVs / UAVs / CBVs that get an empty V#, texture views XCL cannot shape (empty T#), console buffers that found no room in unified memory (coherent window and, where tried, sparse windows), committed console textures that found no room in the coherent window. The first of each kind is logged (its time shows when it starts).report.jsongets them asd3d12.outside_uma(#[serde(default)], so older reports still read).crates/xcl/src/host.rs: theXCL_ACTIVITYmemory line (every 2 s) adds the coherent window's use and these counts, at its end (scripts/smoke.ps1reads only its start). It reads unified memory throughuma::current(), so reporting doesn't create it.crates/xcl/src/gpu/uma.rs:current(), the title's graphics memory if it exists, without creating it (get()does), as @ettehn found; with a test that it's whatget()made.crates/xcl/src/hle/d3d12x/bind.rs: the "console code so far" line adds them too.real.rs: each kind lands in its own field; a report without the field still reads.Tested
stable-x86_64-pc-windows-msvc, debug, DXC 1.9.2602.173261b74, rebased ontomain6efdabccargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 730 passed, 0 failed, 41 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware; noXCL_SAMPLE_*setRegression run
main:This PR:
Not tested
ad2f675were posted on Newer retail title (TitleID 7952987A): reaches world loading, then the title's GPU watchdog ("GPU Loc Sig") after ListX #101 stub #505 and Memory: more than 4 memory windows once #680 lands, so title memory stops falling back to plain memory #697: the empty views sit in the title's 24 GB GPU-view reservation, and no resource ran out of roomAI use
🤖 Generated with Claude Code