Merge nvidia-dev into main (makes #2572 mergeable) #3203
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3203"
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?
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-28T19:44:08Z.
Merged as
765b2c5bon 2026-11-28; the runs below were finished after the merge.This draft PR brings the
nvidia-devbranch intomainso the two branches can stop diverging, resolving the 37 conflicted files that keep #2572 from merging. It is not a new 51,000-line change: the added lines arenvidia-dev's already-reviewed work (fitting the title into 16 GB of VRAM, worker-process startup preparation, and build scheduling),mainis kept whole (the #2959 submission rework and #3045-#3100 native pipeline libraries), and where both branches solved the same problem, the better implementation was kept.Merge with a merge commit, not squashed or rebased. Git must record that
nvidia-dev's 493 commits are inmain, or the next sync of the two branches hits the same conflicts again; a squash would also put 43 authors' commits under one name. Headdaae0330is merge commitf0e8fdd5(main10d27297+nvidia-dev54225f58), two test follow-ups (1b4117b2,dc763946), #1435 cherry-picked (adccb7d8), a second merge ofmainat5b711248(5eb48388;mainhad gained #3195-#3198, onlyREADME.mdconflicted), and #3189 cherry-picked (daae0330). To review only the conflict resolutions, rungit show --remerge-diff f0e8fdd5; the full per-job record (RESOLUTIONS.md) is in the first comment below.Credit
Every commit on both sides stays in history with its original author; nothing is squashed.
nvidia-devside (376 non-merge commits not onmain, 43 authors): theaustinayers 277, Prime 11, Kalmarv 10, PracticalStudios 8, ryosen0 7, Decodere 5, coolpersonnn 4, and 36 more.mainside, kept whole (398 non-merge commits not onnvidia-devat5b711248, 19 authors): bmjask 361, theaustinayers 7, Bloxive 5, thehollowedone 5, KOLESNiii 4, and 14 more.nvidia-devmainnvidia-dev's per-call lockingmainmain+nvidia-devmain's build gates plusnvidia-dev's build-ahead lanes, bounded waits and one-giant-build rulenvidia-devmain+nvidia-devmain's translator withnvidia-dev's LDS order, branch-free thread limits and dispatch foldingmainnvidia-dev's continue path stays behind a switchWhat is in it
Brought over from
nvidia-dev:late_release).XCL_PREPARE_ALL=1prepares every record;XCL_PREPARE=0is logged).XCL_GFX_PSO_WAIT_MS/XCL_CS_PSO_WAIT_MS), build-ahead lanes and lazy-pipeline stats.partner_word, runtime split-wave64 LDS ordering, and dispatch folding (IO_GROUP_LIMIT/IO_LOOP_BUDGET/FOLD_X).--windowsis omitted.watch,submit_cost,capture,look_stats,gpu_times).Carried on top (each drops out once it merges upstream):
xg::copy_frombecause the 7-argument XGCopyFromSubresourcecall is read as 6 arguments.mainroutes every compute program with a 2-D or 3-D thread group to the HLSL path; on the merged tree that sent 397 used programs there and made one of them 18 MB of DXIL (584 KB onnvidia-dev).One small test commit of ours for the 2-D/3-D routing on the merged tree follows after it passes (in progress).
Where both sides did the same job (full list in the first comment below):
main: submission plan, receipts and native queue slots; retained pipeline generations andBindStateRegistry; exact-generationDriverBlobscache withLoadedBlob(now carryingnvidia-dev's keep rules); singleLISTSmap;PendingRegistry;WholeBuildandbind_pipeline_exact;IndirectSignatureInfo;alloc_pool(retire_recording/reclaim_idle_aside); and thememory_reportsnapshot inhost.nvidia-dev:Slotscompile gate (withmain's medium-compute gate on top);ShardedPSO tables behindmain's API; runtime split-wave64 LDS order overmain's staticLdsGap; branch-free DispatchX thread limits overmain's guarded prologue; the IO slot layout; andpc_slot!at shared call sites.main's stall spans andnvidia-dev'sapi_cost/look_statstimers (separate reports).Behaviour changes
For anyone running
maintoday:mainskipped them; now they are folded into the other dimensions as onnvidia-dev(#1428 by lukastaro, plus9cc53f15/ca1e6ad6), so the work still runs. This is only the direct-dispatch fold; the off-by-defaultXCL_CLAMP_INDIRECTpass for indirect dispatches stays off.mainbuilt them at first use; nownvidia-dev's backlog (69a48a24,2ccc646f) builds them ahead of first use to cut first-use stalls. Ina_pipeline_an_earlier_run_used_is_built_ahead_of_its_first_use,main'sis_pending(unknown)assert is replaced bynvidia-dev's!used::noted(unknown_key).main's fail-closed stop remains the default;nvidia-dev's signal-expired-fences-and-continue behaviour is kept behindXCL_WAIT_TIMEOUT_CONTINUE=1(one test per path) so default runs do not hide a stuck wait. #2499 / #3130 (the watchdog's missed wake) are separate and not part of this merge.Dropped
Every item below was dropped because the other side already does the same job, not because it was wrong:
remember_compute_blob/compute_blob_kept/keep_compute_blob/keep_graphics_blob(9baaa6ff) andgraphics_pso_through_cache(4e8657cf) → replaced bymain'sDriverBlobs/keep_driver_blob, which now carry their rules; 64-wayLISTSsharding (2987c19b) → replaced bymain's singleLISTSmap; file claim (83bb3436) → replaced bymain's OS-backed claim;XCL_TEXTURE_SAFE_READ(8c0ce9ea) → replaced bymain's reader, which always copies outside the committed window.XCL_PRECOMPILE_PARENTwhole-form pass (#2794, onnvidia-dev) → covered bymain'sprepare_compiled_compute.park_list/unpin_list/unpin_users/done_with(bf42a6ee) → replaced bymain'sretire_recording/reclaim_idle_aside.4e52050c, #2975) → covered bymain's inactive-stage key (the two tests contradicted each other).LdsGap(22026ba5) → replaced bynvidia-dev's runtime split-wave64 LDS order; guarded DispatchX prologue (#2959/#3157) → replaced bynvidia-dev's branch-free thread limits.nvidia-devinternals (each replaced bymain's equivalent):ShardedPENDING(PendingRegistry),State::limits(explicit limits),gave_standin/waits_for(defer_retained),note_signature_dispatches(IndirectSignatureInfo),dispatch_chain's ownbind()(bind_pipeline_exact), andtitle_list's forget-if-not-adopted (main's primary-keeping release).Known issues
main's translator (584 KB onnvidia-dev) because direct DXIL is refused and the HLSL fallback is that large (offline precompile skips it under the 8 MiB cap, while startup preparation compiles it). Fixed on this branch by carrying #3189; stockmainstill has it (driver compile time of the 18 MB form: (in progress)). #3189 changes the DXIL of the 397 programs with 2-D/3-D groups, so those need their driver compiles again (in progress).nvidia-dev's, so annvidia-devdriver cache does not carry over and one offline precompile is needed. Time on an RTX 5070 Ti with a Ryzen 9 9950X: (in progress). Driver compilation is CPU-bound, and 15 threads already fill the 16 cores.f0e8fdd5(XCL_PREPARE=0, cold cache) showed no presents for its last 64 s while large compute pipelines built. These were slow builds that finish, not a hang: every wait ended within 10 ms of its driver compile.main's hash-batch cap is not enforced on the merged upload path; a page-scan panic panics the submit;unmap_levelsdoes not updateTEXEL_STATS;HEAP_FENCEShas noforget_queue; some dead code is left in place.Tested
daae0330:cargo check --workspace --all-targetspasses (the full suite was run atdc763946; since then: #1435 inxg.rs, the second merge ofmainwith one test fix, #3189 in the recompiler; suite on the final head: (in progress)). Atdc763946:cargo check --workspace --all-targetspasses; release build.adccb7d8adds only #1435 (xg.rs) and builds in release; thexgmodule tests onadccb7d8: (in progress).dc763946,cargo test -p xcl --lib -- --test-threads=4(debug), skipping the twouma_driverremake tests of #3187: 2444 passed, 2 failed, 29 ignored. The two failures arelink_tests::linked_programs_keep_their_declarationsandlink_tests::gpu_linked_memory_accessors(DXC 1.9 refuses theirWaveSize), and they fail the same way on stocknvidia-dev. The first run on1b4117b2failed 7 more: 6 tests whose expectations changed with the merged behaviour (recompiler prologue forms, an LDS-clamp address, a root signature in a bind test, the backlog assert, the copy-back lock test), fixed indc763946. Also onekernelxtest,a_page_whose_move_fails, which passes alone 3/3: it is an address-reuse race between parallel tests, with code identical tonvidia-dev.xcl shaders --precompile --pipelines --used-only --windows 16), the smoke pair on each side's own precompiled cache, and one world run on a 16 GB NVIDIA card.Regression run
In progress. The pair is
main(commit named in its block) and this head, both with the following recipe:An earlier pair with
XCL_PREPARE=0on cold caches is superseded, because it does not compare the two trees:main's run reached only the menu in 150 s, while the merged run was in the world by 32 s. So peak commit was 15,025 MB against 31,546 MB.main's own swing: +150-390 MB at equal target pages, all in "other".nvidia-dev.Not tested
AI use
RESOLUTIONS.md.🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-28T19:44:15Z.
Merge of
nvidia-devintomain: resolutionsThe merge commit has
main(10d27297) as its first parent andnvidia-dev(54225f58) as its second.This file reads from main's side: what comes in from nvidia-dev, and where main's own code changed to carry it.
Rule for every file: both sides' behaviour stays and works. Where the two sides do one job in two ways,
the better one stays (by tests, then by measured numbers, then by a cheap test, then by reading), and the
other's callers use it. Every mechanism that went is listed below with its PR, author, replacement and reason.
Nothing of bmjask's submission rework (#2959-#2965, #3086, #3149, and the runtime parts of
#3100/#3175/#3181/#3182) is dropped. Nothing of nvidia-dev's low-VRAM memory model is dropped either: 16 windows,
mirror tiles, lazy sparse, pack pools, the sparse lock split, texture level pages and the mixed UMA driver window.
How it was done: a 3-way merge of each conflicted file from the common point
4577f09c, resolved per hunk by job.Git reports 37 conflicted files for a direct merge of the two heads (
10d27297and54225f58, the count in thedescription); 33 of them still conflicted from
4577f09c, the base the 3-way work used. The other files merged without a conflict. One silent loss in the clean part was found andrestored (
cached.as_deref()in the translated graphics PSO build); real.rs was then compared line by lineagainst both sides for others (see "Audit").
Runtime hub:
hle/d3d12x/real.rspc_slot!("Iface", "Method")at the call sites both sides touched: it names its interface and needs no CLASSES lock. main'sslot!(this, ..)at main's own sites.pc_slot!stall::detail_spanand nvidia-dev'sapi_cost::time_if(look_stats::deep()). They feed different reports, the stall report and XCL_LOOK_STATS, and both are off unless enabled.Slots(Slots::new,closed_to_ahead, the urgent queue,huge_compile_turn,pso_async::note_huge), with main'sMEDIUM_COMPILES(XCL_MEDIUM_PSO_*),DriverCompileGatespan andDRIVER_BUILDS.waiting()on top.driver_compile_identifiedhas main's signature, and its log line also carries nvidia-dev's stage note.DriverBlobs<K>(exact generations, reserve/admit/finish/forget_if),KeepTurn,LoadedBlob(exact-file invalidation),keep_driver_blob,cacheable, and the AMD-off default of XCL_PSO_DISK_CACHE.graphics_file_hash), so two adapters do not share a file; (e) a blob with no RAM room still reaches the disk; (f) the warm-replay receipt for disk-only blobsremember_compute_blob,compute_blob_kept,keep_compute_blob,keep_graphics_blob,graphics_pso_through_cacheand their unit tests (same job; their behaviour is (a)-(f), and a new test covers (a))*_exact,PSO_DISPATCH_REMAP) over nvidia-dev's lock-shardedShardedstorage.ShardedstorageMutex<HashMap>storagego_background)Warm(translation ahead of a lazy graphics build) and the compute record, viapso_async::*_withtwo_pass_of_exacttwo_pass_entry(the same function)ExecuteCommandLists)submission_plan,SubmissionGate,submit_title_chunk,queue_submit::with, theprepare_title_submissionfail-stop,tie_downloads,note_execute_call.watch::wait_while_heldandwatch::in_driver;submit_costtimings;capture::submit;gpu_profile::note_queue;gpu_times::executed;list_x::note_submitted; the resubmit wait (alloc_pool::wait_for_previous_submits, XCL_RESUBMIT_WAIT_MS) in the gate's prepare step;sparse::send_pendingbefore every Signal.prepare_title_submission(queue, lists)refreshes through nvidia-dev'stitle_textures::refresh_for, which skips the look for CPU writes when every list was closed before the last look begansparse::settle_readbacks_try, then main'stitle_textures::safe_fence_value.fence_completedrelease_taking_first,pso_manifest::forget_ready_compute,forget_resource_backing_after_release.late_releaseholding of resources and pipelines, the console heap descriptor listallow_driver_remapgate: only the backend made before the title's code runs remakes a window, as #2844's review asked.open_umawith shadow windows, per-segment heaps, and the mixed driver window viaremake_window; the oneinitlockPipeline binding:
hle/d3d12x/bind.rs(from scratch/merge/r1/bind-decisions.md)Per-list state: main's
BindStateRegistry(#2959 contention bench). nvidia-dev'sSharded<State>users moved onto it.Pipeline choice: main's retained
PipelineResolutioneverywhere (PreparedNativePipeline,initial_pipeline,clear_pipeline_state). Carried in from nvidia-dev:resolve_for_indirectInitialFallback;flush_two_passat Close;whole_ready, which skips a late whole form instead of compiling it on the title thread;valid_dispatch_gridskip, because folding runs the work.ABI bind: main's
PreparedAbiState, plus nvidia-dev's per-recordingheap_bound, console heap bases,GPU views,
note_arena_fulland the lock-free first window. Command-list split: main'sprepare_split/install_prepared_split, with nvidia-dev's heap and two-pass state carried inside.Indirect signatures: main's
IndirectSignatureInfo; nvidia-dev's dispatch-mesh companion stays.Dropped: nvidia-dev's
State::limitsside channel (main passes limits explicitly);pso_async::gave_standin/waits_for+list_x::defer(main'sdefer_retaineddoes that job).Submission and pipelines (G2)
pso_async.rs: main's build engine stays whole: bands, ranked preload of earlier-run pipelines, coalescing,generations/eviction and pressure. nvidia-dev's known-pipeline preload lane goes into main's ranked preload, which does the same job.
Ported onto main: nvidia-dev's other ahead lanes (new compute one at a time, spared image-only compute,
Warm translation, then cold graphics builds, the XCL_PSO_AHEAD cap with 8 GB commit room, build_parks), revocable waits,
the XCL_GFX_PSO_WAIT_MS / XCL_CS_PSO_WAIT_MS budgets, the wait and put-off logs, the lazy-pipeline stats,
peek / has_real / describe / waits_for, the Series S (
-lockhart) names, andearlier_used_shaders/earlier_used_keys.Dropped: nvidia-dev's sharded PENDING, for main's
PendingRegistry(same job).list_x.rs: main's single LISTS map, because the rework reads several lists under one lock. main's submission planand
submit_effects, which already cover nvidia-dev's write64 signals, sparse readbacks (with nvidia-dev'ssparse_immadded) and CPU writes. Kept from nvidia-dev:set_compute_pipeline,bound_render_targets,note_submitted,defer,apply_*,uav_clear_resource. Dropped: nvidia-dev's 64-way LISTS sharding (2987c19b, no measurement).real/dispatch_chain.rs: main'sWholeBuild(OOM retry),IndirectChainandbind_pipeline_exact(DRED label).nvidia-dev's off-thread whole worker and
Whole/whole_readyare ported ontoWholeBuild.Dropped: nvidia-dev's own
bind(), forbind_pipeline_exact(same job, plus DRED).device_x.rs: main'sIndirectSignatureInforecord replaces nvidia-dev'snote_signature_dispatches/note_root_changing_signature. nvidia-dev's dispatch-mesh companion, indirect guard, capture and failure warning stay.title_list.rs: main's release that keeps the primary (6ae88983, tested), plus nvidia-dev's WRAPPER_OF ABA guard (04a1768c).Dropped: nvidia-dev's "forget if not adopted": the same race, and main's form is stricter.
fence_x.rs: main'scomplete_fence_downloadsgate after nvidia-dev's settle.host.rs: main'smemory_reportsnapshot replaces nvidia-dev's own K32 / video-memory query. nvidia-dev's lines stay.present.rs: main's file, plus nvidia-dev'spresenting(),view_resource()andhalf_float(). The last is not main'ssmall_float: it has a sign bit and inf/NaN.Memory model (G1)
alloc_pool.rs: main's file (SubmissionGate, receipts,retire_recording,forget_queue,submit_stats,reclaim_idle_aside). Brought in from nvidia-dev:wait_for_previous_submits(XCL_RESUBMIT_WAIT_MS), XCL-fence reads viareal::fence_completed, and the two-pass hooks, run insideSubmissionGate::submit/submit_receipted.Dropped: nvidia-dev's
park_list/unpin_list/unpin_users/done_with: main'sretire_recordingandreclaim_idle_asidedo those jobs.uma.rs: main's #3068 automatic cap on top of nvidia-dev's route-based sizing.dstorage.rs: main'sknown_writable, EnqueueSetEvent and stall spans, plus nvidia-dev'sread_own.gpu/texture.rs: main'sUploader/upload_batch*/plan_batch/submit_batch*(tests/texture_states.rs). Title-textureuploads at runtime stay nvidia-dev's
texture_upload.rs.console_heap.rs,sparse.rs,vram.rs: nvidia-dev's present-queue list is replaced by main'sknown_queues_held()(owned refs).The rest is filled in by G1 (see below).
title_textures.rs, stage 1: one reader of title memory, main'swith_title_bytes/read_committed_into, withnvidia-dev's mixed-window GPU copy inside it and nvidia-dev's level-page reads. Dropped: nvidia-dev's
XCL_TEXTURE_SAFE_READ=1, because main's reader always copies outside the committed window.Recompiler, CLI and preparation (G3 and lead)
IO_MESH_GROUP_BASE 118). Every writer uses the constants.
translators (branch-free, all three axes, folded groups, partner_word), on main's wave-local remap and fail-closed
xcl_x_dead. Dropped: main's guarded-prologue form.xcl_x_lw(XCL_X_LDS_ORDER) with main's dead-partner guard.Dropped: main's static
LdsGap(22026ba5): the same job, and nvidia-dev's form needs fewer meets and covers direct DXIL.present/preparation.rs: main's file (per-title preparation, corpus replay, pipeline libraries), plus nvidia-dev's"only the shaders earlier runs used" filter (
LaunchPreparation::only, XCL_PREPARE_ALL=1 for every record) and theXCL_PREPARE=0 log line. Stage 1 had dropped the filter without evidence; nvidia-dev's author measured the
startup about 5x faster with it.
b09acbce(compute pipelines in worker processes),83bb3436(one worker builds a pipeline, the others leave it),bca429ec(graphics pipelines earlier runs used, built before the title),626459db(the preparation screen counts each pass),#2705, #2794. G3 fills in this part.
--windowsis omitted (configured_runtime_windows, nvidia-dev).Detail: list_x.rs (G2b)
hle/d3d12x/list_x.rsmain's file (submission plan, segment effects, receipts and native queue slots,split_recordingtransaction,defer_retained, write producers, native generations) with nv's additions ported onto it; 66 diff3 hunks against 4577f09c..10f917e5.list_x.rs(list state map)main's singleLISTSmap kept, nv's 64-way shardedLISTS(2987c19b, no measurements) dropped: the rework reads several lists under one lock (SubmissionPlan::capture, kickoff, split carry) and its tests assertLISTS.try_lock(). nv'severy_listkept over the single map; nv'sset_compute_pipeline(same commit) kept.2987c19blist_x.rs(texture state)main's per-segmentcapture_gpu_write/capture_transitions/publish_submission_effects(with G1, whosetitle_texturesdrives nv's state from them). nv'snote_gpu_write(list, r)/list_reset/submittedcalls dropped as the same job; nv's new GPU writes (ResolveSubresource, ResolveSubresourceRegion) go throughnote_texture_write(list, dst, dst_sub); nv'snote_list_closed/forget_list_closedkept.list_x.rs(sparse immediates)sparse_imm,note_imm,imm_by_cpu,IMM_KEEP_MAX) carried throughmain'sSegmentEffectsandKickoffEffects;submit_segment_effectsand the kickoff call nv's 3-argumentsparse::readback_after_execute.note_immrecords its range as an in-segment GPU write inmain's write producers. Write tracking uses nv'sread_back(va)(GPU-copy window or GPU view) inmain'snote_write.list_x.rs(waits)main'swait_all_on(stops on an unresolved wait) returns nv's "waited on the CPU", which drives nv'smapped_after_wait/XCL_SPLIT_SPARSE=cpuafter a split inexecute_submission_plan_with_completionsand the kickoff, with nv'ssubmit_cost::splittiming andXCL_SYNC_TRACEevents. Waits are recorded at nv's CPU view (cpu_at). Watchdog:main's stop instead of signalling expired fences (nv/base signalled them); nv'sindirect_guard::report_now, wait-edge and queue-progress diagnostics kept before it.list_x.rs(submits)gpu_times::executed,gpu_profile::note_queueandnote_submitted(progress fence, now signalled throughreal::native_queue_signal) onmain's kickoff chunks;real::prepare_title_submission(q, &[this])replaces nv'stitle_textures::refresh.list_x.rs(put-off dispatches)main'ssplit_recording/defer_with/record_deferred. nv's guards moved intodefer_with(not while the submit records, not withoutalloc_poolswap,PutOffcounters); nv'sdefer(list, what)kept for binds without a retained resolution, ondefer_with(adopts main's "bounded waits record now"). nv'sflush_two_passbefore a split's Close, its own allocator kept ontitle_list::backing(both inprepare_deferred_segmentandrecord_deferred), and the PC allocator a segment records on (alloc_pool::current/ Reset'spc_alloc) passed tobind::prepare_splitandPreparedNativePipeline::commit. Dropped: nv testa_spare_whose_reset_fails_stays_with_the_list_on_the_software_adapter: main reserves a spare closed without a Reset (the Reset and its failure path come later), so the case it tests does not exist.f43cab27,9d3dccb2list_x.rs(other nv)apply_topology/apply_scissors/apply_stencil_ref,bound_render_targets,uav_clear_resource,note_copy_into, capture ops andapi_costtimers besidemain'sstall::detail_span(onecopy_buffer_region_xwith both),placements::note_use,lut3d::wrote,depth_in_step,unpin_userson release.Behaviour changes
(
valid_dispatch_grid). The fold came to nvidia-dev with lukastaro's PR #1428, which is still open on main and was merged intonvidia-dev through its world-main branch (
fc4481d9). theaustinayers added9cc53f15andca1e6ad6on top: no more groups than adispatch may have, and no clamp in bundles. It is on by default on nvidia-dev and has no switch. With main's wave-local remap,
folding applies only to grids that are not remapped; a remapped program that needs a fold runs its
remap_fallback::whole_exactform folded. This is the direct-dispatch fold. It is not
XCL_CLAMP_INDIRECT(clamp.rs), the separate pass over indirectdispatches, which stays off unless asked for.
69a48a24for lazy graphics pipelines and2ccc646ffor compute pipelines of new shaders, on the threads xcl-pso-ahead-*). On mainthey are built at first use. The test a_pipeline_an_earlier_run_used_is_built_ahead_of_its_first_use now has nvidia-dev's assert
!used::noted(unknown_key); main's assert is_pending(unknown) is removed because it checked the behaviour this replaces.
title with its diagnostics (
dd84e0ad, #2959 stack). nvidia-dev's behaviour, which releases the expired wait on the CPU, signals the fenceand goes on, is kept behind XCL_WAIT_TIMEOUT_CONTINUE=1. The tests are an_unresolved_wait_stops_the_title_unless_told_to_continue and
a_wait_released_on_the_cpu_marks_its_cell_signalled_there. kalmarv decides the default. #2499 (the watchdog's missed wake of an armed
wait) is still open on main and in neither parent, so this merge does not carry it, and #3130, its nvidia-dev backport by Prime1997,
is still needed. The continue path does not cover for that bug: a missed wake means the watchdog never fires under either policy.
Detail: recompiler, DXIL translator, shaders CLI, README (G3)
Per file (both sides kept unless a decision below says one form wins):
b09acbce).Decisions (same job, two ways):
9b455a1a,67a08dbe) over main's static LdsGap (22026ba5): the run-time form also orders across loop back edges and branch targets. Main's dead-partner guard kept on the meet. Direct-DXIL split-LDS refusal (dbe6b30b) lifted when the order is on; recomp/lower_dxil per-lane refusal kept (nv's order skips the per-lane bridge).Austin's six nv commits (shaders.rs side; preparation.rs/real.rs sides are the lead's):
b09acbce: worker pipelines present in main (#2555); the used-only part was missing -> restored: LaunchPreparation.only, startup.only filter by real::shader_key, pipelines_in_workers passes --used-only when only is set and pso_async::earlier_used_keys() is non-empty.83bb3436: superseded by main's OS-backed Claim (decision f).bca429ec: graphics_in_workers / graphics_worker present; real.rs part is lead decision 4(c).626459db: its shaders.rs lines all present; preparation.rs part is the lead's.Known gaps
main's list_x has dead functions of its own; they are listed by the build.
Audit
4577f09c, main and nvidia-dev, grouped by function (scripts in the merge notes).Every line both sides kept is in the tree. Every line one side deleted has a replacement. One line lost in the clean part of the
merge (main's cached-blob argument to create_graphics_pso_cached) was restored.
its queue's lease (list_x 3576, 3638 and 5361). This is written as a comment in sparse::submit_async_readback_inner.
Tests
RTX 5070 Ti, driver 610.74, Rust 1.99.0, at
dc763946.cargo check --workspace --all-targetspasses; the release build passes.cargo test -p xcl --lib -- --test-threads=4, skipping the two uma_driver remake tests (#3187): 2444 passed, 2 failed, 29 ignored.link_tests::linked_programs_keep_their_declarationsandlink_tests::gpu_linked_memory_accessors, which fail the same way on stock nvidia-dev (DXC 1.9 and WaveSize).dc763946):compute_prologues_leave_the_lanes_past_a_thread_limit_out_of_execandwave_local_remap_decision_and_console_ids: the prologue keeps nvidia-dev's form without a remap and main's divided console group with one;a_single_split_wave_of_a_compute_group_exchanges_without_a_group_barrier: it now uses a thread-dependent LDS address, because main's min/max folding turned the constant address into a constant clamp;execute_indirect_native_snapshot_ignores_a_later_registry_alias: the test sets a graphics root signature;a_pipeline_an_earlier_run_used_is_built_ahead_of_its_first_use: it takes nvidia-dev's assert (the backlog);readback_after_execute_records_outside_state_lock_and_drops_excess_outside_locks: it waits on the submitting token.a_page_whose_move_fails_stays_mapped_where_it_wasfailed once with parallel tests and passes alone 3/3. It is an address-reuse race between tests, and the code is identical to nvidia-dev.crates/xcl/tests), and any GPU other than the RTX 5070 Ti.Carried on top
Each of these drops out when it merges upstream.
14c8a2d1) is cherry-picked asadccb7d8.xg::copy_from. The title calls XG CopyInto/FromSubresource with seven arguments, and stock reads them the six-argument way (STOCK-CRASH.md).f4e0ab92) is cherry-picked asdaae0330.d9403543), which sent every 2-D/3-D compute group to HLSL; nvidia-dev never had it.Second merge of main (
5eb48388)5b711248brings bmjask's #3195-#3198 (bounded history-backed launch preparation, exact graphics recipes in manifests, preparing the exact graphics history at launch, timing).XCL_PREPARE_HISTORY_PRESENTparagraph after it.a_peek_changes_nothinggets main's newPending::manifest_recipefield.Precompile measurements (RTX 5070 Ti, Ryzen 9 9950X 16 cores / 32 threads)
Run:
xcl shaders --precompile --pipelines --used-only --windows 16atdc763946, on a cache with the used lists of a stock nvidia-dev world run (1761 used compute programs, 3037 used keys).graphics_in_workers), never by the CLI.Our open PRs against nvidia-dev that touch these files
They need rebasing onto this merge:
real.rs.uma_driver.rs. It is not conflicted here, but the lib test binary needs it on NVIDIA.vram.rs.bind.rs.Split notes (for a later PR that splits the hub files; nothing is moved in this merge)
translated__pso, go_background/run_owned_build/warm_graphics, finish_two_pass, StreamPipeline, PSO tables.
holding, title_address, depth_uav.
prepare_title_submission(submission -> title_textures memory), the resource-release hook(memory -> pso_manifest), and
bind_pipeline_exact(bind -> pipeline).(PreparedAbiState, ensure_view_heap, uma windows, folding).
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-28T20:13:41Z.
Update: fixed by #3213. The test passes 3 of 3 on
mainbeeb81b, same RTX 3060.Full workspace suite on
main765b2c5after this merge, on NVIDIA: 1 failure, in an integration test that the lib-only runs above don't reach.gpu_compute_e2e::a_preparation_worker_also_builds_a_split_programs_whole_formpasses onnvidia-dev54225f5and fails 3 of 3 on the merged tree.Tested: RTX 3060 12 GB (driver 610.88, wave32 only), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug.
cargo test --workspace --no-fail-fast -- --test-threads=4,765b2c5SKIPPEDlines. e2e debug-layer messages unchanged (3× error id 93, 1× error id 1046, 1× warning id 820, 2× warning id 926, 8× id 0)a_preparation_worker_also_builds_a_split_programs_whole_formalonenvidia-dev54225f5: passes.f0e8fdd5(the first merge),5eb48388,daae0330,765b2c5: fails 3 of 3 eachThe failure (
gpu_compute_e2e.rs:355) isno split program:. The precompile's output has nosplit compute programs: 1 (N pieces)line, though it made 6 pipelines:On the merged tree,
split_programsis counted only inPipelines::make_selectedwhenc.dispatch_chainhas 2 or more pieces, and the precompile calls it withpath_override: None. So with this test's settings (XCL_DIRECT_DXIL=1,XCL_DIRECT_SPLIT_INSTRUCTIONS=12,--windows 1), the program arrives without a dispatch chain of 2+ pieces. Either it is no longer split, or the 6 pipelines come from another path. I did not trace which. It already fails atf0e8fdd5, before #3189 (daae0330) came in, so it is not from that change (#3210 also saw this test fail on mergedmain).Not tested: AMD; a title; a release build.
AI use: Claude Code (Claude Opus 5.5) ran the suite and the checks and wrote this comment.
Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-29T00:38:49Z.
Stall regression on the merged result:
7db2f391stops presenting at ~60 s where10d27297does notRTX 5070 Ti 16 GB, driver 32.0.16.1088, Ryzen 7 5800X3D, 64 GB, Windows 11 22631. Retail 1.0.2.1 (TitleId
7952987A), default path (XCL_PREPARE=0, noXCL_DIRECT_DXILorXCL_HEAP_WINDOWS), 420–600 s runs, press-A every 3 s. "Last present" is the finalframes presentedline in the log.10d27297(first parent)54225f58(second parent)f0e8fdd5(the merge)7db2f391(currentmain)Every stalling run ends in the same shape: presents stop in the 46–86 s band, VRAM parked at ~15.2 GB of 16,303 MiB, GPU at 0 %, no device loss and no crash. The non-stalling runs reach 1800 frames with VRAM still climbing.
Two of the six
7db2f391runs hadXCL_ACTIVITYunset and compute supply at 117/136, so neither the activity sampler nor a cold cache explains it. Two of the three10d27297runs were taken after the failures, in the same session (19:14 and 19:25), so this is not drift between sessions either.I have not diagnosed the cause, and I am not claiming your resolution dropped code. The measurement only places the behaviour change at the merge: first parent keeps going, second parent stalls, the merge stalls. Either
git show --remerge-diff f0e8fdd5on the submission path ornvidia-dev's low-VRAM memory model interacting with this title would fit the data.Not tested: world rendering (the title is in its front end throughout), other GPUs, other titles. GPU state and thread stacks at the stop are not captured here.
Independent tester, no code changes.
Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-29T02:09:45Z.
Retest on the current tip
fa204595(after #3243 direct-DXIL-by-default and 22 other commits): still stalls.fa204595run 1fa204595run 2Same shape as the
7db2f391runs above, and on a warm cache (~94 % of compute PSOs supplied), so this is not a cold-cache or compile-cost effect.That makes it 8 for 8 across
f0e8fdd5/7db2f391/fa204595versus 7 for 7 one429936c/10d27297, with the two heads alternated within the same session. The behavioural change is still at the merge; the cause remains undiagnosed.