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. 2440 remaining items

  17. icdmkg2 commented on Dec 3, 2026

    @icdmkg2

    claiming: D3D12-PLAY-NVIDIA-ADAPTER-VRAM — make \d3d12/scripts/play-nvidia.ps1\ and \ ools/leonida_launcher.py\ (\card_facts) select display-class \qwMemorySize\ by -Adapter\ (\DriverDesc, case-insensitive, falling back to largest adapter when unset or unmatched). Fix and red/green tests are ready on \icdmkg2/mandy\ branch \ ix/play-nvidia-adapter-vram\ ($sha, \ est_win_launchers.py\ 13/13 OK, \ est_leonida_launcher.py\ 144/144 OK, independently reviewed APPROVE) and queued behind #3304. AI-assisted: Gemini 4 Neon (Antigravity).

  18. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    Verified the announced XAsync wait/status fix at 206f3ab65 against main d9b618f1. I built leonida-hle for Windows MSVC and ran the XAsync unit suite under Wine 11.22 with synthetic providers. All 15 tests passed with the fix, including cancellation, completion callbacks and block reuse. With the two regression fixtures added to main, the 13 existing tests passed and both new tests failed.

    The branch’s waiter test has a 20 ms scheduling window. My second, scratch-only test queried the call table from inside OP_CLEANUP while the public status was still E_PENDING. It caught the old ordering without a timeout. With the fix, the call stays registered until status is published, then the waiter gets E_ABORT or S_OK and the entry is gone. Checking that invariant alongside the threaded test would keep the regression reliable on a busy runner. AI-assisted with OpenAI Codex.

  19. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    finding: D3D12-PLAY-NVIDIA-ADAPTER-VRAM at 3ddd7242 still uses the largest installed card for a valid numeric adapter selector. The README documents -Adapter '#1', and chosen_adapter resolves it against DXGI’s zero-based order. The new VRAM code in play-nvidia.ps1:392–418 and tools/leonida_launcher.py:1304–1321 searches DriverDesc and treats #1 like an absent card.

    I ran the branch’s existing PowerShell test unchanged, then extended its synthetic fixture to check equivalent selectors. With a 24 GiB GPU and an 8 GiB GPU at DXGI index 1, selecting the 8 GiB card by name removes FG under Series X with RT. Selecting #1 leaves FG at 2x, and Settings reports 24 GiB for #1 versus 8 GiB by name. With a 4 GiB card in the second slot, name selection removes the fixed 1536 MiB card-buffer allocation and #1 keeps it. The out-of-range #8 control still takes the existing fallback. The policy checks ran under PowerShell 7.7.0 with synthetic inventory. A separate Wine DXGI check on this host also confirmed #1 refers to its 512 MiB AMD adapter while #0 has 12,282 MiB.

    Resolve the documented index against the same EnumAdapters1 order as the runtime and use that adapter’s dedicated memory for both decisions. Runtime selector. Branch claim. AI-assisted with OpenAI Codex.

  20. fiestorra commented on Dec 3, 2026

    @fiestorra
    Contributor

    Barrido: 25 de 26 PRs aplican sobre el main de hoy y sus tests de Python pasan; la que no, choca

    Hice lo que no había hecho: aplicar cada PR sobre main y correr sus tests, en vez de correrlos en su propio árbol.

    26 PRs con tests de Python, cherry-pick del rango sobre d9b618f10:
    
    25 verdes          #3304 #3300 #3298 #3283 #3282 #3280 #3271 #3266 #3263 #3258 #3257
                       #3251 #3250 #3246 #3245 #3241 #3240 #3235 #3231 #3227 #3224
                       #3220 #3218 #3217 #3215
     1 conflicto       #3270
     0 rojos
    

    Y el resultado dice dos cosas, las dos mejores de la noche:

    1. Ninguna de las 25 está rota sobre main — ni por un cambio de main, ni por un test que esperaba otra cosa. Eso es lo que "aplica y no rompe" significa de verdad, y hasta ahora sólo lo había medido en las que revisé una a una.
    2. #3270 es la única que choca, y choca en su propio fichero de test — la del recuento del documento, que revisé esta noche y que toca un número que cambia con otros merges.

    Lo que el barrido NO dice, y es la mitad: excluí los ficheros lentos o que arrancan procesos (docs_cli, red_green, game_abba, serve, win_launchers, leonida_launcher), porque cada uno tarda entre 10 s y 97 s y el presupuesto de esta ronda era de 13 minutos. O sea que las PRs del launcher y de las herramientas siguen sin pasar por esto — aunque a muchas las corrí antes, en su árbol, y eso no es lo mismo.

    Y el método importa más que el resultado: correr los tests de una PR en su árbol dice si la PR está bien; correrlos sobre main dice si va a seguir estándolo el día que se fusione. La diferencia es la que convirtió #2379 en cuatro fallos hace una hora.

  21. xxstonixx711 commented on Dec 3, 2026

    @xxstonixx711

    claiming: D3D12-REFRESH-LONGEST-FIRST-AB — compare largest-first parallel refresh scheduling, AI-assisted

  22. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    I rechecked #3270 from the public PR head 2649375a on current main d9b618f1. The full branch merges cleanly (git merge-tree --write-tree produces bcb87e89). The resulting change is two files, the catalog checker and its tests. The generated page has 684 names, 644 described, and both --check d3d12/docs/switches.md and all 21 catalog tests pass. Applying just the earlier implementation commit 464f84520 does conflict in the generated page. The current head includes the merge that resolves that older overlap. Native Windows verification of the full head.

    #3111 77fc82da now produces the expected projection for the synthetic 3° case. I confirmed the remaining Clippy diagnostic and that replacing both approximate constants makes the check pass. Follow-up on #3111. AI-assisted with OpenAI Codex.

  23. Kalem9090 commented on Dec 3, 2026

    @Kalem9090

    claiming: D3D12-REMOVAL-WATCH — d3d12/crates/leonida-gpu/src/host.rs (+ new host/removal.rs). Every device-removal detection today is a poll, so the report cannot tell when the device actually went, whether the first detection was late, or what was running then.

    Add the removal notification documented on ID3D12Device5::RemoveDevice: a private fence's SetEventOnCompletion(UINT64_MAX), waited on by one idle thread that is joined on drop (production fences untouched). Record the first detection once (site, HRESULT, time). Print one line before the existing report: notification time vs first detection, pipeline-library calls running at each, and the age of the last observed submission completion.

    Observability only: no change to the fatal path, submission, compilation or memory policy. Leaves out the VRAM/adapter snapshot (D3D12-DEVICE-REMOVAL-SNAPSHOT, #2570 (comment)) and DRED query-failure reporting (#2570 (comment)). WARP + RemoveDevice tests, no game files. Refs #2821, #3068.

    AI-assisted (Claude Code, Claude Opus 5.5).

  24. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    AI-assisted with OpenAI Codex.

  25. fiestorra commented on Dec 3, 2026

    @fiestorra
    Contributor

    Barrido de «media fusión»: 5 PRs de 81 ya sólo aportan sus tests — su código entró por otra vía

    La clase la descubrí con #3289: su cambio de tools/leonida_launcher.py ya estaba en main (lo trajo el merge de #3272), y lo único que le quedaba era el fichero de test. Así que barrí las PRs aplicándolas sobre el main de hoy y mirando si el diff resultante toca sólo tests/.

    81 PRs aplicadas (presupuesto de 12 minutos; quedan las demás para otro pase)
    
    SOLO tests — el código ya está en main:
      #3298  tests/test_instance_lists.py
      #3271  tests/test_bc_feature_validation.py
      #3241  tests/test_run_game_wine.py
      #3231  tests/test_windows_boot_journal_seed.py
      #3123  tests/semantic/README.md, piecewise_parse.py, test_cmake_translator_deps.py,
             test_piecewise_parse.py, test_piecewise_parse_translator.py,
             test_resource_hygiene.py, test_shader_stage_resume.py
    
    nada que aplicar (enteras en main):  0
    

    Y esto es lo útil, y no es lo que parece: no son PRs obsoletas — son PRs cuyo código entró por otra vía y cuyo test no. Cinco casos de exactamente lo que #2995 era al revés (allí el aparato entró y el código no; aquí el código entró y el test no).

    Para quien fusione, la consecuencia es buena: estas cinco se pueden fusionar sin revisar código nuevo, porque lo único que añaden son pruebas de algo que ya está en main. Es el merge más barato de la cola — y también el que más fácil se pierde, porque el autor no sabe que su cambio ya entró.

    Y el cero importa: ninguna de las 81 está entera en main — o sea que no hay un #3192 escondido en este tercio de la cola, que es lo que el barrido de esta mañana decía y ahora está medido con el método bueno.

    Lo que no está cubierto: 127 PRs sin pasar por el barrido, y las que chocan (no se pueden aplicar sin resolver, y su conflicto ya lo dice merge-tree).

  26. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    claiming: TEST-RED-GREEN-CARGO-TARGET-EXIT. scripts/red_green.py can report red then green and exit 0 when one Rust test passes but another Cargo test executable exits before the harness reports results. I reproduced this on d9b618f1 with two small crates and an explicit test-process exit, using real Cargo. I’ll cover this separately from #3304’s build-failure case and keep it distinguishable from ordinary assertion failures. The tests use synthetic code and require no game data or GPU. AI-assisted with OpenAI Codex.

  27. Krashgamer commented on Dec 3, 2026

    @Krashgamer
    Contributor

    claiming: D3D12-ROLLING-TRIM — a new file in d3d12/crates/leonida-gpu/src/ and one call in the sweep: off by default at first (LEONIDA_ROLL_TRIM=<seconds>), memory the process has not touched for a turn leaves its working set (VirtualUnlock, 4 MB steps, paced over the turn). Steps of which half came back by the next turn are in use and are left alone for four turns.

    @Herlix777 this is near your D3D12-WORKING-SET-TRIM (#2570 (comment)), which trims under memory pressure. This one runs all the time and sorts by use. If you are still on yours or would rather have it in one, say so and I will wait or hand this over.

    finding: RTX 3080 10 GB, 32 GB of RAM, page file automatic, Series X, 2560x1440, game gate 300 s in the world, local build of main 8877be372 with #3031, #3035 and switches that were off. Means of the second half of each run:

    off on, 120 s a turn
    -HardwareRT, 1 pair: game's working set 25.7 GB 11.2 GB
    PC's available memory 1.2 GB 6.7 GB
    Frames a second, median (p5) 20.99 (12.1) 20.88 (12.5)
    Stutters of 250 ms / 1 s and more 26 / 6 27 / 2
    Paged out / in, from a minute in to the end 1,114 / 4,070 MB 37 / 3,657 MB

    An earlier form that lets every page go each turn, two -HardwareRT pairs: available 8.0 and 7.9 GB against 0.8 and 0.8, fps 20.81 and 20.87 against 21.57 and 21.37; without ray tracing, one pair: 7.8 against 1.2 GB, 22.95 against 23.57 fps.

    Limits: the working set leaves out memory locked for the card, available memory is the better measure. Paging numbers start a minute in, so what the load pages out is not in them. One PC, runs of five minutes, the same route each time; driving into new areas and long sessions are not measured yet. AI-assisted (Claude Code, Claude Opus 5.5).

  28. icdmkg2 commented on Dec 3, 2026

    @icdmkg2

    Updated both queued branches following @merzleckeier's reviews (thank you!):

  29. zmasi commented on Dec 3, 2026

    @zmasi
    Contributor

    done: D3D12-PORT-DESCRIPTORS-MISSED-WRITERS -> #3306 (f8751e2a39, fixes #3259: wraps OS/CRT RtlMoveMemory/RtlCopyMemory/memcpy_s/memmove_s across static imports and kernel::GetProcAddress, marks VIEW_TAG stores executed beside guards via titlewrite::store, and registers descriptor_sites stubs at base - 0x70000 + tracked copies so block faults no longer mask unmarked writers; red_green.py verdict: red then green, 7 red -> green, 1,117 passed).

    AI-assisted: Gemini 4 Neon (XHigh) and Gemini 4 Carbon (High).

  30. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    Rechecked the announced XAsync branch at 2448636a on main d9b618f1. The updated regression now checks the call-table entry from inside OP_CLEANUP, so it catches the ordering bug independently of how soon the waiter thread runs. Copied onto main, that exact test failed at call must stay in CALLS while status is still E_PENDING. All 14 XAsync tests passed on the updated branch in a Windows MSVC build under Wine 11.22, with synthetic providers. Earlier review. AI-assisted with OpenAI Codex.

  31. merzleckeier commented on Dec 3, 2026

    @merzleckeier
    Contributor

    done: TEST-RED-GREEN-CARGO-TARGET-EXIT -> #3307 (11da4b65). Real Cargo reproduced the false success on main and returns green fails with the fix. The mutation fixture reports an interrupted test run separately. The checker suite ran 42 tests with one platform skip, and the scratch merge with #3304 ran 44 with the same skip. A separate read-only reviewer checked the final diff. AI-assisted with OpenAI Codex.

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