Skip to content

Coordinating who works on what (continued from #1608) #2570

Backlog

Description

@lixonik

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.

Activity

  1. sodove commented on Nov 28, 2026

    @sodove
    Contributor

    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.

  2. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    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.

  3. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    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).

    • Gated 16-destination VOP3/SDWA omod (mul:2, mul:4, div:2) in Lower::valu16_op and �_interp_p2_f16 on COMPUTE_PGM_RSRC1 (
      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.
    • Red (4a54aed): cargo test -p leonida-shader --lib f16_omod_tests -- --test-threads=1 -> 1 passed; 3 failed on RTX 3090 D3D12.
    • Green (�4679c0767): 5/5 16_omod tests, 13/13
      ative::tests, and interpolated_f16_writes_the_op_sel_half_with_modifiers passed on NVIDIA GeForce RTX 3090 D3D12 + WARP + dxil.dll.

    AI-assisted.

  4. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    claiming: D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS -> d3d12/crates/leonida-hle/src/modules/kernel.rs:

    • Grow the GetModuleFileNameW buffer past MAX_PATH (up to 32768) and preserve thread GetLastError() inside host_override so long-path host modules cannot bypass HLE GetProcAddress overrides (WinHttpOpen, connect, CreateFileW) or clobber caller GetLastError(); ignore null lpProcName in host_override.
    • Resolve ordinal exports (#n, e.g. gameinput.dll #1 GameInputCreate) on pseudo-modules in GetProcAddress, reject null lpProcName and missing exports with ERROR_PROC_NOT_FOUND, and return TRUE from DisableThreadLibraryCalls on pseudo-module handles (matching runtime/shims/library_loader.cpp).
    • Normalize empty, trailing-slash, and trailing-dot module names in find_module so "" / "dir\\" pass through to the host instead of querying ".dll", and trailing dots follow Win32 loader rules ("kernel32.dll." -> "kernel32.dll", "kernel32." -> "kernel32").
    • Write GetModuleFileNameW / GetModuleFileNameA title paths via write_unaligned (avoiding slice::from_raw_parts_mut UB/panics on uninitialized or odd-byte-aligned caller buffers) and clear LastError to ERROR_SUCCESS when not truncated.

    AI-assisted.

  5. adrianmjim commented on Nov 28, 2026

    @adrianmjim

    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 to LEONIDA_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=0 turns 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 until on_retire has run before it takes its command-list epoch, and copy_title_range (an acceleration structure's whole range) is never answered from inside a larger view. Tests: geometry_views cases 17 and 18. 16 of 98 checks fail on main d44285197; 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_buffers marks a list's DrawViews block stale for any call that writes a slot, and OMSetRenderTargets for 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 one make_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 (ctest d3d12_draw_views_sharing): 1000 draws with the same IASetVertexBuffers make 1000 blocks on main and 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.

  6. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    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.rs prefixes): 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.

  7. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    claiming: VERIFY-2285, VERIFY-2266, VERIFY-2264, VERIFY-2263, VERIFY-2262 (Windows 11)

    AI-assisted.

  8. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    claiming: D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT

    Scope: d3d12/crates/leonida-hle/src/modules/dsp.rs (chad.dll) — track Dsp and Stream handles via monotonic IDs + Arc ownership so XDspDisconnect before XDspDeactivate, double-disconnect/deactivate, and stale handles return E_INVALIDARG instead of UAF/double-free; replace &mut Status with atomic fields (Ordering::Release on completed) serialized per stream; handle unaligned Command / output / out-pointers safely; and accept base_length == 0 while rejecting max_streams == 0 and max_channels == 0 per runtime/shims/chad.cpp.

    AI-assisted.

  9. adrianmjim commented on Nov 28, 2026

    @adrianmjim

    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).

  10. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    Updates on the three gfx906 lanes claimed in #1608 before the comment cap:

    AI-assisted.

  11. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    done: VERIFY-2285, VERIFY-2266, VERIFY-2264, VERIFY-2263, VERIFY-2262 -> results in #2285, #2266, #2264, #2263, #2262

    AI-assisted.

  12. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    claiming: D3D12-GPU-ROOT-DESERIALIZER-CONSOLE-FLAGS -> d3d12/crates/leonida-gpu/src/root.rs:

    • Strip Xbox high-byte console root-signature flags (0xff00_0000) from DXBC RTS0 chunks (versions 1.0..1.2) and recompute non-zero DXBC container checksums in create_deserializer (d3d12_xs!D3D12CreateRootSignatureDeserializer) before forwarding to host d3d12.dll (matching runtime/shims/d3d12_xs_rootsig.cpp, while failing closed on malformed containers/chunk tables or mismatched incoming hashes).
    • Guard without_console_flags in serialize_versioned to root-signature versions 1.0..1.2 (1..=3), and clear non-null output pointers (out, blob, error) on early E_INVALIDARG / E_NOTIMPL failures.

    AI-assisted.

  13. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    status: D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT — pushed to zmasi:fix/d3d12-hle-dsp-handle-lifetime (5e48f2b26f1bc935e086e6fa6b0d4427e643d7ea, based on 6c7f79343, claim #2570#issuecomment-7237957634)

    • Tracked live Dsp connections and Streams by monotonic non-zero handle IDs (RwLock<HashMap<usize, Arc<...>>>) with Arc<Dsp> ownership on Stream, preventing UAF when XDspDisconnect precedes XDspDeactivate, double-free on repeated XDspDisconnect / XDspDeactivate, and wild-pointer dereferences on stale or foreign handles.
    • Converted Status fields to AtomicU32 / AtomicI32 with per-stream submission serialization and Ordering::Release on completed, eliminating &mut Status aliasing and concurrent ticket data races.
    • Used read_unaligned / write_unaligned on FFI structs/out-pointers, cleared outputs on failed calls, zeroed command.output via cast::<u8>() after checked_add(byte_len), and accepted base_length == 0 while rejecting max_streams == 0 and max_channels == 0 (runtime/shims/chad.cpp).
    • Verified Red (3/3 new tests failed on 6c7f79343, including misaligned pointer dereference abort and 126 != 128 lost concurrent tickets) -> Green (186 leonida-hle tests pass, 0 clippy warnings in dsp.rs across default and diagnostics).

    AI-assisted.

  14. Tyrannys commented on Nov 28, 2026

    @Tyrannys
    Contributor

    @zmasi a note on RT-VK-DEVICE-MARKERS-SYNC-WAW (zmasi:fix-vk-device-markers-sync-waw, 77670e6f) and #2489, which also changes vulkan_device_markers.h (the marker buffer is CONCURRENT over the device's queue families) and vulkan_device_markers_test.cpp.

    • No conflict. git merge-tree of 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 uses VK_QUEUE_FAMILY_IGNORED on a slot of its own queue, which is fine on a CONCURRENT buffer too.
    • One MSVC build error on your branch (not from the merge). runtime/test/vulkan_device_markers_test.cpp:81, writes.push_back({command_buffer, stage, offset, marker, false}); in write_marker, fails with C2397: brace-initializing the std::uint64_t stage field from a VkPipelineStageFlagBits is a narrowing conversion. GCC/Clang accept it. std::uint64_t(stage) fixes it.
    • With that one change, the merge of both branches builds on Windows 11 / MSVC (VS 18), RelWithDebInfo, and vulkan_device_markers, vk_device_markers and depth24_scratch_sharing pass (3/3). vk_device_markers runs 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)

  15. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    status: D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS -> branch https://github.com/zmasi/leonida/tree/fix/d3d12-hle-kernel-loader-parity-bounds (ea369dba2a2d99fd2869b3f1100c0d5ecae45194 on main 16e90d1ff)

    • Claim: Coordinating who works on what (continued from #1608) #2570 (comment)
    • Fix (d3d12/crates/leonida-hle/src/modules/kernel.rs):
      • Grow host_override's GetModuleFileNameW buffer up to 32768 UTF-16 code units, ignore null lpProcName, and preserve thread GetLastError() across GetProcAddress (including lazy REGISTRY initialization and GetModuleFileNameW) so long-path host modules cannot bypass HLE overrides (WinHttpOpen, connect, CreateFileW) or clobber caller GetLastError().
      • Resolve #ordinal exports (< 0x10000, e.g. gameinput.dll #1 GameInputCreate) on console pseudo-modules in GetProcAddress, set ERROR_PROC_NOT_FOUND (127) when lpProcName is null or unimplemented, and return TRUE (1) from DisableThreadLibraryCalls on pseudo-module handles.
      • Normalize empty, trailing-slash, and trailing-dot module names in find_module ("" / "dir\\" pass through to the host instead of querying ".dll", and trailing . characters strip without appending .dll).
      • Write GetModuleFileNameW / GetModuleFileNameA title paths via write_unaligned (avoiding slice::from_raw_parts_mut UB/panics on uninitialized or odd-byte-aligned caller buffers) and clear LastError to 0 (ERROR_SUCCESS) when not truncated.
    • Red (16e90d1ff): all 4 new modules::kernel regression 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, and title_module_filenames_accept_unaligned_uninit_buffers_and_clear_last_error with slice::from_raw_parts_mut alignment abort 0xc0000409).
    • Green (ea369dba2): cargo test -p leonida-hle -- --test-threads=4 (185 unit + 1 integration passed, 0 failed), 0 clippy warnings in kernel.rs (default & diagnostics), check_no_game_data.py and test_text_write_line_endings.py clean; held at open-PR cap.

    AI-assisted.

  16. 481 remaining items

  17. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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 at 0299208f3 overrides that choice with win64 and fails before the application starts. I tested preserving the caller’s explicit wow64 while 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.

  18. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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::CreateCommittedResource3 castable-format view path noted in d3d12/docs/findings.md ("The copies behind aliased views", 390 MiB/frame across 86 copies of 59 R9G9B9E5_SHAREDEXP views placed in shader-written R32_UINT/R32_SINT textures, 1.9-2.0 ms/frame on GPU with LEONIDA_ALIAS_DIRECT=1 and 3.6 ms/frame through buffers):

    • Create shader-written single-sample R32_UINT / R32_SINT host textures via ID3D12Device10::CreateCommittedResource3 with DXGI_FORMAT_R9G9B9E5_SHAREDEXP in pCastableFormats when D3D12_FEATURE_D3D12_OPTIONS12::RelaxedFormatCastingSupported is available.
    • View placed R9G9B9E5_SHAREDEXP SRVs directly on the source texture in place (eliminating the per-read GPU texture copies and duplicate VRAM allocations), gated by LEONIDA_ALIAS_CAST (on by default, =0 fallback, 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.
    • Verify with deterministic RTX 3090 D3D12 GPU tests (including D3D12 debug-layer validation, multi-mip/cube/3D views, LEONIDA_AB toggling, address replacement, and simultaneous UAV+SRV fallback) and a synthetic RTX 3090 D3D12 timestamp benchmark of the 59-view / 86-read 390 MiB/frame workload.

    AI-assisted.

  19. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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" because USER_VIEW_ADDRESS only serves constant-offset table entries. Add SLOT_ADDRESSES (a per-view-heap-slot 64-bit title-address table kept by HostHeap across static, dynamic, and placed acceleration-structure/buffer views) read by Lower::view_address and Lower::flat via clamped heap slot index, and feed active heap structure addresses into State::memory_ready.

    AI-assisted.

  20. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    claiming: VERIFY-2601 (Windows 11)

    AI-assisted.

  21. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    done: VERIFY-2601 (ref #2570 (comment)) -> result in #2601

    AI-assisted.

  22. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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_GenerateTiles 1aa247ed3653b616 and paired.rs Wave64 lowering on 32-lane hosts; disjoint from D3D12-SHADER-SLOT-VIEW-ADDRESSES):

    1. Post-per-lane-loop sub-warp divergence & per-lane loop exits (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-loop waveActiveBallot / exchange_halves / waveReadLaneFirst / v_mbcnt as 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 (1aa247ed3653b616 in the "without skips" 2-wave form); inside the loop, lane_regions also left a per-lane loop-exit block marked all_lanes == true because a block post-dominates itself. Route post-per-lane-loop cross-half / wave programs to host-wave loop convergence or paired (0 group barriers), and allow BeforeWide paired fallback on non-2D groups (1-D / multi-wave) that every other form refused without enabling widen's barriers on them.
    2. Whole-wave section symbolic lane provenance (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 under s_or_saveexec -1) into per-lane identity copies (Shape::Value) instead of fixed-lane reads (Shape::Lane).
    3. paired.rs v_readlane_b32 bypassing Section::reads and restored_lanes (emit/paired.rs): paired_inst intercepted v_readlane_b32 before valu(), rejecting asymmetric whole-wave reductions read from a single lane after EXEC restore (Section::reads) and parked-scalar restores (restored_lanes) with "a whole-wave section step the simulation does not follow".
    4. Extended bounds-checked LDS operations in paired.rs: Support ds_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-dword ds_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".
    5. Thread-counted dispatches (USER_DISPATCH_THREADS_X) in paired mode (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 track partial_active per console lane across LaneState, paired_f64_constant_sum, scc_some, and wave_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.

  23. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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):

    1. Low-VA [4 GiB, 2^37) exhaustion when Streamline/NGX initializes in the 3D world:
      • upload::reserve currently constrains every allocation — both command-list upload blocks (Upload::new, whose raw CPU addresses are passed to shaders and indexed in the 2^21-page MEMORY_PAGES directory covering [4 GiB, 2^37)) and Memory'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.
      • As soon as Streamline receives its first constants and depth/motion tags in the 3D world (fg::present_start), NGX/CUDA reserves large virtual-address ranges in low VA alongside xmem title mappings (DLSSGFlags::eRetainResourcesWhenOff + continued set_constants/set_tag_for_frame keep those reservations alive even with Reflex off or generated frames set to 0), exhausting contiguous 64 MiB holes in [4 GiB, 2^37).
    2. Per-dispatch VirtualAlloc2 storm under MEMORY mutex (~0.1 FPS) + unmapped BVH zero-reads (white picture) + 64 MiB VA leak:
      • In memory::ready (memory.rs:955) and Memory::map (memory.rs:390), every BVH builder and ray-tracing dispatch (thousands per frame across recording workers) calls Memory::another() -> upload::reserve(64 MiB) (VirtualAlloc2) while holding the global MEMORY lock, with no per-frame failure backoff — stalling recording for seconds per frame (~0.1 FPS).
      • Unmapped BVH/ray-traced pages remain 0 in directory (reading as zeros / ray misses while -RayTracing disables the ambient stand-in clamp, blowing scenes out to white), and Memory::another (memory.rs:405) also leaks the 64 MiB VirtualAlloc2 reservation whenever shadow::by_address / Memory::number returns None.

    Planned fix (disjoint from active #2570 claims on host.rs and play-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-addressed Upload::new blocks (with window-full backoff + heap fallback), and add reserve_out_of_reach ([2^37, 2^40) write-watched VA first, then LEONIDA_LOW_EARLY_MB / [4 GiB, 2^37)) plus release for Memory's directory and 64 MiB arenas.
    • memory.rs: allocate Memory's directory and 64 MiB arenas via reserve_out_of_reach, memoize Memory::another failures per frame so dispatches never storm VirtualAlloc2 under MEMORY, and release reservations if host-copy creation or numbering fails.
    • fg.rs: lift the default LEONIDA_BVH_BUILDER lockout in fg::wanted() while keeping LEONIDA_FG_WITH_RT=0 as an explicit opt-out, with deterministic Red-to-Green synthetic tests on Windows 11.

    AI-assisted: yes

  24. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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.

  25. kirigayakazima commented on Nov 29, 2026

    @kirigayakazima
    Contributor

    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.

  26. bobcatchris commented on Nov 29, 2026

    @bobcatchris
    Contributor

    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).

  27. kirigayakazima commented on Nov 29, 2026

    @kirigayakazima
    Contributor

    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.

  28. zmasi commented on Nov 29, 2026

    @zmasi
    Contributor

    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, PCI 0000: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 build 4522cc1a8b1347f). 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 shipped libvkd3d helper 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; enabling diagnostics separately 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.

    Stock suite Listed Pass Fail or validation-red Other
    Shader 358 287 4 PSO refusals; 1 mesh validation abort 16 partial without validator; 24 early skips; 4 ignored; 22 excluded
    GPU 571 501 17 assertions; 2 additional libtest ok cases with validation errors 3 early skips; 46 ignored; 2 excluded
    HLE 213 208 2 1 child-helper skip; 2 ignored
    HLE DLL-search integration 1 1 0 —

    What 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.dll loaded. 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_UINT to a textureStore.f32 shader. 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 D3DCompile rejected InterlockedOr for the indirect clamp and batch, InterlockedAdd for the worker, and isnan for 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 compiler E5017 on 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_recorded matched its bytes but reported SYNC-HAZARD-READ-AFTER-WRITE between two copies of the same seven bytes. The app transitions the destination to COMMON before 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 missing WSAConnectByList export and a filesystem test assuming NTFS’s hard-link limit.

    Tested fixes on the fork; no new PRs.

    • Sampler byte-copy fixture, 0b3b0052f: the stock fixture wrote FLT_MAX to 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.
    • Mesh-tier preflight, 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.
    • Launcher WoW64 follow-up, b5ca5c6d8, on top of Linux: build leonida.exe and run it under Proton or Wine #2577: main first calls an absent standalone wineboot; Linux: build leonida.exe and run it under Proton or Wine #2577 uses Wine’s own bootstrap, but forces win64 even on a pure-64-bit installation requesting wow64. Preserving explicit wow64 passed 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.

  29. Mike7581 commented on Nov 29, 2026

    @Mike7581
    Contributor

    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)

    • Started by renderdoccmd capture (injection): Microsoft Defender reports Behavior: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.
    • As a Vulkan layer only (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)

    • Capture: frames 1-3 written, 10.9-11.9 MB; the game keeps 27-29 frames/s with the layer on, then ends in the baseline's crash. MEASURED, 3 runs.
    • Replay with gfxrecon-replay on the same machine, one replay per cell:
    capture made with -m remap (default) -m rebind -m remap --validate
    no deviation stalls after the first host-pointer import, no frame end in 60 s device lost stalls; null host pointer in vkGetMemoryHostPointerPropertiesEXT and VkImportMemoryHostPointerInfoEXT, 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 use
    LEONIDA_SLOT133_IMPORT=0 3 of 3 frames device lost device lost; before it, the same 8 pending command buffers and 5 buffers destroyed in use
    a local switch that skips every host-pointer import (not on any branch) 3 of 3 frames device lost 3 of 3 frames, 0 validation messages
    • READ IN CODE: LEONIDA_SLOT133_IMPORT=0 makes every title-placed buffer take the shadow-buffer fallback instead of a VK_EXT_external_memory_host import (runtime/shims/d3d12_vulkan_device.cpp:9202, create_host_buffer, at b1f7f3de7). 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.
    • In the capture that replays clean (third row), MEASURED from the converted file: 15 opaque buffer-device-address records, 3 presents, no sparse binds, no mesh-shader draws, no host image copies. So buffer device addresses survive capture and replay on this driver; sparse binding and mesh shaders are not exercised by these frames.

    The capture run behind the second row:

    RUN gfxr-slot133 | 2026-11-28 19:08 UTC | Mike7581 | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        b1f7f3de7 + none | shaders: as the baseline (issuecomment-7243961733)
    MACHINE:     NVIDIA GeForce RTX 4050 Laptop GPU, 6 GB, laptop | 621.40 | Windows 11 Pro 26200 | 16 GB
    RECIPE:      documented ("Windows, NVIDIA") + DEVIATIONS: LEONIDA_SLOT133_IMPORT=0 | precompile: no
    OS/DRIVER:   as the baseline
    TARGET:      frames 1-3 captured, then replayed | PREDICTED (written before the run): none written
    MEASURED:    capture 11.6 MB, replay 3 of 3 frames with -m remap | duration 159 s | up to 29 frames/s
    END:         process crash (read access violation in the title), read from the log
    CACHES:      warm: not cleared since the baseline runs | RUN 1 of 1 with this recipe
    INSTRUMENTS: GFXReconstruct capture layer, frames 1-3
    VERDICT:     no prediction
    

    Next, in order:

    1. Repeat the validated replays three times each, to tell a replay timing effect from a real ordering error in the pending-command-buffer messages.
    2. Capture a menu frame: a later frame range, or GFXReconstruct's hotkey trigger, in the first-run UI. On this machine the game does not reach the world before it crashes (baseline), so a world frame needs another machine or a later main.
    3. The off-by-default setting and the recipe page in 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.

  30. kirigayakazima commented on Nov 29, 2026

    @kirigayakazima
    Contributor

    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.

  31. kirigayakazima commented on Nov 29, 2026

    @kirigayakazima
    Contributor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions