Repository navigation
Nvidia dev - #2572
Nvidia dev#2572bmjask wants to merge 409 commits into
Conversation
…o report The report of a device removal lists the allocations at the faulting address, and those freed there lately, by name. A title's resources have none, so the list said "type 34" and nothing else. With XCL_DRED set, what the PC device makes for the title is named after what it is when XCL takes it over (adopt): a buffer with its size and flags, a texture with its dimension, size, mips, format, samples and flags, a heap with its size, type and flags. More telling names given later replace it. Nothing is named without the switch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Translated shaders take a texture's index in the shared shader-visible heap from a T# they read from memory and accept it when it is below 2^21 - 1. The heap was made at MaxViewDescriptorHeapSize (1 000 000 on an RTX 5090, also the fallback when the query fails), so an index between that and 2^21 passed the shaders' guard and read a descriptor past the heap's end: memory the GPU has not mapped. Since the shaders read real descriptor data from the title's memory, stale or garbage T#s reach that path. The heap is now tried with 2^21 descriptors first (resource binding tier 3 hardware takes more than the query says) and made at the queried size only when that fails; a heap below 2^21 is logged as a warning that names the uncovered index range. D3D12 leaves a new heap's descriptors undefined, and only descriptors 0..MEM_HEAP_BASE were null views: every descriptor past them now gets a null view (even SRV, odd UAV, as a console slot's pair), copied from a CPU-only heap of 4096 once at creation (2^21 copies, 64 MiB at a 32-byte increment; the time is in the creation's log line). A range released by an unregistered heap gets null views again before it can be handed out, since its views may name resources that are gone. The heap is made and filled without GLOBAL held: the adopted device's descriptor hooks look up the console heaps. Cost: once at the first view heap (the fill), one copy per released page range; nothing per draw or bind. The heap takes 2^21 instead of 1 000 000 descriptors of video memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Four ways a draw reached the GPU with a pipeline and a root signature or draw kind that do not belong together: - DispatchMesh and ExecuteIndirect resolved the pipeline with resolve_wait and then again in two_pass_of. With a wait budget the first can give the stand-in and the build can finish before the second: the two passes were recorded with the stand-in as the mesh pass's pipeline under the two-pass root signature. The draw now decides once (draw_pipeline): the two-pass entry of exactly what resolve_wait gave (real::two_pass_entry, no second resolve), else the stand-in of a pipeline being built or built since (skipped, as a pending one was), else the rest as before. - ExecuteIndirect with a built two-pass pipeline and a signature that is not a noted DispatchMesh one (one that changes root arguments, or whose companion Dispatch could not be made) fell through to the PC call under the title's root signature, with the pass-through mesh pipeline on the list reading root views that signature lacks. Skipped and counted, warned the first 4 times. - A Draw whose pipeline resolves to a two-pass one (a console VS+GS) took the PC branch: a Draw on a mesh pipeline. Skipped, warned once. - The PC branches bound the title's root signature only when one was set; without one the PC call ran under whatever a translated draw left (XCL's ABI or the two-pass root signature). Such a draw is now skipped (warned the first 4 times), except on a bundle, which takes its caller's, and an ExecuteIndirect dispatch, which does not use it. Two tests set the root signature a title sets after Reset. Cost: the same lookups as before (one TWO_PASS and one pending-pipeline lookup per mesh draw, one TWO_PASS lookup per draw with an untranslated pipeline); nothing on translated draws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…found The 256-look line says how long a look for CPU writes takes, not whether that time is the walk over memory nobody wrote or the pages taken (each a page-table entry changed and flushed). The two call for different fixes: looking at less memory, or taking fewer pages. XCL_LOOK_STATS=2 times every write-watch call of a look on the thread that submits and adds them up apart for the calls that returned no page and those that returned some: time, bytes covered, pages, calls. A line every 256 looks: look split (256 looks): X ms a look in N calls over G MB that found nothing + Y ms in M calls over H MB with P pages It answers the study's first question: what a look's time is made of. XCL_LOOK_STATS=1 prints what it printed before; with the switch off a look costs one more atomic load per write-watch call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A title keeps T#s, each with an index into the shared shader-visible view heap, in its own memory, and its shaders read them from there. On the console a T# of a released texture still names memory (leftover bytes, nothing faults), so a title can sample a texture it has released (a material table not updated yet, a sample of weight zero). On the PC the heap slot kept the descriptor of the resource XCL destroyed: a shader that samples it touches an unmapped address on the shader units. Nothing cleared a slot when its resource went. console_heap now remembers, for each index of the shared heap, the PC resource its descriptor names (8 bytes an index, made with the first view: 16 MiB for 2^21), and for each resource the indexes that named it (entries may be stale; the per-index value is the truth). A view published from CreateShaderResourceView / CreateUnorderedAccessView (and the _at forms, which go through them) sets it, a copy between console slots carries the source's, a null fill clears it. Right before the PC object is destroyed - in late_release's drain before the real Release of a held resource, and after the last Release of one that was not held - every index that still names it gets the null view of its kind (SRV at even, UAV at odd indexes); an index overwritten since by a view of another resource is left alone. One lock (SLOT_WRITES) orders the descriptor writes and the nulls, so a null never lands on a view another thread just wrote; the copies under it go past the adopted device's descriptor hook, which looks up the console heaps. Cost: per view published, a lock, a descriptor copy (as before), an atomic swap and, when the slot named another resource, a push to a sharded map; per descriptor copy of n slots, n more slot lookups. Per resource destroyed, one sharded-map lookup, and a copy per view it still has. Nothing on draws or binds. Logged at the first 16 releases that nulled any view and at powers of two. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…f 2^21 with null views, pipelines never bound in a state that does not fit, views of destroyed resources nulled)
submit_cost's "scan" is the time from the sparse lock's work to the uploads: building the slots of the written pages (the gather) and the chunk scan of those pages, which is shared with the worker pool. Which of the two it is, and whether the pool helps at all, decides whether the scan wants a cheaper gather, more workers or workers that are awake. worker_pool::run now says who did a job's items (the caller, the workers) and how long after the job was handed out the first worker took one. With XCL_LOOK_STATS=2 the submit's gather and scan are timed apart, and a line every 256 looks says: scan split (256 looks): gather A ms, scan B ms a submit; of N items a job the caller did C %, the first worker began after D µs (J jobs in S submits, W with a worker) It answers the study's question of what the scan's time is made of and whether the shared scan is shared. Nothing changes in what the pool or the scan do; with the switch off a submit costs one atomic load more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hold_res_until_reset returned at once for allocator 0, which dropped the recording's two-pass record and argument-scratch buffers: their last reference went while the list that writes them through root UAVs might not have run yet (a list XCL never saw reset, a reclaimed segment reset onto none). A released committed buffer's GPU address is unmapped, and the compute pass's stores and the mesh pass's loads through it fault. They are now kept with the time they were handed over and go to the reuse pool (or are released) once 10 s old, looked at whenever an allocator's buffers are released. No fence or allocator says when the GPU is done with them, so time does, far past any frame in flight. At most 1 GiB is kept; past it the oldest go early and that is logged (first 4 times). Cost: one more lock at each allocator's release of two-pass buffers; nothing per draw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What submit_cost calls "sparse lock" is the wait for the sparse state's lock and all the work done under it before the scan: landing the finished copies back, the tiles over CPU views, the mappings sent and the unmappings. A long wait asks for less work under the lock on other threads; a long part asks for less of that part on this one. With XCL_LOOK_STATS=2 each step is timed, and the tiles mapped (with the calls), the tiles unmapped and the bytes of copies back landed are counted. A line every 1024 submits, averages a submit: sparse lock split (1024 submits): wait W ms, copies back L ms (B KB), GPU-view tiles M ms, mappings P ms (T tiles in C calls), unmappings U ms (V tiles), rest R ms a submit (of S ms) It answers the study's question of what "sparse lock" is made of. With the switch off a submit costs one atomic load more, and each map or unmap call and copy back a relaxed add. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ExecuteIndirect count check reads the 20 bytes of an argument record through a raw root UAV at the window address of the title's buffer. uma_va_of checks only that the start lies in a window. A buffer in a GPU view may run across a view window's end, and the view windows are separate 4 GiB resources: a record straddling the end was read past window k's buffer, an SM load from an address nothing maps (root views have no bounds). The record is now read through the window only when all 20 bytes are in it (uma_window_buffer_gpu, as make_scaled_args_buffer does); otherwise the program reads the title's own buffer, as it does for an address that is not in a window. Cost: one window lookup per checked ExecuteIndirect (max 1, no count buffer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title's GPU view is one range, but on the PC its windows are separate 4 GiB buffers whose addresses are not adjacent. pc_va_in maps only the start address: a vertex or index buffer view (or DrawIndexedX's indices) that crosses a window's end was handed to the PC with the title's SizeInBytes, so the input assembler could fetch past window k's buffer into addresses no resource covers. IASetVertexBuffers, IASetIndexBuffer and DrawIndexedX now clamp SizeInBytes to the end of the window the address is in (warned once); the GPU reads zeros past a view's size. A view inside one window is unchanged. Cost: per vertex / index buffer bind, a window lookup (arithmetic); the title-memory lookup (a lock) only for a view that crosses a window end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When one thread makes every submit and every present, a frame's time on it is its submits, its presents, its waits for the frame event and its waits on fences. submit_cost says what the submits cost; nothing said what the rest costs on that thread, so a frame's budget could not be added up, nor could the calls XCL counts already (placed textures, physical page calls, ...) be told apart from other threads'. api_cost remembers the thread of the first title submit seen (with XCL_LOOK_STATS=2) and counts every call on that thread apart as well. New entries, timed with XCL_LOOK_STATS=2 only: the title's ExecuteCommandLists as a whole (not XCL's own submits inside one or inside a present), presents (PresentX, and the fallback's at a console method) with their wait for the copy of the frame before apart, WaitFrameEventX, and the copies back settled when a title thread looks at a fence. The entry for the title's blocking fence waits is there for the fence hook to use. With XCL_ACTIVITY, every 2 s: calls of the submitting thread (2 s): N ExecuteCommandLists in X ms, N presents in X ms, ... It answers the study's question of where a frame's time goes on the thread that submits outside the submit hook. The all-threads line is unchanged with the switch off; a call XCL already counted costs one atomic load more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
res_release called sparse::forget_buffer, which unpins a placed buffer's tiles, at the title's last Release, also when late_release kept the PC object alive until the queues are past the work in flight. The kept object still maps those tiles: sparse could hand them to another address or retire the pool heap under them while work queued through the buffer had yet to run. late_release's drain ends the object through the original Release, which never told sparse. forget_buffer now runs from res_release only for an object that is not held, and from late_release right before the real Release of a held one. Right before, not after: after it, another thread can make a buffer at the same address, whose tiles this would unpin (the queues are past the work by then, and forget_buffer takes no late_release lock and does not wait for the sparse state's). The same reuse made the address-keyed removals in res_release unsafe when its Release had already ended the object (late_release off, or two releases of the last two references at once): a resource made at the address in between lost its UMA_BUFFERS / BUFFER_DELTA / TITLE_ADDRESS entries and its pinned tiles. The last reference is now told by the count after an AddRef and Release of our own (1: ours alone) on every path, and the removals, the null views and, with late_release off, the unpinning run while the object is alive, before the Release that ends it. Of the two fixes the finding proposes this is the smaller: an identity guard would need a generation in sparse's buffer table. What is left is two threads releasing the last two references at the same instant: both see 2, and the one whose Release ends the object cleans up after it, as before. Cost: none on draws or binds; per resource Release, the AddRef and Release that late_release already made, now also with XCL_LATE_RELEASE=0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two things bound what a cheaper look could leave out or save. A look takes the blocks written lately only; a write to another block waits for the walk thread to find it. With XCL_LOOK_STATS=2 every look counts whether the walk had made a block hot since the look before began (a block no look had taken: written up to a walk pass ago), and the walk times its passes over all watched memory. XCL writes the title's memory itself: copies back landed and immediates stored. The write watch reports those pages like the title's, so a look takes them and the scan goes over them for nothing. With XCL_LOOK_STATS=2 those writes keep their pages (64 Ki at most, under the sparse state's lock they are made with) until the next look, which counts how many it found and how many of those the scan found unchanged. Lines every 256 looks: walk staleness (256 looks): K of N looks began with a block the walk found that no look had taken yet; a walk pass took A ms (B ms the longest, P passes) XCL's own writes (256 looks): W pages a look written by XCL since the look before (copies back landed, immediates stored), F of them in the look, S scanned, U % of those found unchanged They answer the study's questions of how stale the hot-block look is and how much of a look is XCL's own writes. With the switch off a look costs one atomic load more, a copy back landed or immediate stored one per page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pipeline objects XCL owns - the compute pass of a two-pass pipeline (Drop for TwoPassPso) and the background-built real pipeline behind a title's stand-in (pso_release) - were released the moment the title released its pipeline. A list recorded before that and still queued or running binds them (the two-pass draws bind both), and D3D12 asks that a pipeline outlives the work that runs it: the GPU would fetch shader code of a destroyed pipeline. late_release now takes them as well: a batch entry is a resource or a pipeline, and a pipeline is released (its COM Release) once every known queue has passed a fence value signalled after the hand-over, by the same thread and drains as resources. With XCL_LATE_RELEASE=0 they go at once, as before. Pipelines XCL releases that were never bound (a build nobody waits for any more, a duplicate depth-bias pipeline) still go at once; the depth-bias pipelines derived from a released base pipeline (device_x) are not changed here. Cost: a lock and a push per such release (a title's pipeline release); nothing on draws or binds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…thout an allocator aged, ExecuteIndirect counts and vertex/index views kept inside their window, placed buffers unpinned when the PC object goes, XCL's own pipelines released after the queues) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s time by what its calls found, the scan's gather and pool, the submit's sparse lock split, the submitting thread's frame, stale looks and XCL's own writes) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The eight targets drawn into most are a frame's G-buffer. The passes that turn it into the picture (lighting, the HDR chain, the composite) draw once or twice each and rank last, so a flat picture over a drawn scene could not be followed past the scene's targets. A third number names how many of the ranked targets are written (default eight, 64 at most). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The memory line named the video memory in use, not what Windows lets the process have. A retail title's world held 29 to 30.5 GB of a 32 GB card with 1 GB already moved off it, and nothing in the log said it was past the budget. The budget is logged once, and every 2 s while the process is over it, by how much. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…d when asked A retail title's world ended in a driver error whose cause the log did not hold: the process was killed from outside 3 s after the driver's first event, before the device was reported removed, and then hung half-terminated in the driver for five and a half minutes with 27 GB held. - a ring of the last 16 384 draws and dispatches (pipeline, kind, size, frame), written at each one and read only for a report; - a thread that looks for a removed device ten times a second (it was only looked for with XCL_DRED set) and times ExecuteCommandLists and Present in the driver: one that has not returned after XCL_GPU_STALL_MS (2 000) is reported with the ring, and the title's other submits wait until it returns; one that took 250 ms and returned is logged; - XCL_STOP_FILE=<path>: when the file appears the title ends itself through end_title. A file beginning with "fault" first gives the driver 12 s to report the device removed, with nothing more submitted. Not run on a GPU yet: the unit tests cover the ring, the report, the stall step and the stop file's reading. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…LSL path The direct translator turned s_barrier into a plain group barrier. That barrier waits for every hardware wave of the group, and a console wave that has left, or that ran one barrier fewer, never arrives: on the console the waves left go on, on NVIDIA they wait for ever and the GPU hangs. The HLSL path has had the barrier that counts the waves still there since 0c02b87 (xcl_s_barrier); with XCL_DIRECT_DXIL=1 compute programs and the compute pass of mesh pipelines did not get it. A retail title has it in 216 compute programs (19 of them branch a wave with no active lane around barriers the other waves run) and in all 36 of its mesh programs: the first wave of a group whose vertex or primitive count is 0, or past 128, runs a barrier the other waves branch around, then the one they all run. Its world, the first to draw meshes in two passes, ended in a driver time-out with no shader exception in two runs of three. A compute or mesh program with s_barrier in a group of more than one hardware wave is now an error of the direct translator, which sends it to the HLSL path (XCL_SAFE_BARRIER=0: as before, in both translators). Not run on a GPU: whether this was the cause of those time-outs is not shown, and the HLSL compute pass of that title's mesh pipelines has not run in its 16-window layout. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Translated shaders index the bound sampler heap with S# word 3 & 0x7FF (SamplerDescriptorHeap in the HLSL path, SAMPLER_HEAP_MASK in direct DXIL), so an index from 0 to 2047. A console sampler heap got as many PC samplers as the title asked for (128 in a retail title): an S# the title builds itself with a nonzero border color pointer in word 3 [11:0], or any index from 128 on, read past the end of the bound PC sampler heap, which D3D12 leaves undefined. A shader-visible console sampler heap now gets 2 048 PC samplers (the D3D12 maximum for a shader-visible sampler heap) whatever the title asked for, all of them made as the zero sampler XCL already wrote into the title's slots (point, wrap, mip 0). The console side does not change: the heap keeps the title's slot count, its 16-byte increment and its indexes, and copies, CreateSampler and the release only touch the title's slots. A CPU-only sampler heap keeps the title's count (shaders never bind it). The cost is up to 2 048 CreateSampler calls and 2 048 PC sampler descriptors a heap. The PC heap's own GetDesc (not hooked) now says 2 048 for such a heap; a console view heap's already says twice its slots. Tested on the software adapter only (WARP): the new test every_sampler_index_a_shader_forms_is_in_the_pc_heap checks the count for every index a shader forms and that D3D12 makes a shader-visible sampler heap of that size. Not run on the hardware GPU or on a title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t ranges view_want's per-thread memory of the ranges it asked for lately matched an exact (va, len) among the last 8. Mesh-stage root views of a retail title come at a new offset of tiles asked for already, draw after draw, so 12 000-74 000 of them every 2 s missed it and walked their tiles again in sparse::map_mirror (a shard lock and a hash insert a tile) for nothing. The memory now holds the span of 64 KiB tiles each range covers, 32 of them, and a range is skipped only when all its tiles lie in one span asked for while the GPU views were as they are now: it is still emptied when kernelx::gpu_view_map_gen() changes, and a range reaching one tile further still goes to map_mirror. What gets mapped does not change. map_mirror returns how many tiles it queued, and the "KB new" figure of the "GPU view (2 s)" line counts those tiles (64 KiB each) instead of the length of every range that missed the memory: before, 0.3-35 % of it ever became a filled tile. Tested: cargo test --release -p xcl --lib view_want (3 passed) and map_mirror (1 passed), on the software adapter. Not run on a GPU or a title: the miss rate on a title is not measured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The compute path kept a driver blob on disk only when its build took 250 ms (driver_cache::KEEP), and XCL_PSO_DISK_CACHE_MIN_MS, which the graphics and two-pass paths read, did not reach it. A compute program whose build takes 100 to 250 ms was compiled again in every run, at its first bind, and a compute pipeline is waited for: often on one of the title's threads. In a retail title's run one of its threads spent 228 ms in the driver on a 4 KB program that no file was kept for. driver_cache::keep (its only caller is translated_compute_pso) now keeps a blob of a build of 20 ms or more, and XCL_PSO_DISK_CACHE_MIN_MS chooses for it as for the others. The graphics and two-pass default stays 250 ms. The cost is more small files in the driver folder, at most one a compute program. Programs under 16 KB of DXIL still keep no blob (COMPUTE_BLOB_MIN_DXIL), as before. Tested with the unit tests only (software adapter): the new test keeps a 100 ms compute build and fails on the old threshold. Not run on a GPU or on the title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ges by counters A wave64 program on 32-lane hardware runs as two hardware halves that exchange ballot words and lane values. Groups of more than one console wave do that through bounded group-shared counters; a group of exactly one (33 to 64 threads) met at a group barrier at every exchange. Those barriers hung NVIDIA GPUs when several such programs ran at once (xcl-dev#1727: device hung and driver event 153 in 11 of 25 parallel runs of the lib tests on an RTX 5070, none on the HLSL path, whose exchange spins by default). A retail title's world runs such programs on several queues at once and ended in a driver time-out with no shader exception. A compute or mesh group of one console wave now takes the counter exchange too (its slots and counters are made for it when the program has no LDS). Geometry programs, which set their partner by phase, and the tests' kernel form keep the barrier. The change is that of xcl-dev#1741 (hajduzsolt), which is open and written against an older main; applied here by hand. Not run on a GPU. The test checks the translated program: one group barrier (the start's) and the counters' atomics for 33, 64 and 128 threads. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… ones A retail title's world made about 33 committed buffers of 1-32 MiB a second for two-pass mesh draws, and let as many go, on a card that was nearly full (the "two-pass res buffer #n" lines: xcl-dev#2048 at 201 s, #8192 at 384 s). Most of them are 32 MiB, and they do not come from DispatchMesh: an ExecuteIndirect of two-pass commands always asked for 32 MiB of records (each with a 1 MiB argument scratch block), since a command's groups are known on the GPU only. A DispatchMesh asked for its need, at least 4 MiB. Each recording keeps its buffers until its PC allocator is reset; then they went to FREE_RES, which kept 16 buffers or 256 MiB at most: eight of the 32 MiB ones. 24-27 of them were made in the world's first two seconds, so each round of allocator resets let go of most of what the next recordings made again. The pick from FREE_RES also took the first buffer large enough, so a DispatchMesh of a few groups could take a 32 MiB one that the next ExecuteIndirect then made anew. - Record buffers are a power of two from 1 MiB (the scratch block's size) to 128 MiB. A draw gets at least the groups it got before (a test checks this over record sizes, splits and group counts). An ExecuteIndirect keeps 32 MiB of records unless a command's groups in X (65 535 / split) need less, which leaves its group cap as it was. - FREE_RES keeps every buffer handed back, up to 1 GiB, and lets go of one no recording took for 2 s; a recording takes the smallest one that fits, the last handed back of that size. What it keeps is bounded by what recordings took in the last 2 s and by 1 GiB. When a buffer goes back to FREE_RES does not change: when its allocator is reset (or alloc_pool sees the GPU past its submits), or 10 s after a recording with no known allocator. A buffer leaves FREE_RES only for a recording or to be let go, both after that point. The DispatchMesh floor goes from 4 MiB to 1 MiB: fewer bytes past the last record. Every store to a record is bounded by its vertex and primitive counts (HLSL and direct DXIL mesh and geometry paths), so a store does not reach past the records a draw dispatched. Tested on the software adapter only (unit tests of the sizing and of the pool). Not run on a GPU or with the title: how many buffers a frame now makes is not measured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The coherent window is committed when unified memory is made, so it is sized from what the title asked of it in an earlier run (<data>/cache/uma_coherent.txt), and that value only grew. A retail title's 4582 MB of GPU heaps, stored by a run that put them in the window, made two coherent windows of 4095 + 998 MB in later runs with XCL_COHERENT_HEAPS=sparse:16. Those runs sent every such heap to the sparse windows and put at most 105 MB in the coherent window, but with XCL_UMA_SHADOW=1 each window is shadowed by a video-memory heap of its full size: about 4.6 GB of video memory and as much commit for nothing, on a card that was full. The sparse branch returned before the need was noted, so the stale value never came down. uma_coherent.txt now keeps one size per XCL_COHERENT_HEAPS setting (lines "<bytes> <setting>"; the old single number counts as the setting that puts every heap in the window), and the window is sized from the one of the run's setting. A heap sent to the sparse windows is noted too, and a run that has lasted 60 s stores what it put in the window by then even when that is less than the stored size. A run that ends sooner only grows it, so a run cut short before it made its heaps does not leave the next one a window too small for them. XCL_COHERENT_MB still chooses the size. With one coherent window instead of two, the view windows of the 16-window layout start at window 4 instead of 5. Everything that uses them asks the layout (is_view_window, bind::view_span_of, list_x::pc_va_in, real.rs), and the uma tests already build that layout with a 512 MB window. Shader translation and the shader and driver caches are keyed on the number of windows (pso::mem_windows), which does not change. Tested: cargo check -p xcl --tests; the uma and kernelx unit tests (new: the_stored_coherent_need_is_the_one_of_the_heaps_setting, coherent_heaps_routes), on the software adapter. Not run on the title or on a hardware GPU. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ull views When the shared view heap is full, a page of a console view heap that is first used gets no place there. console_heap::slot then gave its slots the index 2k, the one they would have in a PC heap of their own, and XCL wrote that index into the slot's T# (CreateShaderResourceView, CreateUnorderedAccessView, copies). But that heap is CPU-only once it is meant for the shared heap, and lists bind only the shared heap, so the shaders read descriptor 2k of the shared heap: another heap's view, a memory window's raw buffer UAV for k from 2 to 9 (read as a texture, which hangs NVIDIA), or, for k of 500 000 or more in a large heap, a descriptor past the heap's end that the translators' guard (below 2^21 - 1) lets through. Such a slot now has index 0, the null SRV / UAV pair at 0 / 1, with no shared descriptor and no GPU handle (nothing is copied for it, and a UAV clear of it is skipped as before). A heap that has no shared heap at all keeps its own PC heap and 2k. The frame-trace census takes 0 as such a slot's own index. Every page that finds no room is counted (each try), and the warning comes at the first and at every power of two with the count, where it came only once before. Nothing in the logs of the last three runs of a retail title shows the shared heap full, so this does not explain them; that title's heaps would need 2.56 times the shared heap if every page were placed. Tested on the software adapter only: the new test a_slot_whose_page_finds_no_room_names_the_null_views (a fake shared heap with room for one page, run in a child process) fails without the change (slot 258 got index 516) and passes with it. Not run on the hardware GPU or on a title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
How many two-pass record buffers and argument scratch blocks were alive at once was not logged: the analysis of a retail title's world had to work it out from the addresses of the first 48 and the powers of two of "two-pass res buffer #n", and could only guess their share of the 5 GB of video memory the memory line does not name. A two-pass buffer is now a TwoPassBuf that counts itself when it is made and when it is dropped, wherever that happens (FREE_RES letting go of an idle one or one past its cap, the no-allocator hold past its cap, a test). A line, always on, at most every 2 s while the counts change: D3D12.X: two-pass buffers: N made, N taken again, N let go; N alive (N MiB), N of them kept for reuse (N MiB) The line is left out when FREE_RES is locked on the same thread (a buffer dropped there); the next change writes it. No behaviour change besides the line. Tested on the software adapter only (the bind unit tests; the line shows in their output). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 <noreply@anthropic.com>
…ve room On the Series S profile (XCL_DEVICE_TYPE=lockhart) a retail title stopped on its own breakpoint right after creating its 1245184-slot view heap: the memory its allocation hook gave the heap was at window 1 + 0x1400000, and console_heap refuses title memory outside window 0 (descriptor tables are 32-bit addresses, high half 0, read in window 0), so the heap got XCL's own slots at sparse VRAM 0x10000 and the title's check that the heap starts at its memory failed (rax = that start, rbx = its memory). The Series X run got the same heap at 0xf2e00000 into window 0: the first fit there right after its first two GPU heaps (1172 + 2199 MB, XCL_COHERENT_HEAPS sparse). On the Series S profile the title had 664+ MB of physical pages before the heap (the mapped page's number, 0x29810), and their homes went first-fit into window 0 beside its 2.9 GB of GPU heaps, leaving less than the heap's memory needed there. The Series X run's page pool (99776 pages, more than a window) never went to window 0, and the window plan has no input from the title memory size: both runs had the same one. The same happened with the default 4-window layout (window 1 + 0x1400000, the same page number): it needs the GPU heaps in the sparse windows, not the 16-window layout. With every GPU heap in the coherent window (the default XCL_COHERENT_HEAPS) window 0 has room for the homes and the heap. Homes are XCL's backing for the pages, never 32-bit addressed; window 0 stands for the console's low 4 GiB. They now come from windows 1+ first, as title reservations do (`Uma::sparse_alloc_above`), and from window 0 only when the others have no room. Above a window nothing changes (the Series X pool). The heap's window check is a function of its own (`title_memory_fits`), same condition, and its warning says how much of window 0 was free (the next refusal shows whether the title's memory missed it for want of room). Tests pin the Series X run's plan and the addresses of its GPU heaps and view heap, and check the homes and the window check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The coherent window is made as large as the title's GPU heaps were in its last run with the same XCL_COHERENT_HEAPS setting (`<data>\cache\uma_coherent*.txt`). A switch to the Series S profile in the same data folder kept the Series X run's size, and a title makes smaller heaps there (a retail game 2.9 GB of GPU heaps against 4.5 GB): the window was committed for heaps that never came. The Series S profile now has files of its own (`_lockhart` before `.txt`); the Series X file names are unchanged. The idea and the file name are xcl-dev#1110's, put on this tree's per-setting files. Co-authored-by: xroneyaa <202318392+xroneyaa@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A DispatchX with thread dimensions launches whole groups and writes the thread count of an axis that ends inside a group to IO_THREAD_LIMIT, but no translated program read it: the last group ran all its lanes. Per-model vertex work dispatched as thread counts (840 threads as 14 groups of 64: 8 valid threads in the last group) had the 56 extra lanes write past the end of one model's output into the next model's first vertices. The HLSL compute prologue now loads the three limits in one 12-byte load and takes the launch EXEC as the ballot of the lanes whose console thread along each axis is below that axis's count: the console's group (unfolded from a dispatch folded into Y) times the group size plus the thread in the group, the ids the split wave64 form and 2-D groups give the threads as their waves arrive. A count of 0 less 1 passes every thread, so there is no branch and every other dispatch gets the EXEC it had before. The lanes left out keep running with their bit clear, as lanes do after an s_and_saveexec: no memory or image stores, no LDS writes, and ballots, lane reads and DPP see them as out of EXEC. A wave left with no thread (one wholly past the count in a group of several) leaves, through the early-exit-safe barrier where the program has one; with a plain group barrier (XCL_SAFE_BARRIER=0) it stays. build.rs hashes the translator sources into the translation caches' identity, so no DXIL cached before this is reused. The direct DXIL translator and its per-lane form follow in the next change. Tested: compute_prologues_leave_the_lanes_past_a_thread_limit_out_of_exec (wave32, wave64, split wave64, a 2-D group, with the safe barrier; each compiled by DXC). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The HLSL compute prologue leaves the lanes past a dispatch's thread limit (IO_THREAD_LIMIT) out of EXEC; the direct translator (XCL_DIRECT_DXIL, and every compute program whose HLSL would be too large for DXC) and its per-lane form (XCL_PER_LANE) still ran the last, partly filled group whole. Direct translator (kernel::compute_init / compute_gate): the entry block loads the three limits at once (each less 1: a count of 0 passes every thread) and tests each lane's console thread as the HLSL path does: the console's group, unfolded, times the group size plus the thread id the entry gives the lane. EXEC is the entry EXEC and the hardware wave's ballot of those lanes. In the split wave64 form each half also builds the other half's word without meeting it: lane j tests the other half's j-th thread (in rounds when a last wave's upper half has fewer lanes than the lower one has threads). The lanes outside then leave in the block after the entry, with the groups past a folded count: they store nothing and take part in no ballot, lane read or exchange, and every lane still there has its EXEC bit set, so its lane bit of that EXEC folds to true (Lw::live_exec) and vector writes that had no guard before have none now. A split half counts the other half's lanes that stay (Lw::xn) when it waits for them at an exchange. A program with s_barrier keeps the lanes, out of EXEC, its stores guarded: a group barrier would wait for a lane that left. A dispatch chain needs nothing more: the limits are read and applied in its first piece, a lane that left there ends with the continuation tag 0 that the later pieces take to their end, and EXEC reaches them as any other value that crosses a cut. Per-lane form (lower::lower_with): the lanes outside the limits leave with the groups past a folded count, so every lane that runs is still in EXEC as the lane-mask analysis assumes; a split IR learns the other half's lanes that stay (Ir::before_lanes_leave). A compute program with s_barrier is refused there (xcl-dev#1426's form takes it). An ordinary dispatch's program runs as before: one load, a compare an axis and one ballot at the start, the same unguarded writes. The direct translator's sources (XCL_DIRECT_DXIL_SOURCE_ID) and the per-lane form's (XCL_PER_LANE_SOURCE_ID) are hashed into the cache identity by build.rs. Tested (software adapter: no 32- or 64-lane waves, the GPU parts skip): the_compute_entry_lets_only_the_lanes_below_the_thread_limits_in, the_lanes_past_a_thread_limit_leave_the_per_lane_form (CPU interpreter: 1-D, folded, 2-D, limit 0, EXEC counts), and the GPU tests gpu_compute_thread_limits_leave_the_lanes_past_them_out (every form) and a_dispatch_chain_leaves_the_lanes_past_a_thread_limit_out (its pieces' structure runs here, the dispatch skips). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A console wave64 runs its instructions in order for all 64 lanes, so an LDS write by any lane is visible to an LDS read by any lane later in the program, with no s_barrier. In the split form (one console wave as two hardware wave32 halves, 32-lane GPUs) the halves only met at exchanges (ballots, lane reads, coherent scalar loads): between two of them the lower half could run a ds_read before the upper half ran an earlier ds_write. A tile classification program (one wave64 per tile: lanes with a property write an LDS flag, lane 0 reads it later with no exchange between) lost those writes and left holes in its output. Both translators now keep a flag, the same in both halves because they run the same instructions: an LDS write or atomic sets it, every meet of the halves and every s_barrier clears it, and an LDS read or atomic meets the other half first when it is set (HLSL: `xcl_x_lw` and `xcl_x_meet`, either the group barrier or the counters; direct DXIL: `VAR_XLW`, the meet emitted outright or skipped where the flag is known while lowering). A half without a partner meets nobody, as before. Programs that write no LDS, native wave64 and wave32 programs are unchanged. The per-lane form (`XCL_PER_LANE`) is left as it was: its LDS accesses run in blocks one half may enter alone. Not covered: write-after-read and write-after-write ordering between the halves (a write does not wait for the other half's earlier reads or writes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous change made an LDS read meet the other half when either half may have written LDS since they last met. The reverse order was still open: on the console every lane of a wave reads LDS at an instruction before any lane writes it at a later one, but in the split form the lower half could pass the read's meet, reach a later ds_write and overwrite a dword the upper half had not read yet. The meet at the read even lined the halves up just before such a race. The flag is now two bits (written, read since the last meet): a read meets after a write, a write after a read, an atomic after either; every meet and s_barrier clears both. Write after write is still not ordered. Both translators (HLSL `xcl_x_lw`, direct DXIL `VAR_XLW`) do the same. XCL_X_LDS_ORDER=0 leaves the LDS order out of both translators (the form before these changes) for comparison runs. It is part of the translated cache's identity, so the two forms keep separate entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A compute program built its sampler with s_movk_i32, s_bfm_b32 s, 12, 12 and s_mov_b64 of a 32-bit literal. Neither of the last two was followed as a constant, so the S# was not a static sampler and every tap went through sampler-heap entry 0 (point, wrap, mip 0). In a temporal upscaler's history reprojection that point-samples the Catmull-Rom taps of moving pixels; the history then diverged frame over frame. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A title can run with its GPU busy nearly the whole frame, and nothing says which translated programs take that time. XCL_GPU_TIMES=<frames>[,<after_s>] measures it with D3D12 timestamp queries and logs one table. What it measures: from the first present after_s seconds after the first present on, every draw, dispatch, ExecuteIndirect and two-pass DispatchMesh of console code recorded on a direct or compute PC list gets a timestamp after it (the first call of a list's recording one before it too). A call's time is its stamp minus the one before it on its list: one query between two calls, not two a call. The stamps are resolved into a readback buffer before the list closes, the list's calls count for the frame of its submit, and the first frame and frames with fewer than 100 calls measured do not count. The query heap has 65536 timestamps for each frame asked for (16 frames at most) plus two; calls past it are counted and said not to be measured. After the frames, one table (INFO, `D3D12.X: GPU times:`): per frame the wall time, the GPU time from the first stamp to the last, the measured sum, calls not measured, and per-submit totals; then the 60 programs with the most GPU time per frame, averaged over the frames, each with its kind (compute, graphics, mesh two-pass, PC pipeline), its shaders' keys and dump hashes as the target dump prints them, calls, ms per frame, its longest call and that call's groups, and for compute its wave size (wave64 split in halves where it is). Caveats, also in the log: a desktop GPU writes a timestamp once the work before it is done while later work may already run, so a call's time is coarse (fine for ranking) and holds what was recorded between the two calls (barriers, copies, clears, XCL's own passes). The direct and compute queues overlap, so sums can pass the wall time. Bundles and copy lists get no stamps, a list submitted twice counts once, and lists recorded before the measuring began are not measured. Unset, no query heap is made and each hook checks one cached value; graphics and mesh pipelines note their shaders only with the switch on. Tested: cargo test --release -p xcl --lib hle::d3d12x: 479 passed, 0 failed, 1 ignored (the new GPU test ran two dispatches on WARP: two intervals that share their middle query, both read back in order). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured with XCL_GPU_TIMES on an RTX 5090 at 1280x720: two-pass mesh draws take about 114 ms of a 195 ms frame over about 2,700 calls among the top 60 programs, 0.02-0.08 ms a call whatever the program; all compute among them is 23 ms. The cost is the sequence of each call, not its shaders: every pass is followed by a ResourceBarrier, so the GPU drains between the compute pass, the mesh pass and the next draw. An ExecuteIndirect (most of them, max count 1) records six ResourceBarrier calls: a UAV barrier on all resources, argument block COMMON -> UAV, the rewrite, UAV -> INDIRECT_ARGUMENT, compute pass, UAV barrier on the records, mesh pass, UAV barrier on the records, INDIRECT_ARGUMENT -> COMMON. A DispatchMesh records two. With XCL_TWO_PASS_BATCH=1 (read once; off by default, and off records exactly what it did before): - The records of consecutive two-pass passes go in the two halves of a record buffer twice the size the draw would have had (each half holds the groups the whole one held; past RECORD_MAX, or when the two-pass budget refuses the larger buffer, the draw takes the whole buffer as before). A mesh pass then needs no UAV barrier after it: the next compute pass writes the other half, and the UAV barrier after that compute pass orders the mesh pass before its half is written again. What a mesh pass may still be reading is kept per recording, so a draw with the whole buffer after one in halves starts with a barrier. - An ExecuteIndirect's argument block stays in INDIRECT_ARGUMENT after the draw; the next rewrite into it takes it from there, in the same ResourceBarrier call as the UAV barrier on all resources before the rewrite. A block a recording leaves in INDIRECT_ARGUMENT is a buffer and decays to COMMON when its ExecuteCommandLists is done, before another recording can take it again. A DispatchMesh then records one ResourceBarrier call instead of two, an ExecuteIndirect of one command three instead of six. Not done here: deferring a run of two-pass draws to emit all compute passes, one barrier, then all mesh passes. Many title calls that set PC state reach the driver with no XCL code in between, SetPipelineState can record a depth bias at once, and an ExecuteIndirect's records need up to 32 MiB a draw, so that needs a flush hook on every list slot and more memory. Tests: the plan without the switch is the order before; draws in halves record half the barriers; no sequence of draws in halves and whole writes records a mesh pass may still read; halves hold the groups the whole buffer held; the argument block's state across rewrites and recordings; the GPU test of two-pass commands runs the plan with records whole and in halves over four consecutive draws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prime1997
left a comment
There was a problem hiding this comment.
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 749b0e0. 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 is af2cecc40886a8682ecf3267f5328c6dc4b66ad7: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
| PR | Head | Draft | Scope / next action |
|---|---|---|---|
| #857 | aaf8aa16809d |
no | Docs: the wave64-on-wave32 note calls closed PR #33 a draft; bounded source/script review only. |
| #1262 | aa9c75a49cee |
no | Docs: the split-wave64 exchange spins by default, since PR #798; bounded source/script review only. |
| #1270 | 5e4d91a7fe2c |
no | Scripts: smoke.ps1 reads the log of a run it killed on timeout; bounded source/script review only. |
| #2179 | 9483d4363b9c |
no | Shaders: gate offline --pipelines large DXIL builds on commit headroom; targeted result in linked report; remaining validation applies. |
| #2332 | ab861b819677 |
yes | D3D12.X: check shader cache capacity before copying entries; targeted result in linked report; remaining validation applies. |
| #2350 | 4cd2bc20cc28 |
yes | D3D12.X: plan split-dispatch slabs without heap allocations; targeted result in linked report; remaining validation applies. |
| #2424 | 89bbbb4995b4 |
yes | D3D12.X: keep inline split pipeline pieces on the foreground path; targeted result in linked report; remaining validation applies. |
| #2426 | 9c178b2d6499 |
no | D3D12.X: a create that fails on a lost device keeps the driver's blob; targeted result in linked report; remaining validation applies. |
| #2437 | e4269721c279 |
no | D3D12.X: the per-draw mirror sync copies without asking readable(); targeted result in linked report; remaining validation applies. |
| #2475 | 398cefbcd74a |
no | Recompiler: count split shader pieces in the cache budget; targeted result in linked report; remaining validation applies. |
| #2532 | bb33ceed26be |
no | D3D12.X: reserve split compute scratch before allocating it; targeted result in linked report; remaining validation applies. |
| #2535 | 1e4a2c787a07 |
no | Recompiler: the rerouted shader cache checks fresh DXIL and chain pieces; targeted result in linked report; remaining validation applies. |
| #2579 | 93445592be14 |
no | D3D12.X: a build a submit waits for is wanted from the moment its call is put off; targeted result in linked report; remaining validation applies. |
| #2687 | df0b92ae87ff |
no | Document shared cache history for used-only precompile; bounded source/script review only. |
| #2729 | 93e66c197c27 |
no | D3D12.X: instrument submitting-thread call breakdown under XCL_LOOK_STATS=2; targeted result in linked report; remaining validation applies. |
| #2765 | d7fab00e9e8a |
no | README: translation-only --precompile; --measure-pso needs Developer Mode; bounded source/script review only. |
| #2767 | a173e209151f |
no | Recompiler: share translated DXIL across repeated pipeline builds; targeted result in linked report; remaining validation applies. |
| #2768 | 936bb90e17e7 |
no | D3D12.X: anchor XCL_LOOK_SKIP per frame and clear CLOSED on list reset/release; targeted result in linked report; remaining validation applies. |
| #2770 | 7a7e161d907c |
no | Tests: wait for late release before checking released pipelines are gone; targeted result in linked report; remaining validation applies. |
| #2771 | 6b2691e18b02 |
yes | Tests: some_ranges in texture_upload wraps its generator instead of overflowing; targeted result in linked report; remaining validation applies. |
| #2773 | 0c0a7aa4ef1c |
yes | Tests: a page's failed move goes to an address Windows never hands out; targeted result in linked report; remaining validation applies. |
| #2777 | e59d1d11043b |
yes | Shaders: keep xcl shaders out of EcoQoS execution-speed throttling; targeted result in linked report; remaining validation applies. |
| #2790 | ccb14f7f653d |
no | D3D12.X: stencil views get a uint T# format, so shaders load them as integers; targeted result in linked report; remaining validation applies. |
| #2791 | 749b0e06c186 |
no | Tests: add AMD vs NVIDIA D3D12 tiling, budget, and pipeline memory parity suite; targeted result in linked report; remaining validation applies. |
Needs changes: 62 PRs
| PR | Head | Draft | Scope / next action |
|---|---|---|---|
| #245 | 2fcb0950de68 |
no | Include partial-wave optimizer source in translated-cache invalidation. |
| #546 | 720143505d92 |
yes | Correct wave64 reporting on wave32-only hardware. |
| #562 | 8ec2a46974d3 |
no | Fence assignment and enqueue can reorder same-queue payloads; baseline gap also remains. |
| #688 | 760f742b4238 |
no | Retry ordinary DXC creation after optional private-heap/factory failure. |
| #759 | dd66d20995e2 |
yes | Reject missing/invalid bounds and validate input before starting work. |
| #827 | 44d69219872a |
no | Sweep weak shader entries; Weak slice allocations otherwise retain backing bytes. |
| #924 | a2b500731907 |
no | Record successful signals separately from rejected attempts. |
| #977 | 47fb4bb5a831 |
no | Short-circuit a failed backend probe before the next device probe. |
| #1006 | ec5bac99305d |
no | Retain pending-save state when persistence fails. |
| #1102 | c387de21fa81 |
yes | Track mapping/content changes so GPU-written state cannot hide later CPU writes. |
| #1168 | 0840ff5a690c |
no | Publish queued state and count without exposing decrement-before-increment. |
| #1193 | 5ae60ad0a9ba |
no | Include pre-body loop-budget exhaustion in EXEC analysis; local4-test repair passes. |
| #1385 | 875a60352ed3 |
no | Revalidate mapping generation before copying old readback bytes after unlocking. |
| #1442 | 293584e0078a |
no | Validate or saturate reserve-to-byte conversion. |
| #1620 | 3a185909fe54 |
no | Correct the bpermute reference oracle using native half-wave semantics. |
| #1630 | 91ae2c62e89f |
no | Preserve low-address carry when choosing scalar-load memory windows. |
| #1638 | 2639c0806ef2 |
no | Bound handshake/reply waits and failure fallback before claiming a worker cap. |
| #1643 | 7711f4c55672 |
no | Serialize fence/payload ordering and add queue-lifetime cleanup. |
| #1665 | cd46e3fc2bd9 |
no | Allow recovery from transient failures instead of permanently suppressing wanted work. |
| #1710 | 89faa8d3fd63 |
no | Make alone-retry admission atomic relative to normal entrants. |
| #1723 | fca46d42e5a1 |
no | Restore nested/thread-local cap state on all exits, including unwind. |
| #1762 | 3cd15cb7e896 |
yes | Reserve the working slot atomically with admission; spacing alone leaves a race. |
| #1809 | f090104a9c16 |
no | Use the selected stage backend consistently in cache identity. |
| #1819 | 0062ee19f59c |
no | Preserve same-queue enqueue order and unblock fixture GPU waits before assertions. |
| #1830 | 6423b67d9d42 |
no | Timeouts must not leave overlapping benchmark work; bound discovery too. |
| #1871 | 27362a08509c |
no | Reject a trailing --records instead of starting unbounded whole-pack work. |
| #1883 | 327abc816d36 |
no | Report the early-return case through standard skip accounting. |
| #1924 | c09d37689f16 |
no | Reserve aggregate BIG/GIANT capacity atomically across both lanes. |
| #1931 | e870dd2b576f |
yes | Reserve frame allowance atomically and settle against the original frame. |
| #2009 | 2f490889758f |
no | Do not signal successful title completion when readback settling fails. |
| #2010 | d30e9a969c20 |
no | Label distinct error reasons accurately and preserve unavailable telemetry. |
| #2114 | 21c88bc26b60 |
no | Preserve compute producers under defaults and synchronize demand priority changes. |
| #2208 | e4720ca15041 |
no | Recheck device loss after queued work obtains admission. |
| #2229 | 3ce7f30fa5ea |
no | Preserve constant/SDWA source alternatives and invalidate affected cache identity. |
| #2234 | 70d5f59b42a6 |
no | Correct documentation that assigns all cache-miss rebuilding to the title thread. |
| #2246 | 949609b2ee21 |
no | Gate stale-blob cold retries through large-compute admission. |
| #2327 | e56c368079bb |
yes | Invalidate legacy default cache identity, not only explicit SAFE_BARRIER=0. |
| #2404 | 5b9d4ff6f5f4 |
no | Prevent first-call indirect chain truncation while whole fallback is unavailable. |
| #2422 | 349970c0a7ad |
no | Address or explicitly scope the disclosed concurrent-final-release gap. |
| #2438 | 90bfbd423fe3 |
no | Report the actual benchmark backend and cache provenance. |
| #2439 | 336c6c2eeafb |
yes | Handle device-removed fence sentinels and recorded completion-publication gaps. |
| #2446 | 3a71471c80b8 |
no | Invalidate graphics reload facts for SDWA scalar destinations. |
| #2519 | 50af98ed1f5e |
no | Remove forbidden bundle barriers and resolve multi-piece ordering/lifetime gaps. |
| #2547 | 60349e51011d |
no | Complete submit-owned builds as failed after a caught panic; local repair passes. |
| #2554 | ca6f17b1cf4e |
no | Stop on failed whole fallback and enforce expanded dispatch-axis limits. |
| #2555 | 5bec587753dd |
no | Match startup adapter fallback to title selection; local injected tests pass. |
| #2558 | 2dc76ac89461 |
no | Retain submitted texture resources through failed fence setup/wait recovery. |
| #2590 | 004fa0f61f9c |
yes | Verify driver-profile ownership/content before modification or deletion. |
| #2611 | 445129ba178e |
no | Capture RTV/DSV ownership before legal descriptor overwrite/free. |
| #2615 | a0734c9f0931 |
no | Preserve pending compute producers under the default wait policy. |
| #2633 | 19be65904f91 |
yes | Resolve inherited first-call chain coverage before integrating root-CBV improvement. |
| #2635 | 24e584cab160 |
no | Bound initial lock/I/O paths and account for batches already owned by writer. |
| #2670 | ca6a0cc0e8f5 |
no | Do not count cached two-pass work without trace metadata as a cold build. |
| #2712 | 8b113eeb3e30 |
yes | Correct worker error classification, adapter forwarding and recovery fixtures. |
| #2726 | 71f30c6fe84f |
no | Inject commit headroom and avoid unconditional join after the timeout. |
| #2730 | 2e63cbcf565d |
no | Rename lifetime created-SRV coverage currently labelled srv-sampled. |
| #2731 | 2f2bb070fafc |
no | Clear stale SRV ownership after UAV replacement; local6-test repair passes. |
| #2762 | 496ef5780a45 |
no | Distinguish failed null cache entries from retained textures. |
| #2772 | 18b34a9d992f |
yes | Retain ownership metadata after failed memory release; local5-test repair passes. |
| #2776 | d485694b2161 |
no | Compare raw optional usage when selecting the peak ownership snapshot. |
| #2782 | b755223752d7 |
no | Publish drained free descriptors without a retired/free availability gap. |
| #2792 | bfff51a7a366 |
yes | Handle negative SDK batch returns and worker creation failure; feature build untested. |
Blocked pending validation: 202 PRs
| PR | Head | Draft | Scope / next action |
|---|---|---|---|
| #172 | ca66c4aeb0de |
yes | Recompiler: structured form for programs that needed the pc chain; existing scoped evidence; current integration/runtime pending. |
| #202 | 6c6b000705e5 |
no | Recompiler: complete remaining RDNA2 integer CLAMP=1 saturation (#105); existing scoped evidence; current integration/runtime pending. |
| #214 | 96e68a46b2b2 |
no | D3D12.X: bound driver PSO compile concurrency and surface stage progress (#156); existing scoped evidence; current integration/runtime pending. |
| #242 | ff28e60b41e0 |
no | D3D12.X: R9G9B9E5 render targets / UAVs are half floats where the device refuses them (retail title, Series S); existing scoped evidence; current integration/runtime pending. |
| #541 | 6bd8f6410400 |
no | D3D12.X: a console MS in the AS slot is translated as the mesh shader it is; bounded source reviewed; integration/device or full-stack validation pending. |
| #572 | 14d638a3ab3c |
yes | Shaders: bound default compile workers by available memory; bounded source reviewed; integration/device or full-stack validation pending. |
| #591 | 6c68cc703df3 |
no | dxc: hash arguments into the DXIL cache key and honor XCL_DXC_ARGS (#559); bounded source reviewed; integration/device or full-stack validation pending. |
| #613 | 920c3807df84 |
yes | Recompiler: honor DXC overrides with warm translation caches; bounded source reviewed; integration/device or full-stack validation pending. |
| #628 | 766b66123528 |
no | D3D12.X: prioritize graphics pipelines in the async PSO worker pool; bounded source reviewed; integration/device or full-stack validation pending. |
| #642 | f1e90c149b5f |
no | Shaders: honor --precompile for a single shader file; bounded source reviewed; integration/device or full-stack validation pending. |
| #645 | aee6962bc639 |
no | Tests: report disabled async compute PSO as skipped; bounded source reviewed; integration/device or full-stack validation pending. |
| #663 | ad0f0cd1d13f |
no | Tests: cover 3D wave64 compute through the D3D12.X PSO hook; bounded source reviewed; integration/device or full-stack validation pending. |
| #757 | 4e8aaf4b393c |
yes | D3D12.X: the PC desc of a translated VS / PS pipeline in its own function; bounded source reviewed; integration/device or full-stack validation pending. |
| #758 | c02d05921a5d |
yes | D3D12.X: a journal of the pipelines a title queues (\cache\pipelines.bin); bounded source reviewed; integration/device or full-stack validation pending. |
| #768 | 953f9ee0ce38 |
no | D3D12.X: copy from the backing pages of GPU-only views; bounded source reviewed; integration/device or full-stack validation pending. |
| #789 | bc82410abd9c |
no | D3D12.X: decommit released sparse blocks outside the driver callback; existing scoped evidence; current integration/runtime pending. |
| #820 | 0488eceb1f4c |
no | D3D12.X: XCL_BIG_COMPILES sets how many big compute pipelines the driver builds at once; bounded source reviewed; integration/device or full-stack validation pending. |
| #828 | b1530ac54544 |
no | D3D12.X: optional graphics-only pipeline preloading; bounded source reviewed; integration/device or full-stack validation pending. |
| #877 | a553a22486ac |
no | Memory: lazily map sparse VRAM tiles for Wine graphics heaps (#175); bounded source reviewed; integration/device or full-stack validation pending. |
| #881 | 76dcb8f560bd |
no | Title textures: one upload batch moves its textures in two barrier calls; bounded source reviewed; integration/device or full-stack validation pending. |
| #889 | a39c3992c7a4 |
no | D3D12.X: compute pipelines are built ahead of their first bind; bounded source reviewed; integration/device or full-stack validation pending. |
| #898 | dc4300da36da |
no | D3D12.X: journal a pipeline when the title first binds it; bounded source reviewed; integration/device or full-stack validation pending. |
| #899 | 734e6e78b004 |
no | D3D12.X: log how long a bind waits for a pipeline still being built; bounded source reviewed; integration/device or full-stack validation pending. |
| #900 | 2817c7c6ee17 |
no | Recompiler: keep the split wave64 halves' scalar state wave-uniform; bounded source reviewed; integration/device or full-stack validation pending. |
| #902 | 90d70031f179 |
no | D3D12.X: the driver's blob of a slow graphics pipeline is kept on disk; bounded source reviewed; integration/device or full-stack validation pending. |
| #904 | 7c2ccd9b777f |
no | D3D12.X: draws find their pipeline facts and list state without global locks; bounded source reviewed; integration/device or full-stack validation pending. |
| #917 | 709abd7fe1a5 |
no | Recompiler: shadow v_writelane spill slots in split-wave64; bounded source reviewed; integration/device or full-stack validation pending. |
| #941 | 91ca6cec4ddd |
no | Tests: cover graphics PSO hooks on the GPU without game files; bounded source reviewed; integration/device or full-stack validation pending. |
| #944 | e22a0a6e781b |
no | Recompiler: batch consecutive v_readfirstlane/v_readlane exchanges in…; bounded source reviewed; integration/device or full-stack validation pending. |
| #969 | 23eb733a0faf |
no | Tests: cover textured graphics PSOs and static samplers on the GPU; bounded source reviewed; integration/device or full-stack validation pending. |
| #1022 | 7e1b659cfcd9 |
no | Recompiler: ds_bpermute_b32 in wave64 stays in each 32-lane half (#772); bounded source reviewed; integration/device or full-stack validation pending. |
| #1045 | fcc2fd20186a |
no | D3D12.X: distinguish the Wait64 signal queue from recording history; bounded source reviewed; integration/device or full-stack validation pending. |
| #1055 | f532d33d695a |
no | kernelx: queue CopyPageMappingsBatchX records the physical page each GPU-view page shows; existing scoped evidence; current integration/runtime pending. |
| #1111 | c29bbad8cafb |
no | Recompiler: propagate split-wave64 lane-local masks through 64-bit bitwise SALU ops; bounded source reviewed; integration/device or full-stack validation pending. |
| #1113 | 8aef2946818b |
no | D3D12.X: only a title's run reads and writes used-pipelines.txt; bounded source reviewed; integration/device or full-stack validation pending. |
| #1123 | c6db70c71fcf |
no | D3D12.X: the GPU-wait watchdog says where a chain of waits ends; bounded source reviewed; integration/device or full-stack validation pending. |
| #1215 | 757ece9795bc |
no | Recompiler: bound descriptor heap indices from T# and S# words to the heap; bounded source reviewed; integration/device or full-stack validation pending. |
| #1232 | 9af37dc2466a |
no | Shaders: count reused compute shaders as cache hits; bounded source reviewed; integration/device or full-stack validation pending. |
| #1241 | 7b7c85359bec |
no | Recompiler: clamp out-of-range format and sub-dword buffer loads; bounded source reviewed; integration/device or full-stack validation pending. |
| #1244 | 71d3a384d9b3 |
no | Recompiler: split wave64 spin loops poll with a compare-exchange, not an add of 0 (#847); bounded source reviewed; integration/device or full-stack validation pending. |
| #1252 | ec00d67e5075 |
no | Recompiler: split wave64 halves meet before each LDS access; bounded source reviewed; integration/device or full-stack validation pending. |
| #1254 | d88c2aa0fca8 |
no | D3D12.X: the shared view heap logs how full it gets; bounded source reviewed; integration/device or full-stack validation pending. |
| #1279 | d2eb1b4da080 |
yes | Shaders: --pipelines makes programs of 4 MB DXIL or more last, by name; bounded source reviewed; integration/device or full-stack validation pending. |
| #1315 | 0d7907b385de |
no | Recompiler: compact form that emits every distinct block text once; bounded source reviewed; integration/device or full-stack validation pending. |
| #1331 | e860e83a1178 |
no | D3D12.X: hold BASES lock across DEPTH_BIAS_PSOS in depth_bias_pso and forget_base; bounded source reviewed; integration/device or full-stack validation pending. |
| #1363 | 3d035cfb6fcd |
no | Tests: skip offline compute PSO checks when D3D12 is unavailable; bounded source reviewed; integration/device or full-stack validation pending. |
| #1364 | 0da4c3589012 |
no | Recompiler: fix the race for the last wanted DXC slot; bounded source reviewed; integration/device or full-stack validation pending. |
| #1368 | 0074749a9678 |
no | D3D12.X: translated compute pipelines are made with node mask 0; bounded source reviewed; integration/device or full-stack validation pending. |
| #1380 | 7d43a468169f |
no | Recompiler: big compute programs read their memory windows without a switch; bounded source reviewed; integration/device or full-stack validation pending. |
| #1396 | ca0e1b06d85f |
no | Shaders: restore cache-only state across nesting and unwinding; bounded source reviewed; integration/device or full-stack validation pending. |
| #1398 | 36e23fddc939 |
no | D3D12.X: retry driver-rejected compute PSOs without DXC GVN (#756); bounded source reviewed; integration/device or full-stack validation pending. |
| #1410 | b63a67b175d8 |
no | D3D12.X: log once which form wave64 programs get, and why (#1407); bounded source reviewed; integration/device or full-stack validation pending. |
| #1413 | 190c97e2c357 |
no | Shaders: XCL_SAFE_BARRIER turns the translation caches off (#1409); bounded source reviewed; integration/device or full-stack validation pending. |
| #1417 | 9a3230fa2027 |
no | Shaders: reserve compiler memory slots atomically; bounded source reviewed; integration/device or full-stack validation pending. |
| #1420 | 867d307572af |
no | D3D12.X: separate compute driver blobs by static sampler state; bounded source reviewed; integration/device or full-stack validation pending. |
| #1421 | 7124a95392e1 |
no | D3D12.X: replace busy copy scratch within budget; bounded source reviewed; integration/device or full-stack validation pending. |
| #1428 | 7dbd80c275e4 |
no | D3D12.X: dispatches of more than 65 535 groups in X are folded into Y; existing scoped evidence; current integration/runtime pending. |
| #1469 | 188f8ac84f4b |
no | Tests: verify offline compute pipeline blobs are reused at runtime; bounded source reviewed; integration/device or full-stack validation pending. |
| #1477 | 86df8e857eed |
no | D3D12.X: fix console_list::cl_reset initial PSO/rollback, oversized push, and null constants; bounded source reviewed; integration/device or full-stack validation pending. |
| #1502 | c65e2c8b459d |
yes | Shaders: --precompile --processes N builds in N processes; bounded source reviewed; integration/device or full-stack validation pending. |
| #1529 | 3386385bb1b7 |
no | Shader compile time: DXC compiles without lifetime markers; bounded source reviewed; integration/device or full-stack validation pending. |
| #1552 | e25f6d3a94e8 |
no | D3D12.X: XCL_BACKGROUND_COMPILES=0 stops the driver's second compiles; bounded source reviewed; integration/device or full-stack validation pending. |
| #1596 | 524b25c1b7da |
no | Recompiler: split-wave64 EXEC is exchanged only where it is read whole; bounded source reviewed; integration/device or full-stack validation pending. |
| #1597 | 6acbfb1f4d57 |
no | Recompiler: a split-wave64 bitwise mask tree exchanges once, at its end; bounded source reviewed; integration/device or full-stack validation pending. |
| #1601 | 0003178b8c8b |
no | D3D12.X: guard disk_stores removal on ShaderCacheSession SetDeleteOnDestroy; bounded source reviewed; integration/device or full-stack validation pending. |
| #1637 | b8d92f997eba |
no | Tests: cover split-wave64 mask liveness and mesh_wave analysis; bounded source reviewed; integration/device or full-stack validation pending. |
| #1652 | 5829b34f8efb |
yes | d3d12x: bound PSO bind waits, guard pending draws, and auto-init uninitialized targets; bounded source reviewed; integration/device or full-stack validation pending. |
| #1656 | 8510ca021834 |
no | xcl run: XCL_STALL_DUMP dumps every thread and ends the title when frames stop; bounded source reviewed; integration/device or full-stack validation pending. |
| #1661 | f70293d56a46 |
no | D3D12.X: route stream graphics PSOs through create_graphics_pso_tracked; bounded source reviewed; integration/device or full-stack validation pending. |
| #1674 | 874203435863 |
no | Tests: offline compute pipeline test finds the driver blob with XCL_D…; bounded source reviewed; integration/device or full-stack validation pending. |
| #1691 | f71cf2147ecd |
no | D3D12.X: a queue the title releases is not kept alive by submit tracking; bounded source reviewed; integration/device or full-stack validation pending. |
| #1692 | 204625923242 |
no | Recompiler: compact dispatch can switch in two levels (XCL_COMPACT_NEST); bounded source reviewed; integration/device or full-stack validation pending. |
| #1695 | 7372ef0f13fa |
no | Recompiler: heap memory windows without a guard (min + null view), and the 64-bit atomics check; bounded source reviewed; integration/device or full-stack validation pending. |
| #1706 | 121bfea74639 |
no | Tests: the D32S8 target test waits at most 10 s for its list; bounded source reviewed; integration/device or full-stack validation pending. |
| #1708 | 35ec9ebfae00 |
no | D3D12.X: reuse the pipeline lookup when binding a stand-in; bounded source reviewed; integration/device or full-stack validation pending. |
| #1709 | a57a76cd4a9c |
yes | Recompiler: a pixel shader's ordered section uses rasterizer ordered views; bounded source reviewed; integration/device or full-stack validation pending. |
| #1720 | 94ecdd55d5f2 |
no | Recompiler: v_pack_b32_f16 applies the abs and neg half modifiers; bounded source reviewed; integration/device or full-stack validation pending. |
| #1756 | f86b01177dee |
no | Scripts: stop shader precompile at a private commit budget; bounded source reviewed; integration/device or full-stack validation pending. |
| #1758 | e2c7975dfaae |
no | Shaders: report progress for every precompile record; bounded source reviewed; integration/device or full-stack validation pending. |
| #1776 | 3546d8dea095 |
no | Tests: pin mesh dispatcher scratch and wave32-on-wave64 contract; bounded source reviewed; integration/device or full-stack validation pending. |
| #1792 | f03d41181257 |
no | kernelx: commit a mapping call's sparse pages once per run, not per page; bounded source reviewed; integration/device or full-stack validation pending. |
| #1793 | e935debf939c |
no | Direct DXIL: make multi-wave Compute and Mesh s_barrier early-exit-safe; bounded source reviewed; integration/device or full-stack validation pending. |
| #1798 | 55e7beb6de9f |
no | D3D12.X: a draw does not wait for a graphics pipeline still being built; bounded source reviewed; integration/device or full-stack validation pending. |
| #1802 | a01669b516e8 |
no | shaders: benchmark direct DXIL PSO compilation; bounded source reviewed; integration/device or full-stack validation pending. |
| #1804 | 97e501e0dee3 |
no | Shaders: --precompile --pipelines skips cached PSOs after canary check; bounded source reviewed; integration/device or full-stack validation pending. |
| #1826 | 7ae2bb71845c |
no | Shaders: xcl pipelines --shard k/n splits the journal over processes; bounded source reviewed; integration/device or full-stack validation pending. |
| #1841 | 89724e5d4269 |
no | Recompiler: round f16 add / sub / fma / ldexp results to nearest even; bounded source reviewed; integration/device or full-stack validation pending. |
| #1849 | 2cc2ba1ac89b |
no | Scripts: measure NVIDIA PSOs with a temporary cache-off profile; existing scoped evidence; current integration/runtime pending. |
| #1903 | 13f5a7be9d1e |
no | Tests: use the wave64 skip reason for per-lane DXIL; bounded source reviewed; integration/device or full-stack validation pending. |
| #1919 | 5835139244eb |
no | Recompiler: LDS ds_sub_u32 hides its negation from the driver (RTX 50 refuses it); bounded source reviewed; integration/device or full-stack validation pending. |
| #1921 | 0c8f2928e938 |
no | Tests: cover D3D12.X pipeline hooks and device extensions; bounded source reviewed; integration/device or full-stack validation pending. |
| #1936 | 6158c0cf82b4 |
yes | D3D12.X: no VS, input layout or topology from the title in a mesh pipeline; bounded source reviewed; integration/device or full-stack validation pending. |
| #1942 | f9c9df37703b |
no | D3D12.X: persist both PSOs for translated mesh and geometry; existing scoped evidence; current integration/runtime pending. |
| #1956 | a7217a4f6b1c |
yes | Recompiler: DXC arguments come from one public function (arguments); bounded source reviewed; integration/device or full-stack validation pending. |
| #1962 | 5011a26413ed |
no | README: XCL_PIPELINE_THREADS is only for xcl shaders --pipelines; bounded source reviewed; integration/device or full-stack validation pending. |
| #1997 | f053f279fe89 |
no | Shaders: bound direct sweep workers and report panics; bounded source reviewed; integration/device or full-stack validation pending. |
| #2001 | 008d9c1c443c |
no | D3D12.X: offload PSO builds, defer lazy compile-on-draw, and wire mmap ID3D12PipelineLibrary1; bounded source reviewed; integration/device or full-stack validation pending. |
| #2018 | 908c454a5f0d |
no | Recompiler: XCL_COMPACT_NEST=auto nests programs of 512 cases or more; bounded source reviewed; integration/device or full-stack validation pending. |
| #2025 | eee2b862a16c |
no | Recompiler: nest the compact dispatch of big programs by default; bounded source reviewed; integration/device or full-stack validation pending. |
| #2047 | 0e9ebc56978e |
no | Shaders: restore direct DXIL cache ID after source deletion; bounded source reviewed; integration/device or full-stack validation pending. |
| #2052 | b67c8f0cb5a6 |
yes | D3D12.X: a wait an earlier signal covers does not make a signal a cycle; bounded source reviewed; integration/device or full-stack validation pending. |
| #2053 | ea16145a4694 |
no | D3D12.X: catch panics in async PSO builds so waiters and workers do not stall; bounded source reviewed; integration/device or full-stack validation pending. |
| #2057 | 4df1e6e3d40a |
yes | D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge); existing scoped evidence; current integration/runtime pending. |
| #2067 | 9b35718ffd32 |
no | Recompiler: emit per-instruction globallycoherent on compute flat memory (stacked on #1850); bounded source reviewed; integration/device or full-stack validation pending. |
| #2070 | 8cb43460c48b |
no | Shaders: offline pipeline builds use the runtime workers' 64 MB stack; bounded source reviewed; integration/device or full-stack validation pending. |
| #2079 | fa4bfd114933 |
no | Direct DXIL: route split-wave64 GS-only entry through gate block; bounded source reviewed; integration/device or full-stack validation pending. |
| #2085 | 529d13f557a1 |
no | Shaders: share compiled DXIL across pipeline builds; bounded source reviewed; integration/device or full-stack validation pending. |
| #2096 | bb4dea405b5a |
no | D3D12.X: XCL_PSO_MANIFEST=1 writes the order a run asks for its pipelines (#2088); bounded source reviewed; integration/device or full-stack validation pending. |
| #2097 | d98d2d46131c |
no | Recompiler: split wave64 compute groups of several waves across dispatches; bounded source reviewed; integration/device or full-stack validation pending. |
| #2098 | d27d471b9373 |
no | D3D12.X: scale huge pipeline compile slots with available CPUs; existing scoped evidence; current integration/runtime pending. |
| #2103 | 7743842ada44 |
no | Direct DXIL: defer cold console_geometry during cached_only PSO probes; bounded source reviewed; integration/device or full-stack validation pending. |
| #2104 | f1810d0c362e |
no | Shaders: precompile compute pipelines through a recorded present; bounded source reviewed; integration/device or full-stack validation pending. |
| #2122 | ddcda0184c4f |
no | Recompiler: close four wave64-on-wave32 partition classifier soundness holes; bounded source reviewed; integration/device or full-stack validation pending. |
| #2125 | 765e475dbe83 |
no | Docs: explain the NVIDIA driver-blob workaround under Wine; existing scoped evidence; current integration/runtime pending. |
| #2127 | 0e84e7406356 |
no | Shaders: under Wine, at most 4 DXC compile threads by default; bounded source reviewed; integration/device or full-stack validation pending. |
| #2129 | 30a3ef1055ed |
no | Scripts: cold driver benchmark of compute pipelines over thread counts (#2088); bounded source reviewed; integration/device or full-stack validation pending. |
| #2144 | f8eeef4de89d |
yes | D3D12.X: the looks line splits "the rest" and shows the longest look; bounded source reviewed; integration/device or full-stack validation pending. |
| #2146 | 52577f993895 |
no | Recompiler: size a compute program's LDS block from its LDS_SIZE; bounded source reviewed; integration/device or full-stack validation pending. |
| #2177 | 244aa780c951 |
no | Kernel.X: preserve GPU texture data when a physical page moves from home (stacked on #1182); bounded source reviewed; integration/device or full-stack validation pending. |
| #2210 | c0d3729436c2 |
yes | Recompiler: XCL_OUTLINE_EXCHANGE=0 keeps the split-wave64 rendezvous inline; bounded source reviewed; integration/device or full-stack validation pending. |
| #2220 | 419431cf03c2 |
no | Shaders: trace offline precompile phases; bounded source reviewed; integration/device or full-stack validation pending. |
| #2224 | 85d79bf639d4 |
no | D3D12.X: abort failed device batches and restore pending in title_textures::upload_all; bounded source reviewed; integration/device or full-stack validation pending. |
| #2252 | da82f106813b |
no | dxil: refuse wave64 VS/PS with upper-lane reads in 32-lane mode (#1895); bounded source reviewed; integration/device or full-stack validation pending. |
| #2270 | b7f6b760e2ce |
no | D3D12.X: unmap a superseded texture only once the work before it is done; bounded source reviewed; integration/device or full-stack validation pending. |
| #2288 | 5e502c50805e |
yes | Recompiler: guard direct DXIL window stores with bit tests; bounded source reviewed; integration/device or full-stack validation pending. |
| #2291 | 4bad50562dd5 |
no | Recompiler: a compute loop's passes shrink with the dispatch's size; bounded source reviewed; integration/device or full-stack validation pending. |
| #2297 | 739407b67a28 |
no | D3D12.X: guard null and unreadable pointers in graphics and compute PSO hooks; bounded source reviewed; integration/device or full-stack validation pending. |
| #2299 | 4de52614fa58 |
no | Recompiler: split direct compute programs that use guest LDS; bounded source reviewed; integration/device or full-stack validation pending. |
| #2301 | c94ad8afe3a7 |
no | Direct DXIL: compute programs over 1.5 MB of plain DXIL are retried in the compact form; bounded source reviewed; integration/device or full-stack validation pending. |
| #2302 | 30985d3f48b6 |
no | Recompiler: replace tn[4]/id[4] local arrays in bvh_intersect with scalars; bounded source reviewed; integration/device or full-stack validation pending. |
| #2326 | d65ae604ba81 |
yes | Shaders: make static-sampler root signatures first, in one order; bounded source reviewed; integration/device or full-stack validation pending. |
| #2333 | a7b93a853ec5 |
no | D3D12.X: keep caller allocator for untracked lists and retain whole PSOs in dispatch_chain; bounded source reviewed; integration/device or full-stack validation pending. |
| #2341 | 45dbd47ccdfc |
no | recomp: cap per-lane compute size so giant shaders use compact DXIL (#2203); bounded source reviewed; integration/device or full-stack validation pending. |
| #2343 | 3ec09d711cb1 |
no | dxil: batch consecutive v_readfirstlane/v_readlane exchanges in split-wave64; bounded source reviewed; integration/device or full-stack validation pending. |
| #2344 | c24f3e9743cf |
no | DXIL split: prune piece-local features after optimize and transport f16/f64; bounded source reviewed; integration/device or full-stack validation pending. |
| #2348 | bc43fd6dc403 |
no | Recompiler: cube sc / tc negate by the sign bit on both backends; bounded source reviewed; integration/device or full-stack validation pending. |
| #2349 | 63131c64802a |
no | Recompiler: split native wave32 compute groups beyond [32, 1, 1]; bounded source reviewed; integration/device or full-stack validation pending. |
| #2353 | a81f9d536f15 |
no | Recompiler: split single-wave compute groups of any shape; bounded source reviewed; integration/device or full-stack validation pending. |
| #2356 | ff9716539139 |
yes | Recompiler: compress per-class branch targets in direct DXIL compact; bounded source reviewed; integration/device or full-stack validation pending. |
| #2377 | 0c446533681f |
no | Recompiler: split-wave64 one-wave groups can meet at a group barrier (opt-in, XCL_WAVE64_BARRIER=1); existing scoped evidence; current integration/runtime pending. |
| #2385 | 4c4c5772f74c |
no | D3D12.X: sampled textures go without their top mips while video memory fills up; existing scoped evidence; current integration/runtime pending. |
| #2398 | e9d7aefc3a18 |
no | DXIL: saturate 16-bit integer valu16 ops when CLAMP=1; bounded source reviewed; integration/device or full-stack validation pending. |
| #2409 | 1ee46bda18ef |
no | D3D12.X: record first use of synchronously created compute PSOs; bounded source reviewed; integration/device or full-stack validation pending. |
| #2417 | 1a51cb95ebd7 |
no | D3D12.X: retain resolved async pipelines until reset and retirement; bounded source reviewed; integration/device or full-stack validation pending. |
| #2423 | 63ea17f3cf85 |
no | Recompiler: prioritize wanted DXC compiles and reserve worker headroom; bounded source reviewed; integration/device or full-stack validation pending. |
| #2427 | c8c2b7a6b19d |
no | Recompiler: direct DXIL reads heap memory windows without a branch; bounded source reviewed; integration/device or full-stack validation pending. |
| #2428 | c6e5af8690fc |
no | Recompiler: NVIDIA compute programs take flat heap windows by default; existing scoped evidence; current integration/runtime pending. |
| #2440 | 633b1e4213c3 |
yes | Tests: exercise direct geometry in expanded heap windows; bounded source reviewed; integration/device or full-stack validation pending. |
| #2448 | d61ffdc435d5 |
no | D3D12.X: canonicalize inactive two-pass stream descriptors; existing scoped evidence; current integration/runtime pending. |
| #2469 | 44a66e63d717 |
no | D3D12.X: reuse split dispatch scratch when growth fails; bounded source reviewed; integration/device or full-stack validation pending. |
| #2495 | bbcfc3818168 |
yes | Scripts: reject invalid or stale cold PSO benchmark results; existing scoped evidence; current integration/runtime pending. |
| #2496 | 2e8ff6b6ce0c |
no | Recompiler: an access may take its base address's window (XCL_WINDOW_NO_CARRY); bounded source reviewed; integration/device or full-stack validation pending. |
| #2500 | b17262c485cc |
no | xcl run: a profile-tracy build records a Tracy timeline of the run; bounded source reviewed; integration/device or full-stack validation pending. |
| #2515 | f655cfdac728 |
yes | Shaders: --pipelines blobs are made as a title's run asks for them; bounded source reviewed; integration/device or full-stack validation pending. |
| #2523 | 8b290bf2944d |
yes | D3D12.X: MakeResident and Evict give the driver the pipeline behind a stand-in; bounded source reviewed; integration/device or full-stack validation pending. |
| #2526 | 0fd22d04dc79 |
yes | D3D12.X: compute pipelines not used for a while are released on NVIDIA; existing scoped evidence; current integration/runtime pending. |
| #2540 | f5cb7eaa1c54 |
no | Recompiler: validate DXIL containers and split pieces in translated cache; bounded source reviewed; integration/device or full-stack validation pending. |
| #2543 | 12141ccbfa16 |
no | D3D12.X: clear dispatch_chain shared scratch on list lifecycle transitions; bounded source reviewed; integration/device or full-stack validation pending. |
| #2548 | c0d09204145a |
no | D3D12.X: Reset, KickoffX and CreateCommandList do not wait for a compute pipeline still being built; bounded source reviewed; integration/device or full-stack validation pending. |
| #2551 | 3567b2efdc94 |
no | Shaders: --precompile --pipelines also builds a split program's whole form; bounded source reviewed; integration/device or full-stack validation pending. |
| #2552 | 84f6bdc97a46 |
no | Recompiler: fold finite constant legacyF16ToF32 conversions in direct DXIL; bounded source reviewed; integration/device or full-stack validation pending. |
| #2557 | 2a1fadcf8eb4 |
no | Recompiler: generalize bitmask and zero-shift folding via known_nonzero_bits; bounded source reviewed; integration/device or full-stack validation pending. |
| #2559 | 7bf48538afde |
no | Recompiler: simplify bfm / s_bfm_b64 and lower ffbh_i to FirstbitSHi in direct DXIL; bounded source reviewed; integration/device or full-stack validation pending. |
| #2565 | 97376ee13636 |
no | Recompiler: lower 32-bit VALU add/sub with carry without i64 in direct DXIL; bounded source reviewed; integration/device or full-stack validation pending. |
| #2566 | 72e94879f268 |
yes | Diagnostics: label translated pipelines in PIX captures; bounded source reviewed; integration/device or full-stack validation pending. |
| #2567 | 3c0fc4b96a6b |
no | Recompiler: share scalar-load bodies in direct DXIL compute shaders; bounded source reviewed; integration/device or full-stack validation pending. |
| #2568 | 4094ff9cb9c3 |
no | Recompiler: simplify integer min/max (dx.op.binary.i32) via range bounds and absorption in direct DXIL opt; bounded source reviewed; integration/device or full-stack validation pending. |
| #2571 | ad0ded91d9fa |
no | Recompiler: direct PS compares skip the per-quad mask where no helper bit is read; bounded source reviewed; integration/device or full-stack validation pending. |
| #2572 | af2cecc40886 |
no | Nvidia dev; existing scoped evidence; current integration/runtime pending. |
| #2574 | e2aae0e87df1 |
no | D3D12.X: persist slow driver blobs past the RAM cache cap (#1833); bounded source reviewed; integration/device or full-stack validation pending. |
| #2581 | d5d694b04b3e |
no | D3D12.X: with bounded pipeline waits, dispatches are not put off to the submit; bounded source reviewed; integration/device or full-stack validation pending. |
| #2585 | 2066b32e5d12 |
no | DXC: keep LINK_GATE open on OOM and forward opt/extra args to IDxcLinker::Link; bounded source reviewed; integration/device or full-stack validation pending. |
| #2594 | ae921b40fc1f |
yes | Shaders: reuse the file buffer when loading unsplit cache entries; bounded source reviewed; integration/device or full-stack validation pending. |
| #2603 | 88c0f1481ff2 |
no | Tests: isolate the streamed-texture recheck fixture; bounded source reviewed; integration/device or full-stack validation pending. |
| #2613 | 2d229b9f76b6 |
no | Shaders: warm runtime-selected graphics DXIL variants in --precompile; bounded source reviewed; integration/device or full-stack validation pending. |
| #2614 | cd7be10ff02b |
no | D3D12.X: preserve replaced driver blobs after stale rejection; existing scoped evidence; current integration/runtime pending. |
| #2621 | aad6434c1c6a |
no | D3D12.X: preserve extended state in translated graphics PSO streams; bounded source reviewed; integration/device or full-stack validation pending. |
| #2622 | f0f9daee2d7e |
no | D3D12.X: a put-off call's segment that does not close is not submitted; bounded source reviewed; integration/device or full-stack validation pending. |
| #2628 | 8b15baee713b |
no | D3D12.X: a worker waiting for a big compile turn leaves the queue to a helper; bounded source reviewed; integration/device or full-stack validation pending. |
| #2629 | 8bfaa12f1fdf |
no | D3D12.X: a split program's failed whole build is not tried again; bounded source reviewed; integration/device or full-stack validation pending. |
| #2641 | c9751948934e |
no | Recompiler: simplify direct DXIL frexp_mant, frexp_exp, and alignbit helpers; existing scoped evidence; current integration/runtime pending. |
| #2652 | 88d7b0a19a27 |
no | Recompiler: serialize dxc::wait_for_memory slot admission (#2463); bounded source reviewed; integration/device or full-stack validation pending. |
| #2697 | 50cfb321be82 |
no | D3D12.X: a memory line by owner, against DXGI's budget; existing scoped evidence; current integration/runtime pending. |
| #2704 | 9b6811395e23 |
no | Shaders: include HEAP_FLAT in offline precompile runtime_windows; bounded source reviewed; integration/device or full-stack validation pending. |
| #2705 | 231c4f1d06b5 |
no | xcl run: preparation workers count the commit left in MiB, not bytes; existing scoped evidence; current integration/runtime pending. |
| #2706 | f614add84d53 |
yes | D3D12.X: preserve the NVIDIA world-streaming integration; existing scoped evidence; current integration/runtime pending. |
| #2711 | dfead3702a1e |
yes | Recompiler: canonicalize split compute pieces and prune unused bindings (#2088); existing scoped evidence; current integration/runtime pending. |
| #2717 | 23d313161e3a |
no | D3D12.X: a mid-list split gets its next segment before it closes the list; bounded source reviewed; integration/device or full-stack validation pending. |
| #2723 | 2d14195e83eb |
no | D3D12.X: share dispatch-chain root signatures per device and key compute blobs on NodeMask; existing scoped evidence; current integration/runtime pending. |
| #2725 | ad9172c015a8 |
no | D3D12.X: a title allocator takes a free spare another one put aside; existing scoped evidence; current integration/runtime pending. |
| #2728 | ae5a2f99b02e |
yes | README: document xcl shaders --precompile --limit; existing scoped evidence; current integration/runtime pending. |
| #2739 | e58cd9e7945f |
no | shaders: distinguish precompiled PSOs from saved driver blobs; bounded source reviewed; integration/device or full-stack validation pending. |
| #2740 | 9ecae592ea3a |
no | D3D12.X: persist compute blobs when the RAM cache is full; existing scoped evidence; current integration/runtime pending. |
| #2749 | 9cfa7536e978 |
no | D3D12.X: split sparse readback spin and submission out of STATE lock; bounded source reviewed; integration/device or full-stack validation pending. |
| #2750 | 44a7e6fe3431 |
no | D3D12.X: count the resources XCL makes for itself, by where it makes them; existing scoped evidence; current integration/runtime pending. |
| #2755 | 4bb6b30fc5b1 |
no | D3D12.X: preserve used-pipeline key on RT-gated compute stand-ins; bounded source reviewed; integration/device or full-stack validation pending. |
| #2761 | 7cbc65139995 |
no | Recompiler: use u128 dependency masks for reload invalidation; bounded source reviewed; integration/device or full-stack validation pending. |
| #2764 | 24695174b1c1 |
no | D3D12.X: a placed view's padding does not make a second texture; bounded source reviewed; integration/device or full-stack validation pending. |
| #2781 | e1e5bbf0d9bd |
no | Recompiler: Wave32 pixel mask writes kill one SGPR, not a pair; bounded source reviewed; integration/device or full-stack validation pending. |
| #2786 | 7587c01324cf |
no | D3D12.X: add opt-in first-demand capture sidecar for Chain::whole fallbacks; bounded source reviewed; integration/device or full-stack validation pending. |
| #2788 | 2331f2ea810c |
no | Tests: a console MS in the AS slot is refused by its MS translation; bounded source reviewed; integration/device or full-stack validation pending. |
| #2789 | ed13531a2869 |
no | Build: hash the translator sources of the tree being built; bounded source reviewed; integration/device or full-stack validation pending. |
Confirmed 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.
Measured on an RTX 5090 (XCL_GPU_TIMES, a retail title at 1280x720): XCL_TWO_PASS_BATCH=1 took two-pass mesh draws from 0.042 to 0.034 ms a call and the GPU frame from about 190 to 165 ms. Barriers were about a fifth of the cost; the rest is each draw alternating compute pass and mesh pass, thousands of times a frame. With XCL_TWO_PASS_BATCH=2 (1 keeps the previous commit's behaviour, unset the original) a two-pass DispatchMesh, or ExecuteIndirect of one command, on a direct list is deferred: what both passes read is written to unified memory at the draw as the unbatched path writes it (each stage's io block with the title's root arguments of that moment and its argument table; the rewrite's constants), and the draw takes a region of its own, as large as the draw alone would have, in a batch record buffer of the list (XCL_TWO_PASS_BATCH_MB, 128 MiB). A run is recorded as: one ResourceBarrier call (a UAV barrier on all resources and the argument blocks to UNORDERED_ACCESS; with no ExecuteIndirect, a UAV barrier on the records if the last run's mesh passes may read them), every argument rewrite, one call taking the blocks to INDIRECT_ARGUMENT, every compute pass, one UAV barrier on the records, every mesh pass in the title's order. Root signatures and pipelines are set where they change; every pass sets all its root views. XCL_GPU_TIMES times the rewrites and compute passes of a run as one row and each mesh pass on its program's row. A run is recorded first: - before any title call on the list through a slot other than the root signature and root argument sets, QueryInterface / AddRef / Release / private data / name / device / type, and ExecuteIndirect / DispatchMesh at their slots of the title's layout: a hook in front of every slot of the command list vtable (guard::make_before), which looks at a count of lists with deferred draws first. So pipelines, barriers, copies, clears, draws, dispatches, IA / RS / OM state, heaps, queries, predication, bundles, markers, Close, Reset and the console's own methods all record the run before they run. Calls from XCL and the runtime do not. - at Close (cl_close) and before the PC Closes of list_x's segments; - before a two-pass draw that is not deferred (ExecuteIndirect of more than one command, a bundle or compute list, a capture, records larger than the batch buffer, a failed preparation) and before any other DispatchMesh or ExecuteIndirect; - at XCL_TWO_PASS_BATCH_MOST draws (64); - when the next draw's records do not fit after the run's. A Reset without Close or a released list drops its deferred draws. Why it is the unbatched result: between the draws of a run nothing reaches the PC list (root argument sets are kept by XCL), so each mesh pass draws with its draw's render targets, viewports and other PC state, and the title's GPU work cannot change the memory a pass reads. A compute pass writes only its own region. What moves is a compute pass of draw k ahead of the mesh pass of draw j < k: the mesh pass writes render targets, depth and possibly memory through a pixel shader, and a later draw reading those needs a title barrier on the console too, which records the run first; the unbatched path did not order render target writes before a later compute pass either. A new batch buffer is made only while the two-pass buffers alive leave half of XCL_TWO_PASS_MB, so batch buffers cannot get the records of the draws that go at once refused. The diff is large (about 600 runtime lines and 330 test lines) because deferral, the flush hook and its flush points only work together. Tests: a run's command order for N draws with root arguments set between them, and after a run left open; ExecuteIndirects in a run (rewrites first, argument blocks once, three ResourceBarrier calls); every call of a run runs with the pipeline, root signature and root views the unbatched path gives it; the slots that keep a run on both console layouts and that every other title call flushes; what is deferred; regions, the budget and the record groups; a recording that ends drops its draws; the hook before a call sees the object and forwards every argument; the XCL_GPU_TIMES label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With XCL_TWO_PASS_BATCH=2 a retail title's runs of deferred two-pass draws were 2.4 draws long (19,272 draws in 8,192 runs) and the frame rate did not change: the title sets a pipeline before nearly every mesh draw, and SetPipelineState recorded the run. Now, on a list with deferred draws, a SetPipelineState to a two-pass pipeline goes into the run: the title's pipeline becomes the one its next draws resolve, and the set itself (real::bind_pipeline: the PC pipeline and what list_x::on_set_pipeline_state records with it, such as the depth bias) is recorded among the mesh passes where the title made it, so each mesh pass draws with the dynamic state of its draw. Each mesh pass sets its own pipeline after such a set; each compute pass already had its draw's pipeline and root signature. A SetPipelineState to any other pipeline records the run first and then binds as before. SetDescriptorHeaps still records the run first. The log line of runs now counts the pipeline sets in a run and what ended the runs so far, most first, by the PC method the title's call runs (slot names from the layout through console_remap) or by the other ends: Close, a Close of XCL's, XCL_TWO_PASS_BATCH_MOST, the batch buffer full, a DispatchMesh / ExecuteIndirect not deferred, a pipeline that is not two-pass. Tests: a run across two pipelines and back (DispatchMesh and ExecuteIndirect, root arguments between) gives every mesh pass and pipeline set the state and order the unbatched path gives them and every compute pass its draw's pipeline; SetPipelineState binds, goes into the run or records it first; SetDescriptorHeaps between deferred draws records the run first; the names of what ended a run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A title's world ran at ~4-5 frames/s with its submitting thread the limit: ExecuteCommandLists took ~9.2 ms a submit (~19 a frame), and the submit cost line left ~2 ms a submit (~29-39 ms a frame) outside its stages. The sparse lock split said each submit waited ~2.1 ms for the sparse state's lock, but not for whom. The submit cost line now ends with what lies outside its stages: the refresh's call around its lock wait and itself (entry), the lists made ready for the PC, the waits for a list's previous submit, the splits at Wait32/64BitValueX (the submission but its driver, after and previous parts; with the waits and the sparse windows' update after each split apart, and the splits a submit), and the end after the submission. With XCL_LOOK_STATS=2 the sparse lock split line also says who held the lock how long (submits, after stages, ranges, copies back settled at fence looks, the readback thread, put-off mappings, commits, GPU-view sources, placed buffers, CPU reads), whom each submit's wait was behind when it began, and the submit's two other waits for the lock (the after stage's copies back, the ranges' mapped tiles), which "sparse lock wait" did not count. Both additions follow the existing text of the lines, so older readers of them still parse them. Diagnostics only: no behaviour changes. The holder is one relaxed store at each lock and release; the times are taken only with XCL_LOOK_STATS=2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A retail title's world (~19 submits a frame, ~4-5 frames/s, the submitting thread the limit) waited ~2.1 ms in each submit's before_execute for the sparse state's lock: ~45 ms a frame. Its after stage (copies back of the lists' memory writes) and its ranges (the mapped tiles) took the same lock through lock_state, with no priority and outside that count. Meanwhile title threads looked at fences ~170 times a second, and each look tries the lock in a loop for up to 5 ms (20 ms from the fence thread) to land copies back; the readback thread tries it every 0.5 ms, nothing to land or not; put-off mappings are sent by a thread that tries it for 2 ms. A thread trying the lock as it is let go takes it before a waiting submit has woken. With XCL_SUBMIT_LOCK_FIRST=1 (off unless set): - the after stage and the ranges take the lock as before_execute does (lock_first: commits and decommits give way to them); - a fence look's settle does not try the lock while a submit waits; that time does not count against its budget, up to the budget again (so it still gives up in the end: it may not wait for the lock); - the readback thread does not try it with nothing to land or a submit waiting; - put-off mappings are not sent while a before_execute waits: it sends them itself (flush_pending) once it has the lock. Why it is safe: only who gets the lock next changes; every piece of work is done under it as before, in the same order on each thread. The GPU's view of title memory is still brought up to date under the lock before each submit's lists. A settle that gives way gives up after at most twice its budget instead of once, and lands what it lands as before; what a settle could not land stays pending, as it did when the lock was busy. What could break it: a holder that waits, with the lock held, for a title thread that is giving way here (none: the lock's holders wait for the GPU and for D3D12 only, which is why these threads only try it). Tested: a unit test of the try loop (taken at once with nobody waiting; not taken while a submit waits, within the budget; given up after the budget and the time given way when held). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…only A submit is split before a list whose Wait32/64BitValueX does not hold yet. After the waits of each split, mapped_after_wait ran a whole sparse before_execute again (the state's lock with its wait, copies back landed, put-off mappings and unmappings sent, pools retired, the queue made to wait for the sparse queue), whether or not anything was waited for on the CPU. A retail title's world bridges its Wait64BitValueX to GPU queue waits, and its submit cost line left ~2 ms a submit outside the timed stages, which is where these splits are (the "sparse lock" part counted their time, the refresh's "rest" went below 0 by as much). With XCL_SPLIT_SPARSE=cpu (off unless set) the update after a split is made only when one of its waits was waited for on the CPU; wait_all_on now says so. The KickoffX path follows the same rule. Why it is safe: the update passes no written pages (it never uploaded CPU writes); it maps memory committed, and unmaps memory decommitted, since the submit's own before_execute. Without a CPU wait the lists after the split go out within the same submit call, a millisecond or so after that before_execute, as an unsplit submit's later lists do: a commit by another thread in that window was not ordered before them by the title either. CPU writes made before the submit are uploaded, and the queue made to wait for them, before its first list, as before. With a CPU wait (the thread that writes the value may have committed memory first) the update is made as before. What could break it: a title that commits memory on another thread during a submit, writes it by the GPU in a list after a GPU-side wait, and relies on that write landing (an unmapped tile drops it); an unsplit submit has the same window. Tested: a unit test (no CPU wait for waits that hold; a CPU wait reported; the rule with and without the switch). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prime1997
left a comment
There was a problem hiding this comment.
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-only label 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:
| PR | Exact reviewed head | CI result |
|---|---|---|
| #2770 | 7a7e161d907c91e32fbf727201806171f5580c51 |
Run45812413546 |
| #2771 | 6b2691e18b02fd5f5efcca5c8e27db93e3ce727a |
Run45812422397 |
| #2773 | 0c0a7aa4ef1c0ced8436ebfd9fdaf1c4182baf98 |
Run45812437568 |
The full job logs show successful dev/test compilation, followed by the xcl --lib process aborting on Microsoft Basic Render Driver with 0x887a0020. Each job exits1, contains347 GPU-skip diagnostics and has no final libtest summary. Complete suite pass/fail totals therefore cannot be reported. No named FAILED test 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-dev at af2cecc40886a8682ecf3267f5328c6dc4b66ad7. 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.
|
Test report: Setup
What it showed (seconds from the
Not tested: preparation on (the AI use: Claude Code (Claude Opus 5.5) ran this and wrote it; Claude Fable 5.2 rechecked it against the logs. |
A mesh stage's root views carry no size and were asked for 64 KiB from their address on; the rest read as zero. A detailed mesh's vertex and index data is longer than that: its vertices collapsed onto a few points and the mesh drew as a slab, on some runs and not on others (when another path had asked for the same tiles). With 1 MiB the mesh is whole in every run checked. Root views of other stages keep 64 KiB: with 1 MiB a title's character lighting went black. XCL_VIEW_REACH_MB=0 gives the old behaviour. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Two notes for whoever syncs this branch with
And one match with the reports above: on this card the device goes ( AI use: Claude Code (Claude Fable 5.2) ran the merge check and the runs and wrote this. |
A mesh stage whose data was asked for at a submit drew with part of it still unfilled when more than 16 MB was asked for at once (a close-up of a detailed mesh): the unfilled part read as zero and the mesh drew as shards. Three runs with 1024 MB: no shards, the frame rate as before. XCL_MIRROR_FILL_MB sets it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Started without a command line, XCL asks after the game which console it should be: Xbox Series X or Xbox Series S. The choice is the default of the next start (last-console.txt in the data folder) and sets XCL_DEVICE_TYPE for the run; with XCL_DEVICE_TYPE set, the question is not asked. A game sizes its memory, resolution and detail by the console, and XCL keeps what it learns about a game's memory per console. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
A picture regression on this branch: single black frames during loading, about every 16th frame, that Tested
Not tested
AI use: Claude Code (Claude Fable 5.2) ran the runs, counted the frames with a script and wrote this. |
|
@throny we traced the same flicker on our tree: it comes from the hot-block CPU-write looks, Why. A look before each submit takes only the 2 MiB blocks written in the last What we measured (RTX 5070 Ti, retail title, art screens):
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 ( AI-assisted. |
|
@claudetools-gh confirmed on the RTX 4080, thanks: with
AI use: Claude Code (Claude Fable 5.2) ran this and wrote it. |
What 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