Repository navigation
Conversation
|
Independent RTX 3090 check of exact head
The head's extra pass is its new heap-properties test. All three runs failed only the existing For direct NVIDIA coverage of the changed path, I used a local test-only fixture on the exact head in two fresh SSH Session 0 processes, flag absent versus This verifies L0 selection and GPU-byte readback on a 3090, not title performance, longer churn, shader sampling or gameplay. I used no proprietary title files; I cannot provide the required exact-head retail smoke. The author's GTX 1650 title runs still ended in device removal. No code from this probe was committed or pushed. AI use: Codex (GPT-6) prepared and ran the exact-revision Windows comparisons and synthetic GPU fixture, checked the hashes and logs, and drafted this report. |
|
Tested Tested:
Not tested: one run per setting, not repeated in swapped order. Frame times after the stall, since there were none. AMD or Intel. AI use: Claude Code (Claude Opus 5.5) built the test binary, ran both runs, read the logs and wrote this comment. |
|
Exact-head GTX 1650 follow-up Windows and GTX 1650 (4 GB), clean d19ae2e, with XCL_TEXTURE_PAGES_SYSTEM_MEMORY unset or 1. The release workspace suite reported 777 passed, 0 failed, 41 ignored in both modes. Four tests printed SKIPPED (two wave64 cases, reserved cube mips, and heap windows disabled), plus a junction subcase. Command: cargo test --locked --offline --workspace --release --no-fail-fast -- --test-threads=4 --show-output. Both 150 s offline startup smoke runs completed without device removal. PresentX counts were 2,329 / 1,886 and sampled peak local DXGI usage was 8,263 / 3,133 MiB (DEFAULT / L0). At the comparable 59 s samples, L0 moved about 3.5 GiB to the non-local segment with the same texture pool capacity. The sample breakdown and the synthetic transfer result are in #1773. Story mode remains unverified. The current allocator in #1747 conflicts with this branch. A rebased run needs a new matched workload before review. AI use: OpenAI Codex with gpt-6.2-sol ran the tests and summarized the results. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
d19ae2e to
670a0f9
Compare
|
Tested the head Tested
In runs 3 and 4 the game window was brought to the foreground every 30 s, and each check found it in the foreground and never hung ( For comparison, the same settings without this PR on So on this card the switch moves the texture pages out of video memory as described, but it does not prevent the device removal in the world load: run 1 lost the device with only 2 dispatches skipped and 4.2 GB of local video memory in use, and run 4 with no dispatch skipped at all. Whatever hangs the GPU there isn't video memory overcommit, at least not alone. In runs 1 and 2 the loading screen kept presenting until about 290 s and 350 s; after that the window showed no image. Not tested
AI use
Edit: the driver for all these runs was 621.40 (Windows updated it before them), not 621.14 as first written. |
XCL PR #1702 Arc A770 verificationClean detached head STOR-WINLAB ran Windows 11 Enterprise Evaluation build 26200 on a Ryzen 7 3800X with an Intel Arc A770 (driver 32.0.101.9175). DXC 1.9.2609.5 and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), debug build. Tested
Workspace failures and skips
Not tested Matched AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against Arc A770 retest at Tested: Windows 11 build 26200.9974, Ryzen 7 3800X, Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Built with A separate Windows D3D12 control reproduced the failure with heap flags 0 in both modes. Changing only the flags to Not tested: XCL copy or reuse after the failed allocation, retail smoke, and the full suite. AI use: T3 Code / Codex ( |
|
CPU-only tile-ownership verification on exact head The existing churn test checks the free count after a failed batch. This adds identity-level checks when a batch consumes existing tiles, successfully grows by zero, one or three heaps, then fails its next heap allocation. It also checks the cooling boundary and that a retry can consume all returned tiles without further growth. Tested
Not tested AI use: Codex (GPT-6; exact variant unavailable) wrote the test and temporary negative control, ran CPU verification and prepared this report. |
|
RTX 5070 / 610.88 native Windows follow-up. I tested #1702 (
No device removal was logged in either run. The L0 stop was the test harness's 3 GiB available-physical-memory floor, with 23.62 GiB of commit headroom. The default run remained alive while local usage exceeded the DXGI budget. The L0 run stayed below that budget and still logged queue waits. This pair shows the residency shift on the 5070. Frame capture was off, so gameplay was not visually verified.
|
Pass per-device heap properties when the batched allocator grows. Keep xcl-dev#1747 batching and xcl-dev#1985 heap slot reuse and fence-delayed retirement for both heap types. Verify the selected backing with a two-tile GPU copy/readback. Assisted-by: OpenAI Codex (GPT-6)
670a0f9 to
84740c9
Compare
|
Linux (Wine + vkd3d-proton) + NVIDIA, the title, 1 run each way: Setup:
Read
Not tested: AI use: Claude Code (Claude Opus 5.5) read the change and vkd3d-proton's source, ran the title and the tests, and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
|
Hi @ivall, could you review this PR when you have a chance? It adds an opt-in D3D12 L0 setting for title texture pages. The GTX 1650 results and the GPU copy/readback test are summarized in the PR description. Thanks! |
bmjask
left a comment
There was a problem hiding this comment.
No confirmed source defect: heap properties are centralized and default behavior stays unchanged; fixture covers descriptor/mapping/round-trip/reuse. Not merge-ready: dirty/non-mergeable with no current Windows CI, and XCL_TEXTURE_PAGES_SYSTEM_MEMORY has no custom-L0 CreateHeap failure fallback—alloc_pool_heap returns None and page allocation stops. Decide/document fallback policy, rebase, provide paired option-enabled smoke plus AMD/Intel/title budget evidence, and consider correcting L0-mode logs that still call backing "video memory."
|
A run of this change on a 4 GB card with a retail title: it halves local video memory, and the run then fills the shared memory instead. Setup: NVIDIA GeForce GTX 1650 (3,935 MiB VRAM, driver 32.0.16.2124), Ryzen 5 1600, 16 GB RAM, a fixed 24 GB page file, Windows 11 26300, release, DXC 1.9.2602.17, retail title, Series X profile,
One run of each. My reading, not verified against DXGI's own budget: with 16 GB of RAM the GPU's shared memory is about 8 GB, and XCL's coherent window already takes a large part of it, so sending every texture page to system memory runs that out. A policy that keeps pages local while the local budget allows and only then goes to system memory looks like what a card of this size needs. AI use: Claude Code (Claude Sonnet 5.5) built and ran this, read the logs and wrote this comment for @gefydev. |
|
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current |
|
RTX 5080 / Linux / Proton Experimental follow-up on the CPU page property for reserved texture pools. In a 64 MiB reserved RGBA8 texture control (1,024 tiles), DEFAULT and CUSTOM / NOT_AVAILABLE / L0 both added 64 MiB local and 0 non-local on stock vkd3d-proton. CUSTOM / WRITE_COMBINE / L0 instead added 0 local and 64 MiB non-local. Opposite-corner readbacks passed after the GPU fence in all three cases. On the vkd3d-proton pair used below, I also verified the DEFAULT and WRITE_COMBINE results with the same readback. In the title, a local #2057-based integration (70a7e1d plus heap/fence and placement adaptations) ran twice with the same executable, Series X profile, seed and separate empty caches. Sparse buffer pages stayed in system memory in both runs. Only the 64 MiB reserved texture pool setting changed, from DEFAULT to CUSTOM / WRITE_COMBINE / L0. vkd3d-proton 4522cc1a + dxil-spirv b540c8a2, single_queue,no_upload_hvv, same memory guards. At the 13th XCL arena (same 169,082,880 cumulative arena bytes), Vulkan local heap usage was 4,197–4,248 MiB vs 2,149–2,200 MiB within the sampling window. The corresponding counts of 64 MiB local allocations were 33 vs 1. The default run hit the free-VRAM guard on a black window. The WRITE_COMBINE run reached the account picker and illustrated loading screens after confirming PLAYER1. The screen later went black. Around 418 s, a separate 3,764 MiB increase triggered the free-VRAM guard. No controllable 3D world was verified. Data from one title run per setting. The texture probe covers one reserved RGBA8 format. AI assistance: OpenAI Codex (gpt-6.2-astra). Nov 26 follow-up on a second XCL integration and driver. RTX 5080 (16 GiB), NVIDIA 620.73.04, Proton Experimental, #2140 vkd3d-proton At ~62 s, both runs had 3,443 MiB of target pages in 3,456 MiB of pools. DXGI local usage fell from 6,505 to 3,049 MiB, and non-local rose from 697 to 4,121 MiB. A separate 64 MiB RGBA8 reserved-texture test on these exact DLLs read both corner markers correctly in either placement. The XCL placed-texture mip/readback test passed on the candidate. The default run stopped on our 5,120 MiB free-VRAM guard during loading artwork (77.25 s capture). The candidate showed further loading artwork, then black; the last nonzero presentation window ended at 102.24 s. The guard stopped the second run too (279.25 s capture, 3,176 MiB free system-wide, 5,043 MiB GPU usage attributed to the test scope in the final sample). No open-world scene or player movement was confirmed. This measures heap placement separately from the reason presentation stopped. AI assistance: OpenAI Codex, gpt-6.2-astra. Selective placement on RTX 5080 / Proton Experimental, NVIDIA 620.73.04 (November 27). On the #2057-based build with the #2306 level-page backport, I changed the first 32 successful 64 MiB reserved-texture heap creations per device to DEFAULT and kept subsequent heaps in WRITE_COMBINE/L0. Both Series X runs used the same initial save, driver, 1,208-entry cache and ACES translation. The unmodified texture-allocator build was the all-L0 control. Two allocator boundary/retry tests failed on the control and passed with the change; the historical descriptor and tile-reuse tests also passed. At the same title allocation state (3,364 MiB of target pages, 3,392 MiB of backing pools, 896 MiB of sparse-buffer pools, 839 MiB mapped), DXGI local usage was 2,561 → 4,609 MiB and non-local usage was 4,637 → 2,569 MiB. The 33rd heap was created at +14.347 s on the candidate. Over seconds 22–30 of the host monitor, median GPU usage attributed to the scope was 2,677 → 4,725 MiB, while median cgroup The candidate reached loading artwork. Capture ended at 118.25 s on the free-VRAM guard. Available VRAM fell from 7,012 to 2,655 MiB between the final two samples while the scope stayed at 4,816 MiB. This run verifies the capped placement on this stack. Its effect on the prologue image remains open. Analysis and test preparation assisted by OpenAI Codex (gpt-6.2-astra). |
|
Native Windows comparison on RTX 5070, NVIDIA driver 616.92, Ryzen 7 5700X3D, Windows build 26300.10075: fresh-process probes each created one 64 MiB texture-only D3D12 heap and measured process DXGI segment usage. Repeated in reverse order, all creations succeeded.
This differs from the reported RTX 5080/Proton accounting. It measures allocation accounting only: no tile mapping, texture readback, title, or GTA performance. It does not establish that either heap type is universally preferable. AI use: OpenAI Codex with GPT-6.2 Astra wrote and ran the probe; Codex coordinated and prepared this report. |
Part of #1773.
XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1opts title texture page pools into D3D12 L0. On a discrete GPU this moves page backing into non-local memory and can reduce local-memory pressure.What is in it
vram.rsselects the pool heap properties per device and passes them to new heap creation. The allocator retains D3D12.X: eliminate multi-heap UpdateTileMappings and per-texture Signal stalls in vram::Pages #1747's per-heap batching and D3D12.X: reclaim empty 64 MiB VRAM pool heaps, alias GPU mirror pages, and sync 2048x128 glyph atlases #1985's slot reuse and fence-delayed heap retirement.Tested
84740c9,cargo check --locked --offline --workspace --testspassed.cargo test --locked --offline -p xcl --lib hle::d3d12x::vram::tests -- --test-threads=1 --show-outputreported 17 passed, 0 failed, 1 ignored and no explicit skips in each mode. The two-tile readback ran in both modes.cargo test --locked --offline --workspace --no-fail-fast -- --test-threads=4 --show-outputreported 1,235 passed, 3 failed, 46 ignored, and 26 explicit skips. The three failed library tests cover mesh-cache routing, an HLSL mesh-cache hit, and UAV-format handling. All three also failed in the matched main run on the preceding base; the test corrections in upstream Tests: two expectations that no longer match the code #2245 address the routing and UAV assertions. The end-to-end target passed on this head.Regression run
Main and head, release without debug symbols, default placement, fresh XCL data roots.
Not tested
CreateHeapreturnE_INVALIDARGfor both heap types. The rebased GPU fixture includes the resource heap tier if allocation fails.AI use