Backlog
Description
Continuation of #1608 (and #14), which has reached GitHub's 2,500-comment cap. The previous threads contain the existing claims, findings, and open-work table. Check those records and the open pull requests before claiming anything.
- Claim: comment
claiming: <ID>before starting work. Use the existing ID if there is one, or give a short description for an unlisted item. Put the ID or a link to the claim in the pull request. - Finding: comment
finding: <one line>with the file and line, why it matters, and what is needed to reproduce it. - Done: comment
done: <ID> -> #<PR>when the pull request is open.
The same contribution rules apply. Existing claims in #14 and #1608 still stand. If a claim was posted in a separate issue while #1608 was capped, link it here so contributors can find it.
Metadata
Metadata
Assignees
Labels
No labels
Activity
sodove commentedon Nov 28, 2026
claiming: VERIFY-508, VERIFY-1477, VERIFY-762, VERIFY-1381, VERIFY-1482, VERIFY-2419, VERIFY-1692, VERIFY-2366, VERIFY-1481, VERIFY-1582, VERIFY-338, VERIFY-2265, VERIFY-1761, VERIFY-1683, VERIFY-708, VERIFY-1370, VERIFY-858, VERIFY-1112, VERIFY-1697, VERIFY-2171, VERIFY-966, VERIFY-910, VERIFY-1563, VERIFY-898, VERIFY-1587, VERIFY-803, VERIFY-435, VERIFY-410
Shader batch assigned by DadaCap. Pinned main
3bd936ecd98995bca3e1da83d5e28d2343001aef. I'll report PR-specific baseline and merged results, including validator and hardware coverage where exercised. AI-assisted: OpenAI Codex.zmasi commentedon Nov 28, 2026
done: VERIFY-2403, VERIFY-2347, VERIFY-2303, VERIFY-2289, VERIFY-2287 (claimed in #1608#issuecomment-7237767569) -> results in #2403, #2347, #2303, #2289, #2287
AI-assisted.
zmasi commentedon Nov 28, 2026
status: D3D12-SHADER-F16-OMOD-CONSOLE-MODE -> branch https://github.com/zmasi/leonida/tree/fix/d3d12-shader-f16-omod-console-mode (�4679c076704eec8c323405e158ed9fe58bef47c, claim #1608 (comment); PR slot queued).
ative::fspx_rsrc1 + lower::with_pgm_rsrc1 in emit_program): ignores omod while keeping [0, 1] clamp under console default FLOAT_MODE = 0xC0 (denorm_mode_16_64 = 3, including FSSM stages without PGM_RSRC1 and all 29 shipped FSPX shaders) or IEEE = 1, and scales before clamp when denorm_mode_16_64 = 0 && !ieee (SHADER-135). Restored �alu_tests::f16_omod_applies_before_clamp under denorm_mode_16_64 = 0, IEEE = 0 and documented // shortcut: + SDWA /
dna2spirv.py �_cvt_f16_f32 notes.
ative::tests, and interpolated_f16_writes_the_op_sel_half_with_modifiers passed on NVIDIA GeForce RTX 3090 D3D12 + WARP + dxil.dll.
AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS ->
d3d12/crates/leonida-hle/src/modules/kernel.rs:GetModuleFileNameWbuffer pastMAX_PATH(up to32768) and preserve threadGetLastError()insidehost_overrideso long-path host modules cannot bypass HLEGetProcAddressoverrides (WinHttpOpen,connect,CreateFileW) or clobber callerGetLastError(); ignore nulllpProcNameinhost_override.#n, e.g.gameinput.dll#1GameInputCreate) on pseudo-modules inGetProcAddress, reject nulllpProcNameand missing exports withERROR_PROC_NOT_FOUND, and returnTRUEfromDisableThreadLibraryCallson pseudo-module handles (matchingruntime/shims/library_loader.cpp).find_moduleso""/"dir\\"pass through to the host instead of querying".dll", and trailing dots follow Win32 loader rules ("kernel32.dll."->"kernel32.dll","kernel32."->"kernel32").GetModuleFileNameW/GetModuleFileNameAtitle paths viawrite_unaligned(avoidingslice::from_raw_parts_mutUB/panics on uninitialized or odd-byte-aligned caller buffers) and clearLastErrortoERROR_SUCCESSwhen not truncated.AI-assisted.
adrianmjim commentedon Nov 28, 2026
claiming: RT-GEOMETRY-VIEWS-CONTAIN -
GeometryViews::resolve(runtime/shims/d3d12_geometry_views.h) looks only for its exact key (source, bytes), so a range inside a live view gets a view of its own: (A, 128 KiB), (A, 64 KiB) and (A + 4 KiB, 64 KiB) are three views and 256 KiB of copies of 132 KiB of the title's bytes, each charged toLEONIDA_GEOMETRY_MB. Fix: a range inside a live view is answered from that view, and the containing view is held until nothing answers the range (LEONIDA_GEOMETRY_CONTAINED=0turns it off). Also fixed along the way: a pinned view no longer drops its other written tiles while a file read into one tile is in flight, a view is pending untilon_retirehas run before it takes its command-list epoch, andcopy_title_range(an acceleration structure's whole range) is never answered from inside a larger view. Tests:geometry_viewscases 17 and 18. 16 of 98 checks fail onmaind44285197; all pass with the change. Expect a textual conflict with #2085 (same files, different fix). No game files.claiming: RT-DRAW-VIEWS-UNCHANGED -
set_vertex_buffersmarks a list'sDrawViewsblock stale for any call that writes a slot, andOMSetRenderTargetsfor every call, without comparing with what is bound (runtime/shims/d3d12_com.cpp,runtime/src/command_list.h). A title that binds the same vertex buffer before each draw makes onemake_shared<DrawViews>per draw (about 728 bytes), kept until the list's Reset. Fix: a block is marked stale only when a slot's view, the target count or a copied target view changes; what each draw records is unchanged. Test:d3d12_draw_test --draw-views-sharing(ctestd3d12_draw_views_sharing): 1000 draws with the sameIASetVertexBuffersmake 1000 blocks onmainand 1 with the change, and a changed slot, an unbound slot, another render target or a rewritten RTV behind the same handle each start a new block. No game files.zmasi commentedon Nov 28, 2026
status: carryover queued branches from #1608 (while at 3-PR open limit: #2236, #2238, #2239)
Carryover from #1608 (comment) so contributors scanning #2570 can avoid duplicate work. All 56 branches below are finished, tested, merge cleanly against
main(c8bf0e7b6), and pushed; each has its own claim and status comment on #1608 / #2570 and will open one PR at a time as slots free.Rust D3D12 runtime (
d3d12/):D3D12-SHADER-CVT-FLR-RPI:zmasi:fix/d3d12-shader-cvt-flr-rpi(f895282f6)D3D12-SHADER-SALU-SCC-CARRY-AND-OVERFLOW:zmasi:fix/d3d12-shader-salu-scc-carry-overflow(93cceae36)D3D12-SHADER-SAMPLE-OFFSET-3D-AND-GETLOD-ZW:zmasi:fix/d3d12-shader-sample-offset-3d-getlod(910d34379)D3D12-SHADER-LANE-SELECT-MASK:zmasi:fix/d3d12-shader-lane-select-mask(2decd44bd)D3D12-SHADER-SOP64-AND-V64-INLINE-FLOAT-CONSTANTS:zmasi:fix/d3d12-shader-inline-f64-constants(bd1d39882)D3D12-SHADER-HALF-SRC-INLINE-FLOAT-AND-SDWA:zmasi:fix/d3d12-shader-half-src-sdwa(aeeafe70e)D3D12-SHADER-PK16-AND-U16-CLAMP:zmasi:fix/d3d12-shader-pk16-u16-clamp(25e495dc0)D3D12-SHADER-F16-OMOD-CONSOLE-MODE:zmasi:fix/d3d12-shader-f16-omod-console-mode(1c18df59e)D3D12-SHADER-VOP3-INT16-MISSING-OPCODES:zmasi:fix/d3d12-shader-vop3-int16-missing-opcodes(60c75fba7)D3D12-SHADER-LDS-EXACT-MINMAX-COMMUTATIVITY:zmasi:fix/d3d12-shader-lds-exact-minmax-commute(2c6d71454)D3D12-GPU-ROOT-DESERIALIZER-CONSOLE-FLAGS:zmasi:fix/d3d12-gpu-root-deserializer-console-flags(48c330a01)D3D12-GPU-INPLACE-VIEW-ALIAS-AND-SECTION-LIFETIME:zmasi:fix/d3d12-gpu-inplace-view-alias-bounds(5645d55de)D3D12-GPU-DXGI-OUTPUT-DISPLAY-MODES-FORMAT:zmasi:fix/d3d12-gpu-dxgi-output-display-modes(ec798d0e0)D3D12-GPU-HOSTLIST-INDIRECT-ARGS-POOL:zmasi:fix/d3d12-gpu-hostlist-indirect-args-pool(ef62df110)PORT-NV-INDIRECT-MERGE:zmasi:feat/d3d12-port-nv-indirect-merge(3d231394e)PORT-NV-POOL-STATS-AND-SMALL:zmasi:feat/d3d12-port-nv-pool-stats-and-small(92d339ec0)PORT-NV-WAVE64-ON-32LANE:zmasi:feat/d3d12-port-nv-wave64-on-32lane(cac46cf15)PORT-UN-SMOOTH-MOTION-NVAPI:zmasi:feat/d3d12-port-un-smooth-motion-nvapi(c9f084b8c)PORT-UN-CORES-HYBRID-PLACEMENT:zmasi:feat/d3d12-port-un-cores-hybrid-placement(55fca33e6)PORT-UN-FIDELITYFX-REDIRECT:zmasi:feat/d3d12-port-un-fidelityfx-redirect(d3e26d9dd)PORT-NV-DOCS-8GB-AND-WINMEM:zmasi:docs/d3d12-port-nv-docs-8gb-and-winmem(a62b47852)D3D12-HLE-APU-HANDLE-LIFETIME:zmasi:fix/d3d12-hle-apu-handle-lifetime(c7cef4fe7)D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT:zmasi:fix/d3d12-hle-dsp-handle-lifetime(5e48f2b26)D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS:zmasi:fix/d3d12-hle-kernel-loader-parity-bounds(ea369dba2)D3D12-HLE-GAMEINPUT-QI-AND-DISCONNECT-HISTORY:zmasi:fix/d3d12-hle-gameinput-qi-disconnect-history(6c064eb6c)D3D12-HLE-LIFECYCLE-ANSI-WNDPROC-AND-NCDESTROY:zmasi:fix/d3d12-hle-lifecycle-ansi-wndproc-lifetime(903e7e448)D3D12-HLE-XASYNC-CALLBACK-AND-CANCEL-LIFETIME:zmasi:fix/d3d12-hle-xasync-callback-and-cancel-lifetime(daf7ddee1)D3D12-HLE-DSTORAGE-QUEUE-VTABLE-AND-FILE-UAF:zmasi:fix/d3d12-hle-dstorage-vtable-and-file-uaf(4175e2682)D3D12-HLE-DSTORAGE-INPLACE-OVERLAP-AND-STATUS-RACE:zmasi:fix/d3d12-hle-dstorage-inplace-overlap-status(aa1044d77)D3D12-HLE-XMEM-PHYSICAL-MAP-BOUNDS-AND-SPLIT-PLACEHOLDERS:zmasi:fix/d3d12-hle-xmem-physical-map-placeholders(fc1019e81)D3D12-HLE-NET-LOOKUP-LEAKS-AND-IOCTL-BOUNDS:zmasi:fix/d3d12-hle-net-lookup-ioctl-bounds(7f20d0713)D3D12-HLE-XG-TILING-AND-COPY-BOUNDS:zmasi:fix/d3d12-hle-xg-tiling-and-copy-bounds(3d1c30a4a)D3D12-HLE-FILES-VIRTUAL-DRIVE-BOUNDS(+media.rsprefixes):zmasi:fix/d3d12-hle-files-virtual-drive-bounds(4cc2b5950)D3D12-HLE-AUDIO-NOTIFICATION-AND-HEAP-BOUNDS:zmasi:fix/d3d12-hle-audio-notification-heap-bounds(9050ec766)D3D12-HLE-XGAMESAVE-VERSION-AND-READ-BOUNDS:zmasi:fix/d3d12-hle-xgamesave-version-read-bounds(51b469296)D3D12-HLE-XSYSTEM-REGISTRY-AND-ANALYTICS-BOUNDS:zmasi:fix/d3d12-hle-xsystem-registry-analytics-bounds(b0108027e)D3D12-LUA-SANDBOX-XPCALL-AND-STRING-METATABLE:zmasi:fix/d3d12-lua-sandbox-xpcall-string-meta(5b8522db1)D3D12-MENU-MODS-STALE-ITEM-INDEX:zmasi:fix/d3d12-menu-mods-stale-item-index(4014af66f)D3D12-MENU-SCALE-STEP-AND-PNG-BOUNDS:zmasi:fix/d3d12-menu-scale-step-png-bounds(0f2d5db30)D3D12-LOADER-CLZERO-LOOP-DECODE:zmasi:fix/d3d12-loader-clzero-loop-decode(71c8d3e2e)D3D12-LOADER-PREPARE-BOUNDS:zmasi:fix/d3d12-loader-prepare-bounds(7b8d688ba)D3D12-LOADER-TLS-DISP32-AND-PROTECT-BOUNDS:zmasi:fix/d3d12-loader-tls-disp32-protect-bounds(758b30fe8)D3D12-LOADER-CRASH-PAGE-THROW-AND-UNWIND-BOUNDS:zmasi:fix/d3d12-loader-crash-page-throw-unwind-bounds(164de1cb7)D3D12-PE-ENTRY-AND-TLS-BOUNDS:zmasi:fix/d3d12-pe-entry-and-tls-bounds(de6a23248)D3D12-FORMATS-TEXTURE-MIP-MSAA-1D-BOUNDS:zmasi:fix/d3d12-formats-texture-mip-msaa-1d-bounds(f79892998)D3D12-FORMATS-XMA-FIRST-FRAME-BOUNDS:zmasi:fix/d3d12-formats-xma-first-frame-bounds(b4613feb1)D3D12-CORE-POLICY-MONOREPO-ROOT:zmasi:fix/d3d12-core-policy-monorepo-root(48c5c824c)C++ runtime and tools:
MAKE-GAME-DEFAULT-FNV1A-FMIX32:zmasi:make-game-default-fnv1a-fmix32(c847cc059)VK-DEVICE-MARKERS-SYNC-WAW:zmasi:fix-vk-device-markers-sync-waw(ccaad2dde)RT-ORDINARY-HEAP-LOW-ARENA-VSHARP:zmasi:fix-d3d12-low-title-vsharp-provenance(c8bde535f)RT-GAMEINPUT-SDL-BLOCKING-UNREGISTER-SYNC:zmasi:fix/gameinput-sdl-blocking-unregister-sync(11900cb59)RT-MSAA-DEPTH-SRV:zmasi:fix/msaa-depth-srv(0cef915f3)RT-COMPILE-HELPER-LATE-JOURNAL-RELOAD:zmasi:fix/compile-helper-late-journal-reload(9bb59d09f)RT-SLOT70-SUPERSEDED-SLOT133-VIEW:zmasi:fix/slot70-superseded-slot133-view(44311889e)RT-COMPILE-SERVER-REQUEST-SPIN:zmasi:fix/compile-server-request-spin(736ae309f)TOOL-LDS-FUZZ-CMPST-BARRIER:zmasi:fix/lds-fuzz-cmpst-barrier(dc553a70e)AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: VERIFY-2285, VERIFY-2266, VERIFY-2264, VERIFY-2263, VERIFY-2262 (Windows 11)
AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT
Scope:
d3d12/crates/leonida-hle/src/modules/dsp.rs(chad.dll) — trackDspandStreamhandles via monotonic IDs +Arcownership soXDspDisconnectbeforeXDspDeactivate, double-disconnect/deactivate, and stale handles returnE_INVALIDARGinstead of UAF/double-free; replace&mut Statuswith atomic fields (Ordering::Releaseoncompleted) serialized per stream; handle unalignedCommand/output/ out-pointers safely; and acceptbase_length == 0while rejectingmax_streams == 0andmax_channels == 0perruntime/shims/chad.cpp.AI-assisted.
adrianmjim commentedon Nov 28, 2026
done: RT-GEOMETRY-VIEWS-CONTAIN, RT-DRAW-VIEWS-UNCHANGED -> #2569 (claimed in #2570 (comment)). Both are added to the leak-sweep pull request with the other fixes, each as its own merge there and its own branch on adrianmjim/leonida (leaks/geometry-views-contain, leaks/draw-views-unchanged).
zmasi commentedon Nov 28, 2026
Updates on the three gfx906 lanes claimed in #1608 before the comment cap:
RT-VK-DEVICE-MARKERS-SYNC-WAW→zmasi:fix-vk-device-markers-sync-waw,77670e6f. On33db04a70synchronization validation reported 10 repeated marker writes; the marker values were already correct. The fix adds one transfer-write dependency over the queue’s eight-byte marker slot before each marked compute dispatch. Both registered marker CTests passed; the legacy and synchronization2 marker paths read back 5/5 and 8/8 with zero validation errors. No added host wait or dependency when markers are disabled. This covers main’s out-of-rendering dispatch path, not [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566’s additional in-rendering draw path. No PR opened. Test-only follow-upccaad2ddaddresses the legacy stage capture conversion reported by @Tyrannys; the runtime is unchanged. Same-stage marker writes already have an implicit dependency under the specification; the explicit transfer dependency removed the observed layer reports. Its timing impact with markers enabled was not measured. Earlier observation: @kevincommits.VERIFY-2360-VEGA20-RADV→ native bitcmp readbacks. Same 2,368 words: 1,080 wrong on main, zero wrong on the merge.VERIFY-2478-VEGA20-RADV→ Wine rectangle-corner readbacks. Main failed 7 of 17 pixel cases; the merge passed all 17.AI-assisted.
zmasi commentedon Nov 28, 2026
done: VERIFY-2285, VERIFY-2266, VERIFY-2264, VERIFY-2263, VERIFY-2262 -> results in #2285, #2266, #2264, #2263, #2262
AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-GPU-ROOT-DESERIALIZER-CONSOLE-FLAGS ->
d3d12/crates/leonida-gpu/src/root.rs:0xff00_0000) fromDXBCRTS0chunks (versions1.0..1.2) and recompute non-zeroDXBCcontainer checksums increate_deserializer(d3d12_xs!D3D12CreateRootSignatureDeserializer) before forwarding to hostd3d12.dll(matchingruntime/shims/d3d12_xs_rootsig.cpp, while failing closed on malformed containers/chunk tables or mismatched incoming hashes).without_console_flagsinserialize_versionedto root-signature versions1.0..1.2(1..=3), and clear non-null output pointers (out,blob,error) on earlyE_INVALIDARG/E_NOTIMPLfailures.AI-assisted.
zmasi commentedon Nov 28, 2026
status: D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT — pushed to
zmasi:fix/d3d12-hle-dsp-handle-lifetime(5e48f2b26f1bc935e086e6fa6b0d4427e643d7ea, based on6c7f79343, claim#2570#issuecomment-7237957634)Dspconnections andStreams by monotonic non-zero handle IDs (RwLock<HashMap<usize, Arc<...>>>) withArc<Dsp>ownership onStream, preventing UAF whenXDspDisconnectprecedesXDspDeactivate, double-free on repeatedXDspDisconnect/XDspDeactivate, and wild-pointer dereferences on stale or foreign handles.Statusfields toAtomicU32/AtomicI32with per-stream submission serialization andOrdering::Releaseoncompleted, eliminating&mut Statusaliasing and concurrent ticket data races.read_unaligned/write_unalignedon FFI structs/out-pointers, cleared outputs on failed calls, zeroedcommand.outputviacast::<u8>()afterchecked_add(byte_len), and acceptedbase_length == 0while rejectingmax_streams == 0andmax_channels == 0(runtime/shims/chad.cpp).3/3new tests failed on6c7f79343, includingmisaligned pointer dereferenceabort and126 != 128lost concurrent tickets) -> Green (186leonida-hletests pass,0clippy warnings indsp.rsacross default anddiagnostics).AI-assisted.
Tyrannys commentedon Nov 28, 2026
@zmasi a note on
RT-VK-DEVICE-MARKERS-SYNC-WAW(zmasi:fix-vk-device-markers-sync-waw,77670e6f) and #2489, which also changesvulkan_device_markers.h(the marker buffer is CONCURRENT over the device's queue families) andvulkan_device_markers_test.cpp.git merge-treeof vulkan: depth24 scratch and the device marker buffer are shared across queue families (RT-QUEUE-FAMILY-SHARING-DEPTH24-MARKERS) #2489's head and your branch is clean. Your barrier usesVK_QUEUE_FAMILY_IGNOREDon a slot of its own queue, which is fine on a CONCURRENT buffer too.runtime/test/vulkan_device_markers_test.cpp:81,writes.push_back({command_buffer, stage, offset, marker, false});inwrite_marker, fails with C2397: brace-initializing thestd::uint64_t stagefield from aVkPipelineStageFlagBitsis a narrowing conversion. GCC/Clang accept it.std::uint64_t(stage)fixes it.vulkan_device_markers,vk_device_markersanddepth24_scratch_sharingpass (3/3).vk_device_markersruns the marker path on an RTX 4070 SUPER (driver 621.01): marker2 and legacy rounds read back 5 and 8. The validation layer was not installed, so validation was off for this run.AI-assisted (Claude Code)
zmasi commentedon Nov 28, 2026
status: D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS -> branch https://github.com/zmasi/leonida/tree/fix/d3d12-hle-kernel-loader-parity-bounds (
ea369dba2a2d99fd2869b3f1100c0d5ecae45194onmain16e90d1ff)d3d12/crates/leonida-hle/src/modules/kernel.rs):host_override'sGetModuleFileNameWbuffer up to32768UTF-16 code units, ignore nulllpProcName, and preserve threadGetLastError()acrossGetProcAddress(including lazyREGISTRYinitialization andGetModuleFileNameW) so long-path host modules cannot bypass HLE overrides (WinHttpOpen,connect,CreateFileW) or clobber callerGetLastError().#ordinalexports (< 0x10000, e.g.gameinput.dll#1GameInputCreate) on console pseudo-modules inGetProcAddress, setERROR_PROC_NOT_FOUND(127) whenlpProcNameis null or unimplemented, and returnTRUE(1) fromDisableThreadLibraryCallson pseudo-module handles.find_module(""/"dir\\"pass through to the host instead of querying".dll", and trailing.characters strip without appending.dll).GetModuleFileNameW/GetModuleFileNameAtitle paths viawrite_unaligned(avoidingslice::from_raw_parts_mutUB/panics on uninitialized or odd-byte-aligned caller buffers) and clearLastErrorto0(ERROR_SUCCESS) when not truncated.16e90d1ff): all 4 newmodules::kernelregression tests failed (pseudo_modules_resolve_ordinals_report_errors_and_disable_thread_calls,host_proc_overrides_handle_long_paths_and_preserve_last_error,empty_and_trailing_dot_module_names_follow_win32_rules, andtitle_module_filenames_accept_unaligned_uninit_buffers_and_clear_last_errorwithslice::from_raw_parts_mutalignment abort0xc0000409).ea369dba2):cargo test -p leonida-hle -- --test-threads=4(185unit +1integration passed,0failed),0clippy warnings inkernel.rs(default &diagnostics),check_no_game_data.pyandtest_text_write_line_endings.pyclean; held at open-PR cap.AI-assisted.
481 remaining items
zmasi commentedon Nov 29, 2026
Claiming: D3D12-PROTON-EXPLICIT-WOW64. Narrow follow-up to #2577, not a competing launcher. On a Linux host without a 32-bit Unix loader, GE-Proton11-14 can initialize and launch a 64-bit Windows process with explicit
WINEARCH=wow64. The launcher at0299208f3overrides that choice withwin64and fails before the application starts. I tested preserving the caller’s explicitwow64while retaining the existing default: a fresh prefix and the subsequent warm launch both reached a harmless argument probe. I will publish only the small follow-up on my fork. No retail execution.AI-assisted.
zmasi commentedon Nov 29, 2026
claiming:
D3D12-ALIAS-CAST-R9G9B9E5(d3d12/crates/leonida-gpu/src/{host.rs, resource.rs, texture.rs, descriptor/host.rs, draw.rs})Implementing the zero-copy
ID3D12Device10::CreateCommittedResource3castable-format view path noted ind3d12/docs/findings.md("The copies behind aliased views",390 MiB/frameacross 86 copies of 59R9G9B9E5_SHAREDEXPviews placed in shader-writtenR32_UINT/R32_SINTtextures,1.9-2.0 ms/frameon GPU withLEONIDA_ALIAS_DIRECT=1and3.6 ms/framethrough buffers):R32_UINT/R32_SINThost textures viaID3D12Device10::CreateCommittedResource3withDXGI_FORMAT_R9G9B9E5_SHAREDEXPinpCastableFormatswhenD3D12_FEATURE_D3D12_OPTIONS12::RelaxedFormatCastingSupportedis available.R9G9B9E5_SHAREDEXPSRVs directly on the source texture in place (eliminating the per-read GPU texture copies and duplicate VRAM allocations), gated byLEONIDA_ALIAS_CAST(on by default,=0fallback,LEONIDA_AB-switchable), with automatic fallback to the copy path on hosts without relaxed format casting, on address replacement, or when a single draw/dispatch simultaneously writes the source texture and reads its aliased view.LEONIDA_ABtoggling, address replacement, and simultaneous UAV+SRV fallback) and a synthetic RTX 3090 D3D12 timestamp benchmark of the 59-view / 86-read390 MiB/frameworkload.AI-assisted.
zmasi commentedon Nov 29, 2026
claiming: D3D12-SHADER-SLOT-VIEW-ADDRESSES ->
d3d12/crates/leonida-shader/src/emit/{shader.rs, mod.rs, lower.rs},d3d12/crates/leonida-gpu/src/{descriptor/host.rs, draw.rs, pipeline/host.rs}: ray-tracing trace programs (d3d12/docs/fork-ray-tracing.md) that load a structure's 64-bit title address out of a descriptor picked from the view heap or a table by a computed index fail lowering with"a descriptor read only as data"becauseUSER_VIEW_ADDRESSonly serves constant-offset table entries. AddSLOT_ADDRESSES(a per-view-heap-slot 64-bit title-address table kept byHostHeapacross static, dynamic, and placed acceleration-structure/buffer views) read byLower::view_addressandLower::flatvia clamped heap slot index, and feed active heap structure addresses intoState::memory_ready.AI-assisted.
zmasi commentedon Nov 29, 2026
claiming: VERIFY-2601 (Windows 11)
AI-assisted.
zmasi commentedon Nov 29, 2026
done: VERIFY-2601 (ref #2570 (comment)) -> result in #2601
AI-assisted.
zmasi commentedon Nov 29, 2026
claiming:
D3D12-SHADER-PAIRED-WAVE64-EXACTNESS(d3d12/crates/leonida-shader/src/emit/{paired.rs, wave.rs, lower.rs, mod.rs, paired_tests.rs, wave64_tests.rs})Fixing five Wave64-on-Wave32 shader lowering bugs that affect tiled compute passes (including
CS_TransmissionVolumetrics_GenerateTiles1aa247ed3653b616andpaired.rsWave64 lowering on 32-lane hosts; disjoint fromD3D12-SHADER-SLOT-VIEW-ADDRESSES):emit/lower.rs,emit/mod.rs): On 32-lane hosts with independent thread scheduling (NVIDIA), threads exiting a per-lane loop on earlier iterations reach post-loopwaveActiveBallot/exchange_halves/waveReadLaneFirst/v_mbcntas partial sub-warps, clobbering the lower half's ballot slot in LDS and causing upper-half threads (32..63) to overwrite lower-half tile-list slots (1aa247ed3653b616in the"without skips"2-wave form); inside the loop,lane_regionsalso left a per-lane loop-exit block markedall_lanes == truebecause a block post-dominates itself. Route post-per-lane-loop cross-half / wave programs to host-wave loop convergence orpaired(0group barriers), and allowBeforeWidepairedfallback on non-2D groups (1-D/ multi-wave) that every other form refused without enablingwiden's barriers on them.emit/wave.rs,emit/paired.rs,emit/lower.rs):Sym::Own(Value)discarded the source lane index (0..wave), miscompiling fixed-lane broadcasts inside whole-wave sections (v_readlane_b32/ DPP row broadcast unders_or_saveexec -1) into per-lane identity copies (Shape::Value) instead of fixed-lane reads (Shape::Lane).paired.rsv_readlane_b32bypassingSection::readsandrestored_lanes(emit/paired.rs):paired_instinterceptedv_readlane_b32beforevalu(), rejecting asymmetric whole-wave reductions read from a single lane afterEXECrestore (Section::reads) and parked-scalar restores (restored_lanes) with"a whole-wave section step the simulation does not follow".paired.rs: Supportds_read_b64/b96/b128,ds_write_b64/b96/b128,ds_read2_b64,ds_write2_b64,ds_read2st64_b32/b64,ds_write2st64_b32/b64, and sub-dwordds_read_{u8,i8,u16,i16}/ds_write_{b8,b16}(plus_d16/_d16_hi), unblocking Wave64 compute passes refused by"an LDS operation the paired form does not take".USER_DISPATCH_THREADS_X) inpairedmode (emit/lower.rs,emit/paired.rs): Use the console group width (cs.threads[0],64 * waves) rather than the halved host thread count (32 * waves), keep all host threads active for wave/barrier ops, and trackpartial_activeper console lane acrossLaneState,paired_f64_constant_sum,scc_some, andwave_wide.Will verify Red -> Green with unit and live D3D12 GPU execution tests on Windows 11 + NVIDIA GeForce RTX 3090 (
Wave32) + Microsoft WARP. AI-assisted.zmasi commentedon Nov 29, 2026
finding + claiming:
D3D12-RT-FG-ARENA-VA-STORM(d3d12/crates/leonida-gpu/src/{upload.rs, memory.rs, fg.rs, lib.rs},d3d12/crates/leonida-hle/src/lib.rs,d3d12/apps/leonida/src/main.rs)Root cause of the Ray Tracing + DLSS Frame Generation
~0.1 FPS/ white-picture collapse (fg.rs:49-58,README.md:136):[4 GiB, 2^37)exhaustion when Streamline/NGX initializes in the 3D world:upload::reservecurrently constrains every allocation — both command-list upload blocks (Upload::new, whose raw CPU addresses are passed to shaders and indexed in the2^21-pageMEMORY_PAGESdirectory covering[4 GiB, 2^37)) andMemory's own CPU-side directory + 64 MiB BVH page arenas (memory.rs, which no shader ever addresses by host CPU pointer) — to[4 GiB, 2^37)with nothing reserved ahead at startup.fg::present_start), NGX/CUDA reserves large virtual-address ranges in low VA alongsidexmemtitle mappings (DLSSGFlags::eRetainResourcesWhenOff+ continuedset_constants/set_tag_for_framekeep those reservations alive even with Reflex off or generated frames set to 0), exhausting contiguous 64 MiB holes in[4 GiB, 2^37).VirtualAlloc2storm underMEMORYmutex (~0.1 FPS) + unmapped BVH zero-reads (white picture) + 64 MiB VA leak:memory::ready(memory.rs:955) andMemory::map(memory.rs:390), every BVH builder and ray-tracing dispatch (thousands per frame across recording workers) callsMemory::another()->upload::reserve(64 MiB)(VirtualAlloc2) while holding the globalMEMORYlock, with no per-frame failure backoff — stalling recording for seconds per frame (~0.1 FPS).0indirectory(reading as zeros / ray misses while-RayTracingdisables the ambient stand-in clamp, blowing scenes out to white), andMemory::another(memory.rs:405) also leaks the 64 MiBVirtualAlloc2reservation whenevershadow::by_address/Memory::numberreturnsNone.Planned fix (disjoint from active
#2570claims onhost.rsandplay-nvidia.ps1):upload.rs/lib.rs/leonida-hle/apps/leonida/src/main.rs: reserve write-watched top-down upload address space (reserve_space,MEM_RESERVE | MEM_WRITE_WATCH | MEM_TOP_DOWN, uncommitted until used) at process start for shader-addressedUpload::newblocks (with window-full backoff + heap fallback), and addreserve_out_of_reach([2^37, 2^40)write-watched VA first, thenLEONIDA_LOW_EARLY_MB/[4 GiB, 2^37)) plusreleaseforMemory's directory and 64 MiB arenas.memory.rs: allocateMemory's directory and 64 MiB arenas viareserve_out_of_reach, memoizeMemory::anotherfailures per frame so dispatches never stormVirtualAlloc2underMEMORY, andreleasereservations if host-copy creation or numbering fails.fg.rs: lift the defaultLEONIDA_BVH_BUILDERlockout infg::wanted()while keepingLEONIDA_FG_WITH_RT=0as an explicit opt-out, with deterministic Red-to-Green synthetic tests on Windows 11.AI-assisted: yes
zmasi commentedon Nov 29, 2026
Claiming: D3D12-PROTON-MESH-TIER-PREFLIGHT and D3D12-RUST-SAMPLER-FIXTURE-LOD, two narrow follow-ups to the physical Rust suite run. The former is a capability check in the shader host test helper, not a runtime mesh-compute fallback. The latter fixes the inverted LOD limits in one byte-copy test fixture, not the production sampler converter. I will push the independently tested branches to my fork; no new pull requests.
AI-assisted.
kirigayakazima commentedon Nov 29, 2026
Continuing D3D12-XTASK-POLICY-MONOREPO from #1608: I will isolate the staged-path fix and test the actual Git index in a temporary nested workspace, retaining the existing size threshold.
claiming: CI-D3D12-RUST-UNIT-SMOKE — add a root-level path-filtered check for portable leonida-shader unit tests. I will verify the selected suite and the baseline before opening.
claiming: VERIFY-2600-2598-2593-WINDOWS — independent Windows before/after checks of the posted #2600 and #2598 patches and the semantic-suite failure on #2593. The original authors retain their implementation claims.
bobcatchris commentedon Nov 29, 2026
claiming: VERIFY-2566-WIN-AMD-7900XTX (and #2464 Part A Windows AMD baseline on main 791899f + #2566 A/B comparison on AMD Radeon RX 7900 XTX 24 GB, Windows 11, driver 32.0.32029.2010). AI-assisted: Antigravity (Gemini 4 Neon).
kirigayakazima commentedon Nov 29, 2026
Status for the staged D3D12 index check and the shader frontend CI claim. Both verified branches are on the fork: staged index fix and shader CPU CI. GitHub refused CreatePullRequest for both. The staged-index regression passed; the existing unrelated lower.rs size violation still fails the full xtask suite. The shader workflow command passed 121 CPU tests on Windows. Verification results for #2600, #2598 and #2593 are on their respective threads.
zmasi commentedon Nov 29, 2026
Done: VERIFY-RUST-D3D12-PROTON-VEGA20 — primary Rust runtime, synthetic hardware measurement. At
c8bf0e7b6, the packaged D3D12 stack creates a real hardware device and returns correct bindless, wave64 and ordinary vertex/pixel readbacks on Linux. The stock suites are not green. No retail executable or assets were used; this is not a playability, frame-rate or world-frame result.Reproducible baseline. Linux, isolated physical gfx906 (
1002:66a3, PCI0000:1e:00.0), RADV Mesa 26.0.8, GE-Proton11-14 / Wine 11.0 Staging, GE DXGI, and the repository’s hash-checked VKD3D-Proton 3.1 pair (runtime build4522cc1a8b1347f). Actual device: non-software, FL 12_1, SM 6.8, wave lanes 64–64, binding tier 3, mesh tier 0. Khronos validation and SyncVal active. A fenced D3D12 upload/copy/readback matched all four words. In three of the stock PEs, startup initially failed before libtest (c0000135): GE’s compiler needed its three shippedlibvkd3dhelper DLLs. Making those available in the isolated prefix unblocked the same binaries, without changing the packaged D3D12 DLLs.From
d3d12/:cargo test --no-run --locked --jobs 4 --target x86_64-pc-windows-msvc -p leonida-shader -p leonida-gpu -p leonida-hle --features leonida-shader/host, exact Rust/Cargo 1.98.1. Six stock x64 test PEs built; enablingdiagnosticsseparately built the two real replay integration bodies. Tests ran serially. Counts below are per unique stock test, not per adapter or per rerun. “Pass” includes CPU tests; it excludes identified early returns, incomplete optional checks and validation-red results.okcases with validation errorsWhat actually ran. The FP16 wave64 reduction matched its expected tree for eight active-lane masks from 1 to 64 lanes; a nonuniform bindless waterfall sampled alternating reference values, and the vertex-path sample-mask test rendered its expected quad patterns. All four shader assertion failures logged required wave size 32 vs supported 64; they failed at PSO creation, not readback. Separately, all 16 initially partial tests passed with official DXC 1.9.2609
dxil.dllloaded. The optional PC-DXC depth-bounds control created its PSO but failed the pipeline-library reuse assertion before reading pixels. WARP was not a separate physical adapter.Two reported shader findings, independently checked. Credit @merzleckeier (image store, checksum). The stock NaN-scrub fixture binds
R32_UINTto atextureStore.f32shader. We identified that mismatch offline and did not submit it. On-card, a type-matched UINT control preserved 9/9 exact bit patterns, including NaN-shaped integers; nine type-matched float dispatches returned the expected scrubbed results. This proves the typed contract, not a generic integer-store fix. Separately, the canonical VS/PS digests matched an independent calculation and created a graphics PSO. Zeroed, altered and stale payload digests were detected offline. The stock negative test assumes the host rejects them; host acceptance is the original reporter’s observation, not a result of this run.A compiler blocker before GPU execution. With the runtime’s exact HLSL and compiler arguments, GE
D3DCompilerejectedInterlockedOrfor the indirect clamp and batch,InterlockedAddfor the worker, andisnanfor the first ambient pass. Trainer VS/PS compiled but lacked an embedded root-signature part. Same six sources through DXC at shader model 6.0: 6/6 compiled with root signatures; 4/4 compute PSOs created on the card. No compute dispatch claimed for that control. An ordinary, explicitly synchronized synthetic replay derivative separately stopped at Wine compilerE5017on an unbounded texture array; it recorded/replayed no frame. The default replay harnesses enumerate zero cases; the barrier-disabled arm and ignored multi-gigabyte stress test were not run.Resource-state finding (open).
host::card_steps::tests::the_card_copies_what_is_recordedmatched its bytes but reportedSYNC-HAZARD-READ-AFTER-WRITEbetween two copies of the same seven bytes. The app transitions the destination toCOMMONbefore the later copy reads it. In the packaged backend’s barrier code, zero (COMMON) satisfies the shader-read-only subset predicate. The deferred barrier lacks transfer-read visibility, matching the actual SyncVal scopes. This is source-and-trace attribution, not a verified backend patch. The two HLE failures were a missingWSAConnectByListexport and a filesystem test assuming NTFS’s hard-link limit.Tested fixes on the fork; no new PRs.
0b3b0052f: the stock fixture wroteFLT_MAXto MinLOD and zero to MaxLOD. A typed descriptor preserves the byte-copy and sync assertions; the corrected test passed on hardware with zero validation errors. No production sampler change.103c1d681: the sample-mask test reached mesh PSO creation on a tier-0 device and terminated the stock shader process. Both affected callers now return an explicit unsupported skip before the backend, with zero validation errors; an ordinary wave64 dispatch still passes. Not a mesh fallback or a passing mesh render.b5ca5c6d8, on top of Linux: build leonida.exe and run it under Proton or Wine #2577: main first calls an absent standalonewineboot; Linux: build leonida.exe and run it under Proton or Wine #2577 uses Wine’s own bootstrap, but forceswin64even on a pure-64-bit installation requestingwow64. Preserving explicitwow64passed 49/49 launcher tests and actual cold/warm launches of a harmless Windows argument probe, with both console selections and DLL hashes checked.AI-assisted.
Mike7581 commentedon Nov 29, 2026
status: RT-GPU-CAPTURE-LAYERS, Windows side. PROVISIONAL (n=1 per cell). Claim
On NVIDIA's Windows driver, GFXReconstruct captures our layer and replays the capture; RenderDoc never gets to a capture. Not done: the captured frames are the run's first three (start-up, before the menu), not one menu frame and one world frame, and the RADV half still has no pair.
RenderDoc 1.47 (portable, nothing registered)
renderdoccmd capture(injection): Microsoft Defender reportsBehavior:Win32/DefenseEvasion.A!ml, ends the process and deletes the runtime executable. MEASURED, 1 run. The recipe will need an antivirus exclusion for the package folder before this path.VK_ADD_LAYER_PATH+VK_LOADER_LAYERS_ENABLE=VK_LAYER_RENDERDOC_Capture): its overlay draws, the game runs at 0.2-0.4 frames/s and crashes 22 s and 28 s in (read access violation in the title, the kind the baseline ends in, but far earlier). No capture. MEASURED, 2 runs.GFXReconstruct 1.0.5 (Vulkan SDK 1.4.363.0, layer added for the run only,
GFXRECON_CAPTURE_FRAMES=1-3)gfxrecon-replayon the same machine, one replay per cell:-m remap(default)-m rebind-m remap --validatevkGetMemoryHostPointerPropertiesEXTandVkImportMemoryHostPointerInfoEXT, an opaque capture address on that allocation (VkMemoryAllocateInfo-pNext-03332,-opaqueCaptureAddress-03333), 8 command buffers reset, begun and submitted while pending, 3 buffers destroyed in useLEONIDA_SLOT133_IMPORT=0LEONIDA_SLOT133_IMPORT=0makes every title-placed buffer take the shadow-buffer fallback instead of aVK_EXT_external_memory_hostimport (runtime/shims/d3d12_vulkan_device.cpp:9202,create_host_buffer, atb1f7f3de7). The memory behind an import is the title's, not a Vulkan allocation, so the capture does not hold it and the replay cannot rebuild it.The capture run behind the second row:
Next, in order:
main.docs/, after 1 and 2.Still wanted: someone with RADV for the Linux half. Nothing is running now; captures and logs stay on this machine.
Written with AI assistance (Claude Opus 5.5); replay results re-run from the three captures on this machine, counts taken from the replay output and the converted capture.
kirigayakazima commentedon Nov 29, 2026
claiming: VERIFY-D3D12-PAIR-INTEGRATION-1129. Windows integration check of #2601 with #2588 (pipeline worker), #2587 with #2591 (host and depth-plane changes), and the independent Windows boot cache-key regression #2599 on current main. Synthetic tests only.
kirigayakazima commentedon Nov 29, 2026
done: VERIFY-D3D12-PAIR-INTEGRATION-1129. Combined verification tree, base c8bf0e7. Tested #2601 at 2336020, #2588 at 53323d3, #2587 at 2757a1d, #2591 at 5b34777 and #2599 at 202ad50 together. All implementation files merged cleanly in that order. The two adjacent attribution rows in d3d12/README.md conflicted and both were kept.
Windows system with RTX 4070 Laptop GPU, driver 610.74. Full leonida-gpu library suite (locked, single test thread): main 525 passed / 46 ignored, combined 531 passed / 46 ignored. Separate local controls retained the PR tests and restored the old behavior:
Synthetic tests only. No retail FPS, boot, or image-quality claim. AI-assisted with OpenAI Codex (GPT-6).