Repository navigation
Conversation
…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 (xcl-dev#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>
Owner
Author
|
Upstream PR xcl-dev#956 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of xcl-dev#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 xcl-dev#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 xcl-dev/xcl#505 and Memory: more than 4 memory windows once #680 lands, so title memory stops falling back to plain memory xcl-dev/xcl#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
Mirror of xcl-dev#956 (auto-synced, do not edit).