Nvidia dev #2572
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2572
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2572"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@bmjask on GitHub · 2026-11-25 23:18 UTC · original
theaustinayers:nvidia-dev→main· +44395 −4116 · 98 files · 429 commits · openWhat is in it
Tested
cargo test --workspace -- --test-threads=4: N passed, N failed, N ignored (SKIPPED GPU tests: …)Regression run
main:
PR:
Not tested
AI use
readableasks the working set for ranges of any size 55e58c35c7cbc296a) into the NVIDIA world integration d4a31c1ed16987e49) into the NVIDIA world integration 1117fa2d49f5c5bdf) into the NVIDIA world integration 41303e4166A title gives the GPU addresses in its GPU view on many paths: buffer views made by address, constant buffer views, root views, vertex and index buffers, memory operations, waits. Each of them has to ask for the view window's tiles before the GPU work that uses the address (sparse::map_mirror) and must not do anything for other addresses. view_want::want(path, va, len) is that call; it counts calls and bytes by path, and the activity log prints what was asked for every 2 s ("GPU view (2 s): ..."), so a run shows which paths a title uses. No caller yet: nothing changes. Co-Authored-By: Claude Fable 5.2 <[email protected]>XCL_GFX_PSO_WAIT_MS gave every pipeline its own wait. The first frames of a title's world bind hundreds of pipelines never used before, one draw after another on one thread. On a cold cache a retail title's thread waited the whole 500 ms for more than 500 of them in a row: no frame from 92 s to 232 s, although every one of those pipelines was being built meanwhile ("binds waited 2001 ms for pipelines being built (4 waits in 2 s)" for two minutes). The budget is now what a thread may wait in a second in all (gfx_wait_left: it fills again at the budget a second, to the budget at most). It is spent on the first pipelines and on any that is built within milliseconds (one made from a kept blob); after that the thread goes on, and the rest draw once they are built. Compute pipelines are waited for as before. Test: the_graphics_budget_is_a_threads_for_a_second. Co-Authored-By: Claude Fable 5.2 <[email protected]>A dispatch waits for its compute pipeline until it is built, and a bind whose pipeline no worker has started builds it on its own thread, outside the gate of huge driver compiles. A lazy compute pipeline is sent to no worker before its first bind, so its first bind always builds it there. In a retail title's run one of its threads spent 57 s in the driver's compiler on one program no earlier run had used (827 KB of DXIL, no driver blob), and another of its threads waited for that pipeline all the time: no frame for 57 s. XCL_CS_PSO_WAIT_MS=<ms> is a budget of compute pipelines, as XCL_GFX_PSO_WAIT_MS is one of graphics pipelines (it goes before XCL_PSO_WAIT_MS for them). With it a bind takes the path XCL_PSO_WAIT_MS takes today (resolve_within): the build goes to the xcl-pso workers, where a huge driver compile waits for its slot once no thread waits for it, the bind's thread waits at most the budget and never builds the pipeline itself, and past the budget the pipeline is late: its dispatches get the stand-in until it is built. Dispatch, the console list replay and ExecuteIndirect already skip a dispatch with a stand-in and count it (Dispatch and the replay as a skipped dispatch, ExecuteIndirect as a skipped draw). Each late program is logged once ("compute pipeline of record X not built after N ms: its dispatches are skipped until it is"), by its console program's hash, which the pipeline now carries from its creation. Unset or 0, a compute pipeline is waited for exactly as before: the budget is XCL_PSO_WAIT_MS, and without that, until it is built. What a skipped dispatch breaks: what it computes is missing or old until the pipeline is built. When that is the count of a later ExecuteIndirect (culling and compaction programs), indirect_guard replaces only counts out of range; an old count in range still draws or dispatches over old data. Tested with the unit tests only (software adapter): the choice of the budget, a bind that waits no longer than it while a worker (not the bind's thread) builds a lazy compute pipeline, and one log line a program. Not run on a GPU or on the title: what skipped dispatches do to its frames is not known. Co-Authored-By: Claude Opus 5.5 <[email protected]>The previous commit wrote one line "<bytes> <setting>" per XCL_COHERENT_HEAPS setting into <data>/cache/uma_coherent.txt. Every build of a title shares that folder, and builds from before that commit read the file with trim().parse::<usize>(): on the new text they got 0 and made a 512 MB coherent window with XCL_COHERENT_HEAPS unset, too small for a retail title's 4.4 GB of GPU heaps, which then go to plain memory where its shaders read zeros. They then wrote a bare number over the file and dropped the other settings' sizes, so the two formats kept overwriting each other, and a main run after a run of this build (as the smoke comparison does) started with the small window. uma_coherent.txt now stays one number, the size for the setting that puts every heap in the window, read and written as before. The other settings keep theirs in uma_coherent_<setting>.txt (':' as '_'), which earlier builds never open. A uma_coherent.txt in the per-line format reads as none here too and is written over with a number at the run's first GPU heap. Tested: cargo check -p xcl --tests; cargo test --release -p xcl --lib coherent (7 passed, on the software adapter), with the changed test the_stored_coherent_need_is_the_one_of_the_heaps_setting. Not run on the title or on a hardware GPU. Co-Authored-By: Claude Opus 5.5 <[email protected]>1a0bbe3, 96 commits) into world-main 24615c8720379725a: the newer layout's DispatchMesh slot, pipeline labels for DRED) into world-main 5606573192XCL_SAFE_BARRIER=0 changes what both translators emit (the HLSL path's plain group barrier instead of xcl_s_barrier) and, since the direct translator leaves a compute or mesh program with s_barrier in a group of several hardware waves to the HLSL path, which translator takes such a program. It is neither part of the translated cache's identity nor in cache_allowed's list, while XCL_WAVE64_SPIN and XCL_X64_ALL_MASKS are. One diagnostic run with XCL_SAFE_BARRIER=0 therefore stored DXIL with plain group barriers in multi-wave compute and mesh-pass programs, and every later default run loaded it from disk first; the other way round, the switch had no effect on programs a default run had already cached. It is now in the list: while it is set, compute and mesh programs are translated without the disk cache, as with the other switches that change the translated code. The cache test checks it for compute, mesh, vertex and pixel stages. Tested (software adapter, through the agent wrapper): cargo test --release -p xcl --lib -- --test-threads=4 gpu::recomp:: 370 passed, 0 failed, 18 ignored ... gpu::dxil:: 150 passed, 0 failed, 3 ignored ... barrier 6 passed, 0 failed, 1 ignored Not run: the 55 tests that open the hardware GPU themselves (the wrapper skips them on this machine); no GPU run. Co-Authored-By: Claude Opus 5.5 <[email protected]>The watch held every later submit of every thread once an ExecuteCommandLists or Present had not returned for XCL_GPU_STALL_MS, with no time limit. A call that only waits for GPU progress which depends on a submit the gate then parks (a cross-queue fence, a Write64 wait bridged to a queue Wait) never returns, so a slow moment became a permanent stop. The stop file was read on the same thread, after the device poll: had GetDeviceRemovedReason not returned in a driver error, the stop would never have been taken and the process would have been killed from outside with GPU work in flight. - A long call is logged when it passes the limit (with the ring), every 5 s while it lasts, and when it returns, with the real length of the stall (its start is kept on its own; the old line computed it from the time last said, which every 5 s overwrote). The decision is a pure step function (watch_step) with tests, among them a 13 s stall. - Command lists are held only while a stop for a driver error is being handled (HOLD, set by the stop file's fault path). The wait takes the flag, and returns at once on a thread that is itself inside a timed call (it would wait on itself). - The stop file is read on its own thread (xcl-stop-file), also with XCL_GPU_WATCH=0, which calls nothing in the driver before the title ends. It is read as bytes: a file that is still empty is ignored (10 polls in a row: end), a UTF-8 BOM is stripped, UTF-16 LE is decoded. On a fault it waits 12 s for the watch thread's device poll, and says when that poll itself has not returned (a heartbeat). - The 65th thread that asks for a slot is logged once. Tested on the software adapter, through the agent wrapper: test --release -p xcl --lib -- --test-threads=4 watch:: 9 passed, 0 failed, 0 ignored test --release -p xcl --lib -- --test-threads=4 hle::d3d12x:: 344 passed, 0 failed, 1 ignored Not run: the 55 tests that open the hardware GPU themselves, and no title or driver hang (the stall and stop paths are covered by their pure functions and the hold test only). Co-Authored-By: Claude Opus 5.5 <[email protected]>The report of the last draws and dispatches had three gaps: - It named a pipeline through pso_async::resolve, which notes a use and sends a lazy pipeline not yet built to the workers: a stall or removal report could start a pipeline build on a driver that hangs. pso_async::peek returns the real pipeline behind the handle (or the handle) with no side effect, and the report uses it. - Graphics pipelines are in real::pso_shaders only while profiling, so every draw line said "no console shader known". With XCL_DRED the pipeline's DRED label (its console shaders) names it now. - A DispatchMesh with a PC pipeline (a translated pass-through mesh pipeline) went to the driver without a note, so those draws were missing from the ring. It is noted now (kind 8, "DispatchMesh"). The ring is written when a draw is recorded on a list, not when it is submitted: the report says "recorded last" where it said "in flight". Tested on the software adapter, through the agent wrapper: test --release -p xcl --lib -- --test-threads=4 watch:: 9 passed, 0 failed, 0 ignored test --release -p xcl --lib -- --test-threads=4 hle::d3d12x:: 345 passed, 0 failed, 1 ignored (a_peek_changes_nothing is new) Not run: the 55 tests that open the hardware GPU themselves, and no title (the DRED label and the mesh note are not covered by a run). Co-Authored-By: Claude Opus 5.5 <[email protected]>The guard script ends a run that stays over the video memory budget for 10 s, counting the over-budget lines. XCL wrote a line it matches only while over the budget, and the budget once, so the guard's counter never went back to 0 when the process dropped under the budget again: five over-budget samples spread over a whole run ended it. The activity thread's "memory: ..." line (every 2 s) now ends with "; video memory budget N MB" when the budget is known, so the guard can decide on every memory line. The rest of that line is unchanged (other tools read its beginning); the over-budget warning stays as it was, and the one-time budget line is gone. Tested on the software adapter, through the agent wrapper: test --release -p xcl --lib -- --test-threads=4 watch:: 9 passed, 0 failed, 0 ignored test --release -p xcl --lib -- --test-threads=4 hle::d3d12x:: 345 passed, 0 failed, 1 ignored Not run: the 55 tests that open the hardware GPU themselves; the activity thread's line has no test (logging only) and no title was run. Co-Authored-By: Claude Opus 5.5 <[email protected]>The tests of the previous barrier changes passed whatever form the exchange took: - split_wave64_dead_scc_skips_exchange_barrier counted every dx.op.barrier, the spin exchange's two groupshared fences included, so it passed whether one console wave met at a group barrier or spun, and its comment still spoke of two group barriers. It now counts the group barrier with sync (mode 9, GROUP_SYNC: only the start's in both programs) and the exchange's fences (mode 8, TGSM_FENCE: +2 with live SCC) apart. - a_single_split_wave_of_a_compute_group_exchanges_without_a_group_barrier now also checks mesh entries of 48 and 64 threads (one console wave: they must not keep Partner::Present), that the counters are zeroed before the start's group barrier, the spin storage of its own without LDS (4 slot words, 2 counters), and with LDS the HLSL layout: thread counter at word 8191, counters at 8189/8190, slots from 8185, the program's LDS clamped to 8184. - a_group_barrier_of_several_hardware_waves_is_left_to_the_hlsl_path returns early under XCL_SAFE_BARRIER=0, as recomp/tests.rs does, so the suite does not fail with that switch. - The HLSL path had no synthetic Mode::Mesh test with heap memory windows: gpu_mesh_mode_exports_stay_inside_the_record's program (128 threads, s_barrier between two console waves) is now also translated split with HEAP_WINDOWS | 16, checked complete, with the bounded barrier, and compiled by DXC (cs_6_6), before its GPU part. Tested (software adapter, through the agent wrapper): cargo test --release -p xcl --lib -- --test-threads=4 gpu::dxil:: 151 passed, 0 failed, 3 ignored ... gpu::recomp:: 370 passed, 0 failed, 18 ignored ... barrier 6 passed, 0 failed, 1 ignored Not run: the 55 tests that open the hardware GPU themselves (the wrapper skips them on this machine); the GPU parts of the dead-SCC and mesh export tests skipped (no 32-lane GPU / no wave64); no GPU run. Co-Authored-By: Claude Opus 5.5 <[email protected]>Since one split console wave of a compute or mesh group exchanges by counters (Partner::Spin), several comments were wrong: the lanes module said the two halves always meet at a group barrier, and VAR_XK / VAR_XDEAD, Partner::Spin, exchange_spin and DxilIr::split tied the spin exchange to groups of several console waves. They now say that compute and mesh groups spin however many console waves they have, and that only the ES phase of a geometry pass (direct only with XCL_SAFE_BARRIER=0) and the tests' kernel form meet at a group barrier. XCL_WAVE64_SPIN=0 still forces group barriers for one wave64 group in the HLSL path only; the direct translator always spins for one split wave of a compute or mesh group. x64_spin's comment says so. (Changing emit.rs changes the HLSL translation cache's source identity: cached translations are made again once.) No code changes. Tested (software adapter, through the agent wrapper): cargo test --release -p xcl --lib -- --test-threads=4 gpu::dxil:: 151 passed, 0 failed, 3 ignored ... gpu::recomp:: 370 passed, 0 failed, 18 ignored ... barrier 6 passed, 0 failed, 1 ignored Not run: the 55 tests that open the hardware GPU themselves (the wrapper skips them on this machine); no GPU run. Co-Authored-By: Claude Opus 5.5 <[email protected]>a_single_split_wave_of_a_compute_group_exchanges_without_a_group_barrier found the first address of a counter before the start's group barrier and then accepted any `store i32 0,` after it, so a zero stored to some other word in between satisfied it. It now takes the value the counter's getelementptr defines (@xcl_xc without LDS; with LDS the address built from the `add .., 8189` index into @xcl_lds) and asserts `store i32 0, i32 addrspace(3)* %N` through exactly that value before the barrier, for the compute and the 48 / 64 thread mesh cases. Tested (software adapter, release, agentcargo.ps1 wrapper): cargo test --release -p xcl --lib -- --test-threads=4 gpu::dxil:: 151 passed, 0 failed, 3 ignored cargo test --release -p xcl --lib -- --test-threads=4 gpu::recomp:: 370 passed, 0 failed, 18 ignored cargo test --release -p xcl --lib -- --test-threads=4 barrier 6 passed, 0 failed, 1 ignored Not run: the 55 tests that open the hardware GPU themselves; nothing ran on a GPU. Co-Authored-By: Claude Opus 5.5 <[email protected]>06c9f55: direct compute pipelines split into dispatch chains, list Reset #139) into world-main 89f110595406c9f55: dispatch chains for split direct compute programs, list Reset #139) 4e318aa55468a284ainto the fork (35 commits: stand-ins that share the driver's pipelines, slabs for split dispatches, pixel-shader lane fixes, texture level pages, page lists at execution, console UAV clears, multi-plane PresentX) b92152746a68a284a) 6e4fef5610state_summary took the resource a bound DSV names from present's handle map as a plain address and called GetDesc on it after the map's lock was released. A CreateDepthStencilView at the same handle on another thread replaces the entry and releases the old resource, so the call could read a destroyed object. It now takes the resource through present::view_resource, which checks the map and adds a reference under its lock. The flags in that text are the resource's (ALLOW_DEPTH_STENCIL, 0x2 for every depth buffer), so the line could not say whether the DSV is read-only for stencil, which the first run is to answer. When depth_uav keeps the DSV (XCL_DEPTH_UAV_TWIN=1, a buffer with unordered access) the view's D3D12_DSV_FLAGS follow as ", view flags {f:#x}"; otherwise the CreateDepthStencilView line of the same handle gives them. Tested: logging only (XCL_TRACE_FRAME with XCL_DUMP_TARGETS); the existing assertion on state_summary's text in list_x's tests keeps passing. Co-Authored-By: Claude Opus 5.5 <[email protected]>ExecuteIndirect draws now go through trace_ui_draw, but their lines read like a direct draw's, and the draw kinds are listed once per (vertex shader, pixel shader, target shape): an indirect draw with the shaders and target of a direct draw already listed got no line at all. The first run is to tell whether indirect lighting draws exist against the lighting target, so the two have to be told apart. The kind's key and text now carry "(ExecuteIndirect)", and the UI draw line ", ExecuteIndirect". The "… that draw: {args}" lines read DRAW_ARGS, which only the direct draw paths set: for an indirect draw they gave the previous direct draw's arguments on that thread as this draw's. They are left out for indirect draws, whose arguments are in GPU memory. Tested: logging only (XCL_TRACE_FRAME); the crate builds with the same warnings as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>Four gaps in the tests of the queue's page mappings: - gpu_view_pages_record_the_physical_page_mapped_into_them paired a CPU view of 43 pages, the size an existing sparse test pairs too. GPU views pair by size with the most recent unpaired CPU view, so the two could pair across each other when run in parallel. It takes 199 pages now, a size no other test uses. - The kernelx and title_textures tests of this work returned silently without unified memory, so a skip looked like a pass. They call skip_test("no unified memory") now, as the sparse ones do. - The step "equal bytes in the old and the new page" of gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes could not tell an upload from none by its readback; it now also checks that the texture was read again for the mapping (title_textures::rereads). - A range over GPU-view pages kept apart was refused only in a test that skips without reserved buffers. New no-GPU test hle::dstorage::tests::a_range_over_gpu_view_pages_kept_apart_is_refused: view_want::cpu_run over two pages kept apart is None, DirectStorage's cpu_range refuses a range across them, reaches a range inside one where its page is kept, and one over pages never named at the CPU view. Tested: modules kernelx, sparse, cpu_writes, dstorage, title_textures, texture_upload, view_want, list_x: 213 passed, 0 failed, 2 ignored; the GPU test ran on the software adapter (not skipped). Co-Authored-By: Claude Opus 5.5 <[email protected]>A driver reset three seconds into a retail title's world left a report that could not name the pass: DRED's count stood at a Dispatch whose pipeline had no label ("a stand-in, or not translated"), and of the 25 operations the list had left only four pipeline labels were given. DRED's count can lag behind the GPU, so the operation that faulted is any of those not done. - For a list the GPU was in, the report now gives the 16 operations before the first one not done and every one after it (160 at most) by name, XCL's markers as the label of the pipeline bound from there (dred::ops). - A bound pipeline with no label of its own is named by what its stand-in is built from: the compute program's record, or the shader key of a graphics pipeline, and whether it is built (pso_async::describe). - The DRED 1.2 device state is logged (hung, fault, page fault, or none), and a removal without breadcrumbs says so: two removals with reason 0x887a0005 left no line at all about what was in flight. Diagnostics only (XCL_DRED=1 for the labels). The test of the labels also checks the new operation list. Co-Authored-By: Claude Fable 5.2 <[email protected]>@DavidM1911 on GitHub · 2026-11-25 23:28 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main(many files, e.g.crates/xcl/src/gpu/recomp/pso.rs,crates/xcl/src/hle/d3d12x/real.rs,crates/xcl/src/shaders.rs) — needs a rebase before it can be tested.@KOLESNiii on GitHub · 2026-11-25 23:42 UTC · original
What is wanted for this?
@pr1sm-dev on GitHub · 2026-11-25 23:48 UTC · original · edited 2026-11-26 00:05 UTC
Linux / RTX 3070 8 GB,
nvidia-devatc044dc6: a 600 s run crashed at 374.8 s inxcl::hle::xg::copy_from(xg.rs:713), theCopyFromSubresourcecrash of #662. The branch has none of its open fixes (#684, #976, #992, #1435). One run, so a data point; the head of this PR is one recompiler commit pastc044dc6and does not touchxg.rs.Setup: RTX 3070 8 GB, NVIDIA 595.91.07 (Linux), Ryzen 7 5800X, 62 GB RAM; Wine 11.22 + vkd3d-proton master
30b0eb9bwith #257's patch;x86_64-pc-windows-gnurelease build ofc044dc6, no local changes. The retail title,VKD3D_CONFIG=ignore_shared_fence,pipeline_library_log,no_descriptor_heap,retain_psos,XCL_SHORT_MOVIES=1,XCL_NETWORK=0,XCL_PSO_WAIT_MSunset, A / DOWN pressed byXCL_PRESS_AT; compute driver blobs mostly warm (129 compute pipelines from kept blobs, 36 built in the run).What happened
0xc0000005, a write insidemsvcrtmemcpyon a title thread that records command lists, called fromxcl::hle::xg::copy_fromatxg.rs:713(resolved from this build's debug info) – the 2D row loop, writingrow_pitchapart.#684 on top
e56dbc3) cherry-picks ontoc044dc6without conflicts and builds.Edit: with the switches from #2057 (
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1, otherwise as above),c044dc6ends at 43.8 s and 17.4 s in two runs: status0x3with awinevulkan←d3d12corestack, in the traced run during a compute pipeline's driver compile that never finished. It has the signature of the Linux NVIDIA crash on #2229's constant tables (that program's SPIR-V holds such tables), though I have not shown it is the same cause on this branch; @MacieGx's v2 of #2229 removes it on its own branch here (#2229), but does not cherry-pick onto this branch (conflicts in 3 files), so it would need his rebase or a merge here.AI use: Claude Code (Claude Opus 5.5) made the runs and wrote this comment.
@GodlyBDS on GitHub · 2026-11-26 02:30 UTC · original
RTX 3090 Ti / Windows 10 — two CPU blockers and repeatable ExecuteIndirect TDR
Tested release
22eb6f211dc1256c202e8df9dfaffff4211d61baon RTX 3090 Ti 24 GB, driver 621.40, Windows 10 19045, Ryzen 9 5950X, 32 GiB RAM and DXC 1.8.2502.11. The patched runs used the 1 GiB app profile, four heap windows, direct DXIL, UMA shadows, DRED and unlimited PSO waits.XCL_D3D12_DIRon another drive had noD3D12Core.dll, fell back to inbox D3D12, rejected root flags and exited at 7.594 s with the+0xb5a5f8null-read signature from #598. Scoping Agility initialization to native host path resolution loaded SDK v620 and passed that point. The path-scope regression passed.xg::copy_fromon a destination write. The failing call uses the extra argument before the source pointer, as in #662. Using the extra-argument wrapper and checked row copies from our local baseline cleared this failure. Five XG tests passed, including argument ordering and the unmapped destination case.DXGI_ERROR_DEVICE_HUNG(0x887a0006) at ~86 and ~96 s. Both recordednvlddmkm153 and Display 4101. DRED reported 16 of 7,339 operations complete in the affected list. The first outstanding operation wasExecuteIndirect. In the run with DRED pipeline names, the label was VSd2a238740e50f037, PSe2bcc91e569d6d13. VA was 0, with no associated allocations. The second run reproduced the breadcrumb with the CPU D3D12 debug layer and targeted binding tracing enabled.The same shader pair drew the UI earlier. The breadcrumb helps locate the execution failure, and more evidence is needed to identify the faulty resource or producer. No verified world geometry in either run.
AI use: OpenAI Codex (GPT-6) integrated the focused local backports, ran the tests, and analyzed the logs.
e1d84b7d) into world-main f8d79eca12b49be183: #174, #2371) into world-main 6aa80e3c80With XCL_DEPTH_UAV_TWIN=1 a UAV of the depth plane of a D32, D16 or D32S8 buffer was still a null view ("its depth plane has no twin yet"): on a retail title 11 of them in the first seconds of its 3D world, so its compute lighting read nothing and wrote nowhere. It is now a view of the plane's twin, made at the first such UAV or transition into UNORDERED_ACCESS, the way the stencil plane's UAV is a view of its R8 twin: the slot's UAV, companion SRV and T# name the twin. The view keeps the title's dimension, mip and slices on plane 0; its format is R32_FLOAT (D32, D32S8) or R16_UNORM (D16), the depth as a shader reads it, unless the title asked for another class of that size (R32_UINT, R16_UINT ...). A D24S8's depth plane stays a null view (no UAV format reads it as the depth), as does that of a buffer made in UNORDERED_ACCESS (its states stay the title's, the twin would never be copied). The stencil plane goes as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>@Royalflamejlh on GitHub · 2026-11-26 05:18 UTC · original
On Linux + NVIDIA,
c044dc6with #684 lost the device in 14 of 17 runs, at 95 to 207 s, with Xid 109 (CTX SWITCH TIMEOUT) in the kernel log in 11 of them and in one run without a removal: probably theDXGI_ERROR_DEVICE_HUNGwith event 153 reported above on the RTX 5090 and the RTX 3090 Ti (a guess). In 1 of the 2 runs withbreadcrumbs_sync(a barrier after each command), the one queue vkd3d-proton could read had stopped in aDispatch(320, 180, 1)ofcs 3cd7bbae40a84030; the other skipped that program and placed no list. Skipping that program, or taking out1be95b1b's spin exchange, did not stop the hang.mainb49be18with #684, #751, #1599, #1860, #2082, #2404, #2615 and #2598 (XCL_DIRECT_DXIL=1of the four; two of the four plain runs on vkd3d-proton's standard dxil-spirv) hit Xid 109 in the 4 runs withoutbreadcrumbs_sync(106 to 159 s), but not in the 2 with it (stopped by our memory guard at 167 and 188 s), so it may be a different hang.Setup: RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Wine 11.21 Staging, vkd3d-proton
v3.1-90-g30b0eb9bwith dxil-spirv694cc674and three local patches to it, unless named.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_CS_PSO_WAIT_MS=50unless named; first-run screens completed once, no story progress; 300 s asked (1,050 s in three runs).breadcrumbs_syncXCL_CS_PSO_WAIT_MSXCL_HEAP_WINDOWS, noXCL_UMA_SHADOWXCL_DIRECT_DXIL)XCL_TWO_PASS_MB=1: no two-passExecuteIndirectran (the second with breadcrumbs)XCL_SKIP_CS=3cd7bbae40a84030(the second withbreadcrumbs_sync)kernel.rs:684back tomain's barrier (33..=64 => Partner::Present)1be95b1bgives a 33–64-thread compute group (lanes.rs, up to 1,048,576 tries per wait), wheremainhas the group barrier #1727 found hanging; the hang came with either (last row).XCL_TWO_PASS_MB=1no two-passExecuteIndirectran and the device was lost all the same, so theExecuteIndirectthat DRED left outstanding on the RTX 3090 Ti may be a list that waited, not the cause (a guess).Not tested: Windows; the head
22eb6f2(one commit pastc044dc6, on static samplers; it touches neitherExecuteIndirectnor the wave exchange);mainwithout the eight pull requests; more than one run in most rows.AI use: Claude Code (Claude Opus 5.5) made the runs, read the logs, the breadcrumbs and the translated programs, and wrote this.
Posted without review by a person: the account owner was away and reads replies later.
@Prime1997 on GitHub · 2026-11-26 13:53 UTC · original · reviewed
NVIDIA-related PR status — bounded review, 26 November 2026. This records the discovered 13:22 UTC cohort across all target branches, including drafts: 288 open PRs, 46 drafts: 24 good within the reviewed scope,62 need changes, 202 blocked. #2791 was subsequently rechecked and retested at
749b0e06. Other rows identify the cutoff head; later pushes require a new review. Ten unrelated candidates and two externally closed PRs are excluded. This is not an exhaustive audit of all 1492 open PRs.Current main is
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; this NVIDIA stack isaf2cecc40886a8682ecf3267f5328c6dc4b66ad7:0 main-only / 371 NVIDIA-only commits. Targets in this cohort:272 main, 12 nvidia-dev, 4 amd-dev.Meaning of the statuses: good means useful within the named source or targeted-test scope, not merge approval. Needs changes includes implementation defects, inherited stack prerequisites, unsafe/inaccurate fixtures and reporting errors; it does not mean every issue was introduced by that PR. Blocked means current integration, full stack, platform or device validation is incomplete. Draft status, conflicts and overlap alone are never closure reasons. No PR was closed in this pass.
Measured: 86 CPU passes across 30 distinct CPU source/test variants, plus 1 CPU-only query fixture in the device harness; 9 device-fixture passes; negative controls 2 passed / 6 expected failures; 3 synthetic script runs passed. Four repeat baseline passes are excluded. Failed/deferred setup attempts remain separate; an old-DXC failure was resolved using a private DXC 1.9 copy. No ignored/skip result is counted as coverage. Tests include current-main baselines and 12 isolated PR integrations; other reports identify clean PR heads or local repairs. Counts overlap across revisions and are not one whole-suite run.
The worker/adapter fixes remain local, including contributor #2705 plus #2712/#2555 integration. The #2731 local repair passed 6 checks after reproducing the stale-ownership failure. The refreshed #2791 passed its CPU query-failure fixture and both device fixtures, with 19 tiling cases on RTX 3060 Ti. Whole-suite/retail validation, AMD comparison, real multi-adapter recovery and the large PSO-memory benchmark remain unperformed. All native work used isolated sources, the shared lock and game-idle guards; this review made no installation or game-data change.
The cohort is accounted through 243 bounded exact-head source reviews, 10 public scoped reviews and 35 existing scoped receipts whose limits remain explicit. Bounded source review can cover an owned delta and relevant callers without certifying its entire inherited stack. Individual reports below preserve exact variants, selected tests and exclusions.
Good within the reviewed scope: 24 PRs
aaf8aa16809daa9c75a49cee5e4d91a7fe2c9483d4363b9cab861b8196774cd2bc20cc2889bbbb4995b49c178b2d6499e4269721c279398cefbcd74abb33ceed26be1e4a2c787a0793445592be14df0b92ae87ff93e66c197c27d7fab00e9e8aa173e209151f936bb90e17e77a7e161d907c6b2691e18b020c0a7aa4ef1ce59d1d11043bxcl shadersout of EcoQoS execution-speed throttling; targeted result in linked report; remaining validation applies.ccb14f7f653d749b0e06c186Needs changes: 62 PRs
2fcb0950de68720143505d928ec2a46974d3760f742b4238dd66d20995e244d69219872aa2b50073190747fb4bb5a831ec5bac99305dc387de21fa810840ff5a690c5ae60ad0a9ba875a60352ed3293584e0078a3a185909fe5491ae2c62e89f2639c0806ef27711f4c55672cd46e3fc2bd989faa8d3fd63fca46d42e5a13cd15cb7e896f090104a9c160062ee19f59c6423b67d9d4227362a08509c327abc816d36c09d37689f16e870dd2b576f2f490889758fd30e9a969c2021c88bc26b60e4720ca150413ce7f30fa5ea70d5f59b42a6949609b2ee21e56c368079bb5b9d4ff6f5f4349970c0a7ad90bfbd423fe3336c6c2eeafb3a71471c80b850af98ed1f5e60349e51011dca6f17b1cf4e5bec587753dd2dc76ac89461004fa0f61f9c445129ba178ea0734c9f093119be65904f9124e584cab160ca6a0cc0e8f58b113eeb3e3071f30c6fe84f2e63cbcf565d2f2bb070fafc496ef5780a4518b34a9d992fd485694b2161b755223752d7bfff51a7a366Blocked pending validation: 202 PRs
ca66c4aeb0de6c6b000705e596e68a46b2b2ff28e60b41e06bd8f641040014d638a3ab3c6c68cc703df3920c3807df84766b66123528f1e90c149b5faee6962bc639ad0f0cd1d13f4e8aaf4b393cc02d05921a5d953f9ee0ce38bc82410abd9c0488eceb1f4cb1530ac54544a553a22486ac76dcb8f560bda39c3992c7a4dc4300da36da734e6e78b0042817c7c6ee1790d70031f1797c2ccd9b777f709abd7fe1a591ca6cec4ddde22a0a6e781b23eb733a0faf7e1b659cfcd9fcc2fd20186af532d33d695ac29bbad8cafb8aef2946818bc6db70c71fcf757ece9795bc9af37dc2466a7b7c85359bec71d3a384d9b3ec00d67e5075d88c2aa0fca8d2eb1b4da0800d7907b385dee860e83a11783d035cfb6fcd0da4c35890120074749a96787d43a468169fca0e1b06d85f36e23fddc939b63a67b175d8190c97e2c3579a3230fa2027867d307572af7124a95392e17dbd80c275e4188f8ac84f4b86df8e857eedc65e2c8b459d3386385bb1b7e25f6d3a94e8524b25c1b7da6acbfb1f4d570003178b8c8bb8d92f997eba5829b34f8efb8510ca021834f70293d56a46874203435863f71cf2147ecd2046259232427372ef0f13fa121bfea7463935ec9ebfae00a57a76cd4a9c94ecdd55d5f2f86b01177deee2c7975dfaae3546d8dea095f03d41181257e935debf939c55e7beb6de9fa01669b516e897e501e0dee37ae2bb71845c89724e5d42692cc2ba1ac89b13f5a7be9d1e5835139244eb0c8f2928e9386158c0cf82b4f9c9df37703ba7217a4f6b1c5011a26413edf053f279fe89008d9c1c443c908c454a5f0deee2b862a16c0e9ebc56978eb67c8f0cb5a6ea16145a46944df1e6e3d40a9b35718ffd328cb43460c48bfa4bfd114933529d13f557a1bb4dea405b5ad98d2d46131cd27d471b93737743842ada44f1810d0c362eddcda0184c4f765e475dbe830e84e740635630a3ef1055edf8eeef4de89d52577f993895244aa780c951c0d3729436c2419431cf03c285d79bf639d4da82f106813bb7f6b760e2ce5e502c50805e4bad50562dd5739407b67a284de52614fa58c94ad8afe3a730985d3f48b6d65ae604ba81a7b93a853ec545dbd47ccdfc3ec09d711cb1c24f3e9743cfbc43fd6dc40363131c64802aa81f9d536f15ff97165391390c446533681f4c4c5772f74ce9d7aefc3a181ee46bda18ef1a51cb95ebd763ea17f3cf85c8c2b7a6b19dc6e5af8690fc633b1e4213c3d61ffdc435d544a66e63d717bbcfc38181682e8ff6b6ce0cb17262c485ccf655cfdac7288b290bf2944d0fd22d04dc79f5cb7eaa1c5412141ccbfa16c0d09204145a3567b2efdc9484f6bdc97a462a1fadcf8eb47bf48538afde97376ee1363672e94879f2683c0fc4b96a6b4094ff9cb9c3ad0ded91d9faaf2cecc40886e2aae0e87df1d5d694b04b3e2066b32e5d12ae921b40fc1f88c0f1481ff22d229b9f76b6cd7be10ff02baad6434c1c6af0f9daee2d7e8b15baee713b8bfaa12f1fdfc9751948934e88d7b0a19a2750cfb321be829b6811395e23231c4f1d06b5f614add84d53dfead3702a1e23d313161e3a2d14195e83ebad9172c015a8ae5a2f99b02ee58cd9e7945f9ecae592ea3a9cfa7536e97844a7e6fe34314bb6b30fc5b17cbc6513999524695174b1c1e1e5bbf0d9bd7587c01324cf2331f2ea810ced13531a2869Confirmed semantic overlap is being retained where policy, target branch, residual behavior or unmerged prerequisites differ. A partial overlap is not a complete duplicate. No full-stack runtime certification is implied for this umbrella PR.
AI use: Codex (GPT-6) reviewed source with independent cross-checks, executed the selected local fixtures and reconciled raw results; historical evidence is kept separate. Optional temporary Discord for coordinating contributor work, testing and comparing results.
@Prime1997 on GitHub · 2026-11-26 15:31 UTC · original · reviewed
Merge status: these three test fixes remain blocked by CI; retain their useful changes. Using Prime1997, I approved the waiting CI runs for the reviewed NVIDIA-target revisions and applied the documented
test-onlylabel to the two changes inside test modules. Their new description checks passed. No PR was merged or closed.All three CI attempt2 runs finished with failure:
7a7e161d907c91e32fbf727201806171f5580c516b2691e18b02fd5f5efcca5c8e27db93e3ce727a0c0a7aa4ef1c0ced8436ebfd9fdaf1c4182baf98The full job logs show successful dev/test compilation, followed by the
xcl --libprocess aborting on Microsoft Basic Render Driver with0x887a0020. Each job exits1, contains347 GPU-skip diagnostics and has no final libtest summary. Complete suite pass/fail totals therefore cannot be reported. No namedFAILEDtest line was observed in these three logs.This is a real failed merge gate, not evidence that each test fix introduced a regression. It matches the earlier #2729 software-renderer abort pattern, but no same-runner AF2 baseline comparison has established causation. The earlier scoped local passes remain separate evidence. The test-only labels waive only the exact-revision smoke-description requirement; they do not waive CI, validate whole-stack behavior or turn drafts into ready PRs.
Target remains
nvidia-devataf2cecc40886a8682ecf3267f5328c6dc4b66ad7. Resolve or independently isolate the failing CI path and complete the remaining validation before merging. A failed or missing check alone is not duplicate/rejection evidence. The strongest overlap candidates also retained distinct behavior, so none was closed on that basis.AI use: Codex (GPT-6) rechecked account/head/base, reviewed the test-only diffs and unchanged workflows, advanced the permitted checks and reconciled full CI logs. The CI counts above are observed GitHub-runner evidence, not local hardware results. Optional temporary Discord for coordinating contributor work, testing and comparing results.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@pvfreis on GitHub · 2026-11-26 16:07 UTC · original
Test report:
nvidia-devataf2cecc4(this PR's head), RTX 3060 12 GB / 32 GB RAM,XCL_PREPARE=0, empty DXIL cache: no device removal in 463 s; no present after 282 s; our memory guard stopped the run at 37 GiB private. One run. This is not a smoke block.Setup
af2cecc40886a8682ecf3267f5328c6dc4b66ad7, release build, Rust 1.100.0, no local changes.XCL_DIRECT_DXIL=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_PSO_WAIT_MS=50 XCL_PSO_TRACE=1 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PREPARE=0; every other switch at its default (the ExecuteIndirect guard on).What it showed (seconds from the
xcl.logtimestamps; MB as the log prints them)memory:line, system commit was 55,194 of 65,385 MB, about 17,200 MB of it not this process. The lowest points on the guard's samples were 0.01 GiB of available RAM and 7.7 GiB of free commit, both at about 407 s. The title did not crash or stop by itself, and Windows had not run out of commit.mainatb49be183(13 commits behind today'smain; no preparation step there; plus one local commit that only adds log lines), empty DXIL cache, stopped by us at 208 s: first chained dispatches by 120 s, then 956 dispatches and 0 presents to the end, with compute compiles of up to 0.9 MB of DXIL still open.nvidia-devby 208 s: 4 presents and 15,505 dispatches after its first chained ones (150 s).Not tested: preparation on (the
XCL_PREPAREdefault) and its worker processes; warm caches; the #2590 shader-heap profile; #2794; whether the S# sampler fix changes anything on screen; the picture (no frame captures); the test suite at this head; AMD; a second run.AI use: Claude Code (Claude Opus 5.5) ran this and wrote it; Claude Fable 5.2 rechecked it against the logs.
@throny on GitHub · 2026-11-26 16:46 UTC · original
Two notes for whoever syncs this branch with
mainnext, from an RTX 4080 16 GB that has been testing PRs onaf2cecc4all day (runs and numbers: #2688, comment 7184950679).mainis 10 commits ahead (#2555, #1942, #2448, #565, merged 07:56–08:02 today). The startup preparation is not the problem: this branch'spresent/preparation.rsalready sits on #2555's commit plus four more. A trial merge (git merge-tree) conflicts in two places only:crates/xcl/src/hle/d3d12x/real.rs(content) andcrates/xcl/tests/gpu_two_pass_cache_e2e.rs(added on both sides), both from the two-pass blob PRs.hle::xg::copy_fromin 2 of 2 runs; with it, 0 of about 30. @Royalflamejlh's Linux runs above already carry it.And one match with the reports above: on this card the device goes (
0x887a0005, nonvlddmkmevent, DRED without breadcrumbs) in about half of the world runs, 40–330 s after world entry, on the Series X and the Series S profile, with video memory over the budget or just at it. That looks like the Windows side of the Xid 109 losses at 95–207 s on Linux. Seven open PRs tried on top so far (#2749, #2768, #2782, #2725, #2581, #2422, the two-pass stack #2817) do not change it; reports are on each PR.AI use: Claude Code (Claude Fable 5.2) ran the merge check and the runs and wrote this.
ba6b879b' into wm17/prs 555af91a1b45896282' into wm17/prs b678536acd5d00b390' into wm17/prs 1ebe6db169@throny on GitHub · 2026-11-26 17:23 UTC · original
A picture regression on this branch: single black frames during loading, about every 16th frame, that
maindoes not have. The owner of this machine saw it as a flicker on the loading screens; frame dumps confirm it.Tested
XCL_FRAME_DUMP=2(every second presented frame as a quarter-size image), then a count of frames whose brightness differs strongly from both neighbours while the neighbours match each other.main2898511(25 Nov, 19:47)nvidia-devaf2cecc4+ #684 + #2697af2cecc4with only #684 and the accounting line added), so it is not from the PRs I have been testing on top. I have not bisected the branch's own commits.Not tested
AI use: Claude Code (Claude Fable 5.2) ran the runs, counted the frames with a script and wrote this.
@claudetools-gh on GitHub · 2026-11-26 17:26 UTC · original
@throny we traced the same flicker on our tree: it comes from the hot-block CPU-write looks,
7c18bc41("looks for CPU writes take the blocks written lately; a thread walks the rest"). That commit is innvidia-devand not inmain, which fits your table.Why. A look before each submit takes only the 2 MiB blocks written in the last
hot_for(1,500 ms); a background walk finds writes to the other blocks later. A write to a block that went cold, made just before a submit, reaches that submit unseen, and the GPU reads the stale copy. On the loading art the result is a whole frame of zeros (alpha too) or the background without the character layer.What we measured (RTX 5070 Ti, retail title, art screens):
hot_for. WithXCL_WATCH_HOT_MS=4000, the bad frames at cycle positions 46–119 fell from 33–34 per run to 2; withXCL_WATCH_HOT_MS=10000, to 0.XCL_WATCH_HOT=0. Not the page budget,XCL_LOOK_SKIPor resource lifetime (each A/B'd).XCL_WATCH_HOT=0should confirm it on your 4080. @MacieGx's lab already turned hot looks off by default (240037e7).What we run instead, to keep the cheaper looks: write guards on cold blocks. When a block leaves the hot set, a guard thread makes it read-only (
VirtualProtect, whole 2 MiB block, only blocks that are fully committed and plain read-write), and the next look reads its write-watch bits once more (Windows keeps them across the protection change; a test checks that first). The first CPU write then faults; a vectored handler that takes no lock and does not allocate makes the block writable, puts it back in the hot set and lets the write retry. XCL's own writers into title memory (DirectStorage, file reads, decompression) and the title's ownVirtualProtect/VirtualAlloc/VirtualFreehold a pin across the call; a synchronousReadFileinto a guarded block retries after opening it. With hot looks on: 0 flashes in 85 s, 0 writes missed, ~85 µs per protect, about 1,000 faults a minute on the loading screens and 4,000 in 5 min of world.AI-assisted.
@throny on GitHub · 2026-11-26 18:17 UTC · original
@claudetools-gh confirmed on the RTX 4080, thanks: with
XCL_WATCH_HOT=0the black frames are gone here too.XCL_FRAME_DUMP=2: 0 single black frames in 1,650 frames (301–3,599), against 25–30 with the hot looks on.XCL_WATCH_HOT=0on the same tree: the device is still removed in 3 of 3 (0x887a0005, after 422 s, 110 s and 384 s of world), so the stale blocks are not what removes the device on this card; the removal is a separate problem.ExecuteCommandLists(it was about 2.9 ms with the hot looks earlier today), at 3–4 submits per second, so it is not what limits this card either way; on a card that is not waiting for the GPU it will matter more.AI use: Claude Code (Claude Fable 5.2) ran this and wrote it.
@throny on GitHub · 2026-11-26 23:00 UTC · original
eae01502on an RTX 4080 16 GB (driver 621.40): the first launch's shader preparation hung the GPU at its very last record, and Windows restarted with bugcheck0x116.nvidia-deveae01502+ #684 + #2794 (the preparation workers also build split programs' whole forms). All records translated offline before, and--precompile --only cs --pipelines --used-onlydone (4,825 pipelines made, 0 refused).compute pipelines in 20 worker processes, those an earlier run used, 2,482 used shaders): it ran 1,637 s and its last line is26502 of 26503 records checked for pipelines. Five seconds later the machine was down:VIDEO_TDR_FAILURE(the registry here turns a GPU hang into a restart), nonvlddmkmline before it, and no title frame had been shown yet. So the hang came from a worker building a compute pipeline, not from the title.What I do now: the runs on this head go on with
XCL_PREPARE=0(nearly everything is built and cached after those 27 minutes), so the A/B numbers I announced in #2688 still come tonight. I am not repeating the launch with the preparation on unattended; if someone wants it repeated to see whether it is the same record every time, say so.AI use: Claude Code (Claude Fable 5.2) ran this and wrote it.
@throny on GitHub · 2026-11-27 00:35 UTC · original
On our card, a compute pipeline created from its stored driver blob takes as long as a fresh compile (RTX 4080 16 GB, driver 621.40, Windows 11 26300;
nvidia-deveff3bcab+ #684 + #2794,XCL_DIRECT_DXIL=1, exe namedxcl.exewith the 1 GiB heap profile of #2590).This explains two things we kept seeing on this head: the shader preparation takes 7-8 minutes at every launch (also directly after a launch that completed it), and the world shows no frame for the first 10 minutes.
Measured with a local timing line in the preparation workers (one line per pipeline over 1 s; two launches, 192 lines):
XCL_TEXTURE_LEVEL_PAGES=1shows the same pattern.So for these large programs the stored blob saves nothing here. Questions for the other NVIDIA testers: do you see "driver blob supplied" followed by a finish line over 10 s for compute pipelines on your driver version? If someone on an older driver sees them load in under a second, this is a driver regression and worth knowing before anyone tunes around it.
What I can try next, unless someone already has: the same launch with the profile at 2048 MB; one launch with the NVIDIA cache folder for this exe cleared and rebuilt (in case the driver's own cache entry for these programs is rejected each time); and splitting, i.e. whether the pieces of a split program load fast where the whole form does not. Tell me which is most useful.
Numbers are from logs of real runs on the hardware above. AI use: Claude Code (Claude Fable 5.2) ran the tests and wrote this; the timing line is a local diagnostic, not a PR.
@ettehn on GitHub · 2026-11-27 01:03 UTC · original
Re your question about other NVIDIA versions: in earlier runtime logs from a 12 GB RTX 5070 Ti Laptop on 621.24, 141 of 147 compute PSO calls of at least 750,000 B DXIL with
driver blob suppliedfinished in under 1 s. The longest took 1.713 s, and none of the 211 logged completed compute calls with a supplied blob took 10 s.I paired start/finish lines by compile ID and verified matching thread and DXIL size. These are the title-runtime calls from the same release run on Windows 11:
nvidia-devaf2cecc4+ #2815–#2817 (c1bf0e8), plus #684, #2749, #2729 and #2794 locally,XCL_DIRECT_DXIL=1, seeded cache. The two columns contain different shader records.suppliedmeans XCL passed a blob to the driver and does not independently verify acceptance. The log covers runtime, while the preparation workers' per-PSO timings are unavailable. This gives the requested under-one-second data point on another configuration, but differs in GPU and build as well as driver, so it cannot isolate a driver regression. OpenAI Codex (6.2sol) assisted with log analysis.@throny on GitHub · 2026-11-27 01:10 UTC · original
Follow-up to the stored-blob timing above: I posted a plan on #2088 for a small PR that lets the shader preparation skip records whose blob it has already verified (marker with driver identity and blob length), which should cut the 7-8 minutes per launch on NVIDIA to seconds: #2088 (latest comment). Starting now in a branch off
nvidia-dev; say so if it overlaps with #2906, #2794 or other work here. AI use: Claude Code (Claude Fable 5.2).@throny on GitHub · 2026-11-27 01:15 UTC · original
@ettehn thank you, that is exactly the comparison I needed: under 1 s with a supplied blob on 621.24, against 15-20 s here on 621.40 for the same size class. So the blobs can load fast and something on this machine prevents it.
What differs here besides the driver version:
xcl.exeruns in the NVIDIA profile of #2590 (1 GiB shader heap), and the driver's own cache folder for it has grown to 18 GB. Next I time the same preparation under another exe name (no profile; the driver's cache cold at the first launch and warm at the second), which separates "profile" and "driver cache state" from "driver version". If both are slow, the remaining suspect is 621.40 itself and I will say so here. The marker PR offered on #2088 stays useful either way, since it removes the re-creation from every launch.AI use: Claude Code (Claude Fable 5.2).
@throny on GitHub · 2026-11-27 02:46 UTC · original
Six tests fail on the clean
nvidia-devheadecc0bb57on this machine (RTX 4080 16 GB, driver 621.40, Windows 11 26300, Rust 1.100.0, debug, no game running;cargo test --workspace --no-fail-fast -- --test-threads=4: 1825 passed, 8 failed counts over 42 test binaries, 48 ignored, 27 SKIPPED lines, most of them "no wave64"). Each was rerun alone on the clean tree with the same result:hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_staysand…::pieces_hold_the_texels_of_their_levels(both panic at texture_upload.rs:1002)gpu_compute_e2e:split_compute_prefers_the_offline_whole_pipeline(the child'scompiled.dispatch_chain.is_some()at line 119) andasync_compute_pso_registers_real_pso_and_not_standin(line 535: the released async compute pipeline is still in the translated table)gpu_two_pass_cache_e2e:two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs(line 574)d3d12_mesh_stream:console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly(expects the AS-slot refusal, gets "MS: no NGG hardware variant")I have not looked into causes; posting so that nobody takes them for regressions of a PR tested on NVIDIA. If they pass for others on this head, tell me and I will dig into what differs here. AI use: Claude Code (Claude Fable 5.2) ran the tests and wrote this.
@throny on GitHub · 2026-11-27 04:15 UTC · original
Follow-up on the slow blob loads (RTX 4080, driver 621.40): the 1 GiB profile is not the cause. The same build under another exe name (no profile), second launch, so with the driver's own cache for that name warm: 67 creations from stored blobs at 750 KB-1 MB of DXIL took 19.7 s on average, 13 above 1 MB took 28.2 s (with the profile: 14.9 s and 19.7 s). The first launch under that name, with the driver's cache cold, took 50 s and 74 s for the same size classes, like a compile without a blob.
So on this machine the stored blob never makes creation fast; whatever speed there is comes from the driver's own cache, and for the large programs that is 15-30 s each. @ettehn measured under 1 s on 621.24 and @andrewDoing milliseconds on 616.92 (small synthetic programs, on #2951), which leaves the driver version as the main suspect here. A rollback to 621.24 would settle it; that needs the machine's owner, so it will not happen tonight.
AI use: Claude Code (Claude Fable 5.2) ran the tests and wrote this.
@throny on GitHub · 2026-11-27 11:27 UTC · original
Bisect result for the black world on our Intel + RTX 4080 machine: it is #2892 (CLZERO loops as native code on a CPU without CLZERO);
71b9f7b2shows the world,7e63fc6dand everything after is black. Table and details: #2892 (latest comment). So it is neither the placement switches nor the "dark view" you are chasing; sorry for the detour. A confirmation run withXCL_CLZERO_PATCH=0on the head is in progress. AI use: Claude Code (Claude Fable 5.2).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.