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· +34213 −2749 · 89 files · 371 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?
@nnonno91 on GitHub · 2026-11-25 23:45 UTC · original
Tested
xcl-dev:nvidia-devatc044dc6, which is included in this PR. Release build with Rust 1.100.0 and DXC 1.8.2502.11. Retail title 1.0.2.1 on an RTX 5090 (driver 617.42), Ryzen 7 9800X3D, Windows 11 build 26200.Two launches reached the menus at about 30 FPS, then hit
DXGI_ERROR_DEVICE_HUNG(0x887A0006) during world loading at 103.4 s and 156.2 s after launch. The second run had 11,205 MB of system commit headroom at device removal. Windows loggednvlddmkmevent 153 around both failures.Common flags were
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_LOOK_SKIP=1 XCL_NETWORK=0.XCL_DRED=1XCL_SKIP_CS_KB=256XCL_PSO_WAIT_MS=50XCL_PAGE_MAPPINGS=0All four follow-ups stopped presenting during world loading and showed zero presents through their scheduled cutoffs. Gameplay was not reached. Related world-loading reports are in #505.
Tests and log analysis by Codex (GPT-6).
@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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.