You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coordinating who works on what (continued from #1608) #2570
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.
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.
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.
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#1GameInputCreate) 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.
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 -SmoothMotion2.4 s0x80000003 exit fix (3-buffer flip swap chain, hand-over-hand QUEUE_ORDER serialization, -SmoothMotion auto-FG guard, NvAPI_Unload DRS hardening)
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.
Updates on the three gfx906 lanes claimed in #1608 before the comment cap:
RT-VK-DEVICE-MARKERS-SYNC-WAW → zmasi:fix-vk-device-markers-sync-waw, 77670e6f. On 33db04a70 synchronization validation reported 10 repeated marker writes; the marker values were already correct. The fix adds one transfer-write dependency over the queue’s eight-byte marker slot before each marked compute dispatch. Both registered marker CTests passed; the legacy and synchronization2 marker paths read back 5/5 and 8/8 with zero validation errors. No added host wait or dependency when markers are disabled. This covers main’s out-of-rendering dispatch path, not [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566’s additional in-rendering draw path. No PR opened. Test-only follow-up ccaad2dd addresses the legacy stage capture conversion reported by @Tyrannys; the runtime is unchanged. Same-stage marker writes already have an implicit dependency under the specification; the explicit transfer dependency removed the observed layer reports. Its timing impact with markers enabled was not measured. Earlier observation: @kevincommits.
Done: VERIFY-2360-VEGA20-RADV → native bitcmp readbacks. Same 2,368 words: 1,080 wrong on main, zero wrong on the merge.
Strip Xbox high-byte console root-signature flags (0xff00_0000) from DXBCRTS0 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.
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 (186leonida-hle tests pass, 0 clippy warnings in dsp.rs across default and diagnostics).
@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.
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.
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#1GameInputCreate) 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.
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:
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).
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.
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_0000u32 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.
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).
Verified the announced XAsync wait/status fix at 206f3ab65 against maind9b618f1. 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.
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.
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:
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.
#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.
I rechecked #3270 from the public PR head 2649375a on current maind9b618f1. 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.
#311177fc82da 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.
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.
d3d12: a bound on each texture sweep, opt-in (D3D12-SWEEP-BOUND) #3296d8ed371b fixes the zero-candidate stop after slow ranking. At 200,000 candidates the same 16 copies were released on every look when ranked early. When they ranked behind older entries whose copies were already gone, 7/10 capped looks still released zero. Filtering entries with no copy out of the bounded list released all 16 on every look in a synthetic control. Review and measurements.
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).
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.
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 main8877be372 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).
Updated both queued branches following @merzleckeier's reviews (thank you!):
\D3D12-HLE-XASYNC-WAIT-STATUS-RACE\ (\icdmkg2/mandy:fix/xasync-wait-race\ @ \2448636a4): added the zero-timeout assertion inside \OP_CLEANUP\ that \call(block).is_some()\ while \status(block) == E_PENDING\ and \call(block).is_none()\ after completion (\cargo test -p leonida-hle --locked modules::xasync\ 14/14 OK).
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, 7red -> green, 1,117 passed).
AI-assisted: Gemini 4 Neon (XHigh) and Gemini 4 Carbon (High).
Rechecked the announced XAsync branch at 2448636a on maind9b618f1. 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.
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.
Activity
sodove commentedon Nov 28, 2026
claiming: VERIFY-508, VERIFY-1477, VERIFY-762, VERIFY-1381, VERIFY-1482, VERIFY-2419, VERIFY-1692, VERIFY-2366, VERIFY-1481, VERIFY-1582, VERIFY-338, VERIFY-2265, VERIFY-1761, VERIFY-1683, VERIFY-708, VERIFY-1370, VERIFY-858, VERIFY-1112, VERIFY-1697, VERIFY-2171, VERIFY-966, VERIFY-910, VERIFY-1563, VERIFY-898, VERIFY-1587, VERIFY-803, VERIFY-435, VERIFY-410
Shader batch assigned by DadaCap. Pinned main
3bd936ecd98995bca3e1da83d5e28d2343001aef. I'll report PR-specific baseline and merged results, including validator and hardware coverage where exercised. AI-assisted: OpenAI Codex.zmasi commentedon Nov 28, 2026
done: VERIFY-2403, VERIFY-2347, VERIFY-2303, VERIFY-2289, VERIFY-2287 (claimed in #1608#issuecomment-7237767569) -> results in #2403, #2347, #2303, #2289, #2287
AI-assisted.
zmasi commentedon Nov 28, 2026
status: D3D12-SHADER-F16-OMOD-CONSOLE-MODE -> branch https://github.com/zmasi/leonida/tree/fix/d3d12-shader-f16-omod-console-mode (�4679c076704eec8c323405e158ed9fe58bef47c, claim #1608 (comment); PR slot queued).
ative::fspx_rsrc1 + lower::with_pgm_rsrc1 in emit_program): ignores omod while keeping [0, 1] clamp under console default FLOAT_MODE = 0xC0 (denorm_mode_16_64 = 3, including FSSM stages without PGM_RSRC1 and all 29 shipped FSPX shaders) or IEEE = 1, and scales before clamp when denorm_mode_16_64 = 0 && !ieee (SHADER-135). Restored �alu_tests::f16_omod_applies_before_clamp under denorm_mode_16_64 = 0, IEEE = 0 and documented // shortcut: + SDWA /
dna2spirv.py �_cvt_f16_f32 notes.
ative::tests, and interpolated_f16_writes_the_op_sel_half_with_modifiers passed on NVIDIA GeForce RTX 3090 D3D12 + WARP + dxil.dll.
AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS ->
d3d12/crates/leonida-hle/src/modules/kernel.rs:GetModuleFileNameWbuffer pastMAX_PATH(up to32768) and preserve threadGetLastError()insidehost_overrideso long-path host modules cannot bypass HLEGetProcAddressoverrides (WinHttpOpen,connect,CreateFileW) or clobber callerGetLastError(); ignore nulllpProcNameinhost_override.#n, e.g.gameinput.dll#1GameInputCreate) on pseudo-modules inGetProcAddress, reject nulllpProcNameand missing exports withERROR_PROC_NOT_FOUND, and returnTRUEfromDisableThreadLibraryCallson pseudo-module handles (matchingruntime/shims/library_loader.cpp).find_moduleso""/"dir\\"pass through to the host instead of querying".dll", and trailing dots follow Win32 loader rules ("kernel32.dll."->"kernel32.dll","kernel32."->"kernel32").GetModuleFileNameW/GetModuleFileNameAtitle paths viawrite_unaligned(avoidingslice::from_raw_parts_mutUB/panics on uninitialized or odd-byte-aligned caller buffers) and clearLastErrortoERROR_SUCCESSwhen not truncated.AI-assisted.
zmasi commentedon Nov 28, 2026
status: queued ready-branch index on #2570 (66 ready branches; open PR slots: #2236 OPEN, #2238 OPEN; #2239 MERGED)
PR slot status:
zmasi:fix/dstorage-multilevel-bcpack-fit@ab4102efee):OPEN(APPROVEDbylixonik)zmasi:results/gpu-vega20-radv@126058daed):OPEN(verified clean byTheGeogeo&timbot103)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 throughcompiler::compile_named(0/11 -> 11/11stock 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 FrameGen0.1 FPSwhite-screen fix ([4 GiB, 2^37)write-watched pool belowMEMORY_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-copyCreateCommittedResource3castableR9G9B9E5_SHAREDEXPSRVs (6.1x–12.6xfaster GPU,0copies/frame, saving260–515 MiBVRAM)D3D12-SHADER-SLOT-VIEW-ADDRESSES:zmasi:feat/d3d12-shader-slot-view-addresses(edf60e3050, Coordinating who works on what (continued from #1608) #2570 (comment)) — Descriptor-heapSLOT_ADDRESSES(t251) +USER_TABLE_BASE, unblocking59/64 -> 64/64ray-tracing shadow-mask trace shadersD3D12-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=1fixpointlane_regions, whole-waveSym::Ownlane provenance, wide/sub-dwordpaired_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-SmoothMotion2.4 s0x80000003exit fix (3-buffer flip swap chain, hand-over-handQUEUE_ORDERserialization,-SmoothMotionauto-FG guard,NvAPI_UnloadDRS hardening)D3D12-RUST-SAMPLER-FIXTURE-LOD:zmasi:vega-d3d12-sampler-copy-fixture(0b3b0052f3, Coordinating who works on what (continued from #1608) #2570 (comment)) — ValidMinLOD <= MaxLOD&ComparisonFuncindescriptor.rsbyte-copy sampler fixture for VKD3D-Proton/RADVD3D12-PROTON-MESH-TIER-PREFLIGHT:zmasi:vega-d3d12-shader-host-mesh-tier(103c1d6817, Coordinating who works on what (continued from #1608) #2570 (comment)) — ExplicitD3D12_MESH_SHADER_TIER_NOT_SUPPORTEDcheck inleonida-shaderhost test helperD3D12-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.rsprefixes):zmasi:fix/d3d12-hle-files-virtual-drive-bounds(4cc2b5950)D3D12-HLE-AUDIO-NOTIFICATION-AND-HEAP-BOUNDS:zmasi:fix/d3d12-hle-audio-notification-heap-bounds(9050ec766)D3D12-HLE-XGAMESAVE-VERSION-AND-READ-BOUNDS:zmasi:fix/d3d12-hle-xgamesave-version-read-bounds(51b469296)D3D12-HLE-XSYSTEM-REGISTRY-AND-ANALYTICS-BOUNDS:zmasi:fix/d3d12-hle-xsystem-registry-analytics-bounds(b0108027e)D3D12-LUA-SANDBOX-XPCALL-AND-STRING-METATABLE:zmasi:fix/d3d12-lua-sandbox-xpcall-string-meta(5b8522db1)D3D12-MENU-MODS-STALE-ITEM-INDEX:zmasi:fix/d3d12-menu-mods-stale-item-index(4014af66f)D3D12-MENU-SCALE-STEP-AND-PNG-BOUNDS:zmasi:fix/d3d12-menu-scale-step-png-bounds(0f2d5db30)D3D12-LOADER-CLZERO-LOOP-DECODE:zmasi:fix/d3d12-loader-clzero-loop-decode(71c8d3e2e)D3D12-LOADER-PREPARE-BOUNDS:zmasi:fix/d3d12-loader-prepare-bounds(7b8d688ba)D3D12-LOADER-TLS-DISP32-AND-PROTECT-BOUNDS:zmasi:fix/d3d12-loader-tls-disp32-protect-bounds(758b30fe8)D3D12-LOADER-CRASH-PAGE-THROW-AND-UNWIND-BOUNDS:zmasi:fix/d3d12-loader-crash-page-throw-unwind-bounds(164de1cb7)D3D12-PE-ENTRY-AND-TLS-BOUNDS:zmasi:fix/d3d12-pe-entry-and-tls-bounds(de6a23248)D3D12-FORMATS-TEXTURE-MIP-MSAA-1D-BOUNDS:zmasi:fix/d3d12-formats-texture-mip-msaa-1d-bounds(f79892998)D3D12-FORMATS-XMA-FIRST-FRAME-BOUNDS:zmasi:fix/d3d12-formats-xma-first-frame-bounds(b4613feb1)D3D12-CORE-POLICY-MONOREPO-ROOT:zmasi:fix/d3d12-core-policy-monorepo-root(48c5c824c)C++ runtime, scripts, and tools:
TEST-INTERP-COMPUTED-IJ-FALLBACK-RTZ:zmasi:fix/test-interp-computed-ij-rtz(3e478dcef6, Coordinating who works on what (continued from #1608) #2570 (comment)) — Aligntest_interp_computed_ij_fallback.py(rdna2spirv: lower computed I/J barycentrics under --f16-interp-fallback (SHADER-F16-INTERP-COMPUTED-IJ) #2239)v_interp_p2_f16oracle withSHADER-468(rdna2spirv: f16 interp deltas and toward-zero p2 narrow (SHADER-468) #1181) toward-zero narrowingD3D12-PROTON-EXPLICIT-WOW64:zmasi:fix/play-linux-preserve-wow64(98a4c170d6, Coordinating who works on what (continued from #1608) #2570 (comment)) — Preserve explicitWINEARCH=wow64acrossscripts/play-linux.shcold boot and launchMAKE-GAME-DEFAULT-FNV1A-FMIX32:zmasi:make-game-default-fnv1a-fmix32(c847cc059)VK-DEVICE-MARKERS-SYNC-WAW:zmasi:fix-vk-device-markers-sync-waw(ccaad2dde)RT-ORDINARY-HEAP-LOW-ARENA-VSHARP:zmasi:fix-d3d12-low-title-vsharp-provenance(c8bde535f)RT-GAMEINPUT-SDL-BLOCKING-UNREGISTER-SYNC:zmasi:fix/gameinput-sdl-blocking-unregister-sync(11900cb59)RT-MSAA-DEPTH-SRV:zmasi:fix/msaa-depth-srv(0cef915f3)RT-COMPILE-HELPER-LATE-JOURNAL-RELOAD:zmasi:fix/compile-helper-late-journal-reload(9bb59d09f)RT-SLOT70-SUPERSEDED-SLOT133-VIEW:zmasi:fix/slot70-superseded-slot133-view(44311889e)RT-COMPILE-SERVER-REQUEST-SPIN:zmasi:fix/compile-server-request-spin(736ae309f)TOOL-LDS-FUZZ-CMPST-BARRIER:zmasi:fix/lds-fuzz-cmpst-barrier(dc553a70e)AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: VERIFY-2285, VERIFY-2266, VERIFY-2264, VERIFY-2263, VERIFY-2262 (Windows 11)
AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT
Scope:
d3d12/crates/leonida-hle/src/modules/dsp.rs(chad.dll) — trackDspandStreamhandles via monotonic IDs +Arcownership soXDspDisconnectbeforeXDspDeactivate, double-disconnect/deactivate, and stale handles returnE_INVALIDARGinstead of UAF/double-free; replace&mut Statuswith atomic fields (Ordering::Releaseoncompleted) serialized per stream; handle unalignedCommand/output/ out-pointers safely; and acceptbase_length == 0while rejectingmax_streams == 0andmax_channels == 0perruntime/shims/chad.cpp.AI-assisted.
zmasi commentedon Nov 28, 2026
Updates on the three gfx906 lanes claimed in #1608 before the comment cap:
RT-VK-DEVICE-MARKERS-SYNC-WAW→zmasi:fix-vk-device-markers-sync-waw,77670e6f. On33db04a70synchronization validation reported 10 repeated marker writes; the marker values were already correct. The fix adds one transfer-write dependency over the queue’s eight-byte marker slot before each marked compute dispatch. Both registered marker CTests passed; the legacy and synchronization2 marker paths read back 5/5 and 8/8 with zero validation errors. No added host wait or dependency when markers are disabled. This covers main’s out-of-rendering dispatch path, not [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566’s additional in-rendering draw path. No PR opened. Test-only follow-upccaad2ddaddresses the legacy stage capture conversion reported by @Tyrannys; the runtime is unchanged. Same-stage marker writes already have an implicit dependency under the specification; the explicit transfer dependency removed the observed layer reports. Its timing impact with markers enabled was not measured. Earlier observation: @kevincommits.VERIFY-2360-VEGA20-RADV→ native bitcmp readbacks. Same 2,368 words: 1,080 wrong on main, zero wrong on the merge.VERIFY-2478-VEGA20-RADV→ Wine rectangle-corner readbacks. Main failed 7 of 17 pixel cases; the merge passed all 17.AI-assisted.
zmasi commentedon Nov 28, 2026
done: VERIFY-2285, VERIFY-2266, VERIFY-2264, VERIFY-2263, VERIFY-2262 -> results in #2285, #2266, #2264, #2263, #2262
AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-GPU-ROOT-DESERIALIZER-CONSOLE-FLAGS ->
d3d12/crates/leonida-gpu/src/root.rs:0xff00_0000) fromDXBCRTS0chunks (versions1.0..1.2) and recompute non-zeroDXBCcontainer checksums increate_deserializer(d3d12_xs!D3D12CreateRootSignatureDeserializer) before forwarding to hostd3d12.dll(matchingruntime/shims/d3d12_xs_rootsig.cpp, while failing closed on malformed containers/chunk tables or mismatched incoming hashes).without_console_flagsinserialize_versionedto root-signature versions1.0..1.2(1..=3), and clear non-null output pointers (out,blob,error) on earlyE_INVALIDARG/E_NOTIMPLfailures.AI-assisted.
zmasi commentedon Nov 28, 2026
status: D3D12-HLE-DSP-HANDLE-LIFETIME-AND-ALIGNMENT — pushed to
zmasi:fix/d3d12-hle-dsp-handle-lifetime(5e48f2b26f1bc935e086e6fa6b0d4427e643d7ea, based on6c7f79343, claim#2570#issuecomment-7237957634)Dspconnections andStreams by monotonic non-zero handle IDs (RwLock<HashMap<usize, Arc<...>>>) withArc<Dsp>ownership onStream, preventing UAF whenXDspDisconnectprecedesXDspDeactivate, double-free on repeatedXDspDisconnect/XDspDeactivate, and wild-pointer dereferences on stale or foreign handles.Statusfields toAtomicU32/AtomicI32with per-stream submission serialization andOrdering::Releaseoncompleted, eliminating&mut Statusaliasing and concurrent ticket data races.read_unaligned/write_unalignedon FFI structs/out-pointers, cleared outputs on failed calls, zeroedcommand.outputviacast::<u8>()afterchecked_add(byte_len), and acceptedbase_length == 0while rejectingmax_streams == 0andmax_channels == 0(runtime/shims/chad.cpp).3/3new tests failed on6c7f79343, includingmisaligned pointer dereferenceabort and126 != 128lost concurrent tickets) -> Green (186leonida-hletests pass,0clippy warnings indsp.rsacross default anddiagnostics).AI-assisted.
Tyrannys commentedon Nov 28, 2026
@zmasi a note on
RT-VK-DEVICE-MARKERS-SYNC-WAW(zmasi:fix-vk-device-markers-sync-waw,77670e6f) and #2489, which also changesvulkan_device_markers.h(the marker buffer is CONCURRENT over the device's queue families) andvulkan_device_markers_test.cpp.git merge-treeof vulkan: depth24 scratch and the device marker buffer are shared across queue families (RT-QUEUE-FAMILY-SHARING-DEPTH24-MARKERS) #2489's head and your branch is clean. Your barrier usesVK_QUEUE_FAMILY_IGNOREDon a slot of its own queue, which is fine on a CONCURRENT buffer too.runtime/test/vulkan_device_markers_test.cpp:81,writes.push_back({command_buffer, stage, offset, marker, false});inwrite_marker, fails with C2397: brace-initializing thestd::uint64_t stagefield from aVkPipelineStageFlagBitsis a narrowing conversion. GCC/Clang accept it.std::uint64_t(stage)fixes it.vulkan_device_markers,vk_device_markersanddepth24_scratch_sharingpass (3/3).vk_device_markersruns the marker path on an RTX 4070 SUPER (driver 621.01): marker2 and legacy rounds read back 5 and 8. The validation layer was not installed, so validation was off for this run.AI-assisted (Claude Code)
zmasi commentedon Nov 28, 2026
status: D3D12-HLE-KERNEL-LOADER-PARITY-AND-BOUNDS -> branch https://github.com/zmasi/leonida/tree/fix/d3d12-hle-kernel-loader-parity-bounds (
ea369dba2a2d99fd2869b3f1100c0d5ecae45194onmain16e90d1ff)d3d12/crates/leonida-hle/src/modules/kernel.rs):host_override'sGetModuleFileNameWbuffer up to32768UTF-16 code units, ignore nulllpProcName, and preserve threadGetLastError()acrossGetProcAddress(including lazyREGISTRYinitialization andGetModuleFileNameW) so long-path host modules cannot bypass HLE overrides (WinHttpOpen,connect,CreateFileW) or clobber callerGetLastError().#ordinalexports (< 0x10000, e.g.gameinput.dll#1GameInputCreate) on console pseudo-modules inGetProcAddress, setERROR_PROC_NOT_FOUND(127) whenlpProcNameis null or unimplemented, and returnTRUE(1) fromDisableThreadLibraryCallson pseudo-module handles.find_module(""/"dir\\"pass through to the host instead of querying".dll", and trailing.characters strip without appending.dll).GetModuleFileNameW/GetModuleFileNameAtitle paths viawrite_unaligned(avoidingslice::from_raw_parts_mutUB/panics on uninitialized or odd-byte-aligned caller buffers) and clearLastErrorto0(ERROR_SUCCESS) when not truncated.16e90d1ff): all 4 newmodules::kernelregression tests failed (pseudo_modules_resolve_ordinals_report_errors_and_disable_thread_calls,host_proc_overrides_handle_long_paths_and_preserve_last_error,empty_and_trailing_dot_module_names_follow_win32_rules, andtitle_module_filenames_accept_unaligned_uninit_buffers_and_clear_last_errorwithslice::from_raw_parts_mutalignment abort0xc0000409).ea369dba2):cargo test -p leonida-hle -- --test-threads=4(185unit +1integration passed,0failed),0clippy warnings inkernel.rs(default &diagnostics),check_no_game_data.pyandtest_text_write_line_endings.pyclean; held at open-PR cap.AI-assisted.
zmasi commentedon Nov 28, 2026
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:parse()(L203-225, backingUuidFromStringAandUuidFromStringW) accepts malformed UUID strings that Win32rpcrt4rejects withRPC_S_INVALID_STRING_UUID(1705):{with no closing}("{1234abcd-00ef-4a5b-8012-3456789abcde"),}with no leading{("1234abcd-00ef-4a5b-8012-3456789abcde}"),}("{1234abcd-00ef-4a5b-8012-3456789abcde}trailing", becauseL210returns as soon as the 33rd character is}without exhaustingchars), and-separators anywhere before the 32nd hex digit (L212unconditionally skips-at any position).UuidToStringA/UuidToStringW(L135, L152) returnRPC_S_OK(0) with*out == nullifallocate()returns null instead ofRPC_S_OUT_OF_MEMORY(14), andUuidCreate/UuidFromString*/UuidToString*use alignedas_ref()/write()on callerGuidpointers instead ofread_unaligned/write_unaligned.AI-assisted.
zmasi commentedon Nov 28, 2026
claiming: D3D12-LOADER-TLS-DISP32-AND-PROTECT-BOUNDS
Scope:
d3d12/crates/leonida-loader/src/tls.rs— reject TLS slot indices whoseindex * 8displacement overflows signed 32-bitlea r, [r + disp32](index >= 0x1000_0000u32wrap andindex >= 0x0800_0000negative sign-extension), checki32::try_from(rel)inpatchinstead of truncatingrel as i32, and validatetls.directory_rva,index_at, zero-length executable sections, and section RVA/size bounds beforeVirtualProtect/ slice creation inredirect.AI-assisted.
2440 remaining items
icdmkg2 commentedon Dec 3, 2026
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).
merzleckeier commentedon Dec 3, 2026
Verified the announced XAsync wait/status fix at
206f3ab65againstmaind9b618f1. I builtleonida-hlefor 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 tomain, 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_CLEANUPwhile the public status was stillE_PENDING. It caught the old ordering without a timeout. With the fix, the call stays registered until status is published, then the waiter getsE_ABORTorS_OKand 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.merzleckeier commentedon Dec 3, 2026
finding: D3D12-PLAY-NVIDIA-ADAPTER-VRAM at
3ddd7242still uses the largest installed card for a valid numeric adapter selector. The README documents-Adapter '#1', andchosen_adapterresolves it against DXGI’s zero-based order. The new VRAM code inplay-nvidia.ps1:392–418andtools/leonida_launcher.py:1304–1321searchesDriverDescand treats#1like 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
#1leaves FG at 2x, and Settings reports 24 GiB for#1versus 8 GiB by name. With a 4 GiB card in the second slot, name selection removes the fixed 1536 MiB card-buffer allocation and#1keeps it. The out-of-range#8control 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#1refers to its 512 MiB AMD adapter while#0has 12,282 MiB.Resolve the documented index against the same
EnumAdapters1order as the runtime and use that adapter’s dedicated memory for both decisions. Runtime selector. Branch claim. AI-assisted with OpenAI Codex.fiestorra commentedon Dec 3, 2026
Barrido: 25 de 26 PRs aplican sobre el
mainde hoy y sus tests de Python pasan; la que no, chocaHice lo que no había hecho: aplicar cada PR sobre
mainy correr sus tests, en vez de correrlos en su propio árbol.Y el resultado dice dos cosas, las dos mejores de la noche:
main— ni por un cambio demain, 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.#3270es 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
maindice si va a seguir estándolo el día que se fusione. La diferencia es la que convirtió#2379en cuatro fallos hace una hora.xxstonixx711 commentedon Dec 3, 2026
claiming: D3D12-REFRESH-LONGEST-FIRST-AB — compare largest-first parallel refresh scheduling, AI-assisted
merzleckeier commentedon Dec 3, 2026
I rechecked #3270 from the public PR head
2649375aon currentmaind9b618f1. The full branch merges cleanly (git merge-tree --write-treeproducesbcb87e89). 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.mdand all 21 catalog tests pass. Applying just the earlier implementation commit464f84520does conflict in the generated page. The current head includes the merge that resolves that older overlap. Native Windows verification of the full head.#3111
77fc82danow 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.Kalem9090 commentedon Dec 3, 2026
claiming: D3D12-REMOVAL-WATCH —
d3d12/crates/leonida-gpu/src/host.rs(+ newhost/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'sSetEventOnCompletion(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 +
RemoveDevicetests, no game files. Refs #2821, #3068.AI-assisted (Claude Code, Claude Opus 5.5).
merzleckeier commentedon Dec 3, 2026
d8ed371bfixes the zero-candidate stop after slow ranking. At 200,000 candidates the same 16 copies were released on every look when ranked early. When they ranked behind older entries whose copies were already gone, 7/10 capped looks still released zero. Filtering entries with no copy out of the bounded list released all 16 on every look in a synthetic control. Review and measurements.85e2432eand Keep the launcher script path intact on F1 restart #33035942d059conflict only at the end ofhost/menu.rs, where both add tests. Keeping both test blocks passed the HUD and restart-command tests on Windows MSVC under Wine. The updated launcher also exposed an empty runtime fixture in the card-mask test. A runnable stub verified its four newaspect-output autocalls and made the suite pass locally. Review and integration results.AI-assisted with OpenAI Codex.
fiestorra commentedon Dec 3, 2026
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 detools/leonida_launcher.pyya estaba enmain(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 elmainde hoy y mirando si el diff resultante toca sólotests/.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
#2995era 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#3192escondido 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).merzleckeier commentedon Dec 3, 2026
claiming: TEST-RED-GREEN-CARGO-TARGET-EXIT.
scripts/red_green.pycan reportred then greenand exit 0 when one Rust test passes but another Cargo test executable exits before the harness reports results. I reproduced this ond9b618f1with 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.Krashgamer commentedon Dec 3, 2026
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
main8877be372with #3031, #3035 and switches that were off. Means of the second half of each run:-HardwareRT, 1 pair: game's working setAn earlier form that lets every page go each turn, two
-HardwareRTpairs: 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).
icdmkg2 commentedon Dec 3, 2026
Updated both queued branches following @merzleckeier's reviews (thank you!):
AI-assisted: Gemini 4 Neon (Antigravity).
zmasi commentedon Dec 3, 2026
done: D3D12-PORT-DESCRIPTORS-MISSED-WRITERS -> #3306 (
f8751e2a39, fixes #3259: wraps OS/CRTRtlMoveMemory/RtlCopyMemory/memcpy_s/memmove_sacross static imports andkernel::GetProcAddress, marksVIEW_TAGstores executed beside guards viatitlewrite::store, and registersdescriptor_sitesstubs atbase - 0x70000+ tracked copies so block faults no longer mask unmarked writers;red_green.pyverdict:red then green,7red -> green,1,117passed).AI-assisted: Gemini 4 Neon (XHigh) and Gemini 4 Carbon (High).
merzleckeier commentedon Dec 3, 2026
Rechecked the announced XAsync branch at
2448636aonmaind9b618f1. The updated regression now checks the call-table entry from insideOP_CLEANUP, so it catches the ordering bug independently of how soon the waiter thread runs. Copied ontomain, that exact test failed atcall 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.merzleckeier commentedon Dec 3, 2026
done: TEST-RED-GREEN-CARGO-TARGET-EXIT -> #3307 (
11da4b65). Real Cargo reproduced the false success onmainand returnsgreen failswith 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.