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. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    status: queued ready-branch index on #2570 (66 ready branches; open PR slots: #2236 OPEN, #2238 OPEN; #2239 MERGED)

    PR slot status:

    1. build_dstorage_history: fit missing BPTC history slots across multi-level sibling mips (DSTORAGE-MULTILEVEL-MIP-FIT) #2236 (zmasi:fix/dstorage-multilevel-bcpack-fit @ ab4102efee): OPEN (APPROVED by lixonik)
    2. gpu-test-results: Radeon Pro Vega II (gfx906, Linux RADV) — GPU-VEGA20-RADV #2238 (zmasi:results/gpu-vega20-radv @ 126058daed): OPEN (verified clean by TheGeogeo & timbot103)
    3. rdna2spirv: lower computed I/J barycentrics under --f16-interp-fallback (SHADER-F16-INTERP-COMPUTED-IJ) #2239 (zmasi:fix/rdna2spirv-f16-interp-computed-ij): MERGED (9fac739da4)

    Carryover from #1608 (comment) plus completed #2570 additions so contributors scanning #2570 can avoid duplicate work. All 66 branches below are finished, tested, merge cleanly against main (c8bf0e7b6 / 3535eb5c4b), and pushed; each has its own claim and status comment on #1608 / #2570 and will open as PR slots free.

    Rust D3D12 runtime (d3d12/):

    • D3D12-LINUX-DXC-RUNTIME-SHADERS: zmasi:vega-d3d12-linux-dxc-runtime-shaders (9075a5e419, Coordinating who works on what (continued from #1608) #2570 (comment)) — Optional app-local x64 DXC (dxcompiler.dll + dxil.dll) runtime HLSL compilation on Wine/VKD3D-Proton routing all SM 5.1 [RootSignature] shaders through compiler::compile_named (0/11 -> 11/11 stock indirect & ambient GPU tests green on RADV + Windows 11 RTX 3090 FXC/DXC)
    • D3D12-RT-FG-ARENA-VA-STORM: zmasi:fix/d3d12-rt-fg-arena-va-storm (9f39297d6a, Coordinating who works on what (continued from #1608) #2570 (comment)) — Ray Tracing + DLSS FrameGen 0.1 FPS white-screen fix ([4 GiB, 2^37) write-watched pool below MEMORY_PAGES - 1, [2^37, 2^40) BVH arenas, per-frame arena backoff)
    • D3D12-ALIAS-CAST-R9G9B9E5: zmasi:perf/d3d12-gpu-alias-cast-r9g9b9e5 (5e53cef854, Coordinating who works on what (continued from #1608) #2570 (comment)) — Zero-copy CreateCommittedResource3 castable R9G9B9E5_SHAREDEXP SRVs (6.1x–12.6x faster GPU, 0 copies/frame, saving 260–515 MiB VRAM)
    • D3D12-SHADER-SLOT-VIEW-ADDRESSES: zmasi:feat/d3d12-shader-slot-view-addresses (edf60e3050, Coordinating who works on what (continued from #1608) #2570 (comment)) — Descriptor-heap SLOT_ADDRESSES (t251) + USER_TABLE_BASE, unblocking 59/64 -> 64/64 ray-tracing shadow-mask trace shaders
    • D3D12-SHADER-PAIRED-WAVE64-EXACTNESS: zmasi:fix/d3d12-shader-paired-water-and-wave64 (53a6ec172d, Coordinating who works on what (continued from #1608) #2570 (comment)) — Paired Wave64-on-Wave32 exactness (LEONIDA_LOOPS_WAVE=1 fixpoint lane_regions, whole-wave Sym::Own lane provenance, wide/sub-dword paired_lds, USER_DISPATCH_THREADS_X + spilled paired compute)
    • D3D12-SMOOTH-MOTION-PRESENT-QUEUE: zmasi:fix/d3d12-smooth-motion-present-queue (9bdb186e47, Coordinating who works on what (continued from #1608) #2570 (comment)) — NVIDIA -SmoothMotion 2.4 s 0x80000003 exit fix (3-buffer flip swap chain, hand-over-hand QUEUE_ORDER serialization, -SmoothMotion auto-FG guard, NvAPI_Unload DRS hardening)
    • D3D12-RUST-SAMPLER-FIXTURE-LOD: zmasi:vega-d3d12-sampler-copy-fixture (0b3b0052f3, Coordinating who works on what (continued from #1608) #2570 (comment)) — Valid MinLOD <= MaxLOD & ComparisonFunc in descriptor.rs byte-copy sampler fixture for VKD3D-Proton/RADV
    • D3D12-PROTON-MESH-TIER-PREFLIGHT: zmasi:vega-d3d12-shader-host-mesh-tier (103c1d6817, Coordinating who works on what (continued from #1608) #2570 (comment)) — Explicit D3D12_MESH_SHADER_TIER_NOT_SUPPORTED check in leonida-shader host test helper
    • 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 (3dc844f276)
    • 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 (a62b478526)
    • 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, scripts, and tools:

    AI-assisted.

  6. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

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

    AI-assisted.

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

  8. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

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

    AI-assisted.

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

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

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

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

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

  14. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    finding: D3D12-HLE-RPCRT4-UUID-PARSE-AND-OOM-BOUNDS (open for anyone, not claimed by this account)

    In d3d12/crates/leonida-hle/src/modules/rpcrt4.rs:

    1. parse() (L203-225, backing UuidFromStringA and UuidFromStringW) accepts malformed UUID strings that Win32 rpcrt4 rejects with RPC_S_INVALID_STRING_UUID (1705):
      • unmatched leading { with no closing } ("{1234abcd-00ef-4a5b-8012-3456789abcde"),
      • unmatched trailing } with no leading { ("1234abcd-00ef-4a5b-8012-3456789abcde}"),
      • arbitrary trailing characters after } ("{1234abcd-00ef-4a5b-8012-3456789abcde}trailing", because L210 returns as soon as the 33rd character is } without exhausting chars), and
      • misplaced or missing - separators anywhere before the 32nd hex digit (L212 unconditionally skips - at any position).
    2. UuidToStringA / UuidToStringW (L135, L152) return RPC_S_OK (0) with *out == null if allocate() returns null instead of RPC_S_OUT_OF_MEMORY (14), and UuidCreate / UuidFromString* / UuidToString* use aligned as_ref() / write() on caller Guid pointers instead of read_unaligned / write_unaligned.

    AI-assisted.

  15. zmasi commented on Nov 28, 2026

    @zmasi
    Contributor

    claiming: D3D12-LOADER-TLS-DISP32-AND-PROTECT-BOUNDS

    Scope: d3d12/crates/leonida-loader/src/tls.rs — reject TLS slot indices whose index * 8 displacement overflows signed 32-bit lea r, [r + disp32] (index >= 0x1000_0000 u32 wrap and index >= 0x0800_0000 negative sign-extension), check i32::try_from(rel) in patch instead of truncating rel as i32, and validate tls.directory_rva, index_at, zero-length executable sections, and section RVA/size bounds before VirtualProtect / slice creation in redirect.

    AI-assisted.

  16. 1467 remaining items

  17. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    claiming: D3D12-GAME-ACTIONS-AND-WATCH-NO-STDERR-PANIC (ref @KelboLive's review on #2840) — replace \�println!\ with fallible \let _ = writeln!(std::io::stderr(), ...)\ in \game_actions::log\ (\d3d12/apps/leonida/src/game_actions.rs:395, called from the title frame hook and \leonida-game-actions\ thread so a closed stderr pipe also loses the \log.txt\ write) and
    un::watch\ (\d3d12/apps/leonida/src/run.rs:336, \LEONIDA_WATCH\ polling thread), with a closed-stderr subprocess regression test. AI-assisted (Gemini 4 Neon).

  18. andrew-ai commented on Dec 1, 2026

    @andrew-ai

    claiming: SMOOTH-MOTION-HELP — make -Help and -? on scripts/smooth-motion.ps1 show the profile query/on/off usage before loading NVAPI. This takes the Smooth Motion part of #2570 (comment) that #2853 explicitly left open. I will test the help path without touching a driver profile. AI-assisted (Codex).

  19. andrew-ai commented on Dec 1, 2026

    @andrew-ai

    done: SMOOTH-MOTION-HELP -> #2943

  20. andrew-ai commented on Dec 1, 2026

    @andrew-ai

    claiming: GAME-GATE-VERB-HELP — document the run, start and stop modes in the PowerShell help for scripts/game-gate.ps1, with examples for a measured run and a stop request. Taking the game-gate item from #2570 (comment), explicitly excluded from #2853. No game or GPU needed. AI-assisted (Codex).

  21. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    done: D3D12-GAME-ACTIONS-AND-WATCH-NO-STDERR-PANIC -> #2945. AI-assisted (Gemini 4 Neon).

  22. Sergentval commented on Dec 1, 2026

    @Sergentval

    status: D3D12-PANEL-ADVANCED — written, reviewed and run in the title; the branch is d3d12-panel-advanced on my fork (917ad59, on top of #2801's head). No pull request yet: the repository allows one open pull request for users without write access, and mine is #2801. I will open it as soon as #2801 is merged or closed; the claim stands.
    The same limit holds back D3D12-RUN-BUILD-LINE (see my note to wrexik above), so nothing of mine will collide with the adapter diagnostic in the meantime.

    🤖 Generated with Claude Code

  23. andrew-ai commented on Dec 1, 2026

    @andrew-ai

    status: GAME-GATE-VERB-HELP is implemented, tested (25 passing game-gate tests) and independently reviewed. Branch: https://github.com/andrew-ai/mandy/tree/docs/game-gate-verb-help at 3577789. GitHub declined a second upstream PR while #2943 is open. The claim stands; I will link the PR here when it opens.

  24. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    claiming: D3D12-LOADER-CRASH-NO-STDERR-PANIC — d3d12/crates/leonida-loader/src/crash.rs calls panicking eprint!/eprintln! in log_crash (line 69, before append_to_log) and inside report (lines 588, 624, 633 — invoked from extern "system" VEH/SetUnhandledExceptionFilter before append_to_log and inside the LEONIDA_CRASH_SAVE loop). On a closed stderr pipe this panics (aborting across extern "system") and loses crashes.log and LEONIDA_CRASH_SAVE dumps. Replace with fallible std::io::Write (let _ = write!/writeln!(std::io::stderr(), ...)) and write append_to_log before stderr in log_crash, with closed-stderr subprocess regression tests. AI-assisted (Gemini 4 Neon).

  25. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    claiming: D3D12-LOADER-PROFILE-AND-STACKS-SAFETY — fix thread handle leaks, unsigned CPU-time underflow, and closed-stderr panics in d3d12/crates/leonida-loader/src/profile.rs and d3d12/crates/leonida-loader/src/stacks.rs:

    1. profile.rs: add Drop on Thread so OpenThread handles are never leaked when write() fails early (e.g. File::create error) or profile() unwinds; check GetThreadTimes(...) != 0 and use saturating_sub for t.now - t.last / t.now - t.first so a failed query cannot underflow/panic in debug or wrap to u64::MAX in release; replace panicking eprintln! calls on the detached LEONIDA_PROFILE thread with fallible writeln!(std::io::stderr(), ...).
    2. stacks.rs: close each OpenThread handle via an RAII guard (and before stderr writes) and replace panicking eprintln! calls in dump_stacks with fallible writeln!(std::io::stderr(), ...).
      With unit and closed-stderr subprocess tests. AI-assisted (Gemini 4 Neon).
  26. NetZlash commented on Dec 1, 2026

    @NetZlash

    claiming: D3D12-RESIDENCY-PRESSURE-ATTRIBUTION — report physical-only pressure from the active hysteresis thresholds, without changing admission behavior. The current diagnostic mislabels 6 GiB free RAM / 5 GiB commit headroom as physical-only while recovering from pressure. Synthetic coverage will exercise entry, retention and recovery boundaries.

  27. wrexik commented on Dec 1, 2026

    @wrexik

    claiming: D3D12-DOC-PLAY-NVIDIA-INVOCATION — follow up the closed, unmerged #2925 with the review-requested direct invocation example for d3d12\scripts\play-nvidia.ps1, including its required -Exe argument. Documentation only; no game files.

  28. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    done: D3D12-LOADER-CRASH-NO-STDERR-PANIC -> #2946. AI-assisted (Gemini 4 Neon).

  29. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    done: D3D12-LOADER-PROFILE-AND-STACKS-SAFETY -> #2947. AI-assisted (Gemini 4 Neon).

  30. bobcatchris commented on Dec 1, 2026

    @bobcatchris
    Contributor

    claiming: D3D12-GPU-AWAKE-FENCE-REMOVED-OVERFLOW — d3d12/crates/leonida-gpu/src/host/awake.rs:207 computes fence.GetCompletedValue() + 2 <= value. On D3D12 device removal, ID3D12Fence::GetCompletedValue() returns u64::MAX (0xFFFF_FFFF_FFFF_FFFF), causing completed + 2 to panic with arithmetic overflow in debug builds (crashing leonida-card-awake and leaking the CreateEventW handle) and wrap to 1 in release builds (re-entering SetEventOnCompletion instead of exiting via GetDeviceRemovedReason). Handle u64::MAX explicitly, use saturating_add(2), guard the event handle with Drop, and add unit tests. AI-assisted (Gemini 4 Neon).

  31. Neofinal7 commented on Dec 1, 2026

    @Neofinal7

    claiming: D3D12-PLAY-EXISTING-PRECOMPILE-RT-OFF — enable the launcher's existing shader/pipeline precompile path in Play-GTA6.bat and keep the GTX 1660 profile's real ray tracing off.

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