hle,eh: reclaim partial physical frees, shard lazy VEH, harden dstorage/input/audio #2004

Open
github-bot wants to merge 2 commits from github-bot/gh-2004 into main AGit
Owner

@⁠raylitebull on GitHub · 2026-11-25 00:37 UTC · original
raylitebull:feat/world-sys-dstorage-and-phys → main · +1413 −257 · 10 files · 2 commits · open

Hardens HLE world streaming, physical-page reclamation, lazy VEH sharding, monitor/mwait patching, audio buffer reuse, and GameInput/KBM playability:

  1. Physical pages & kernelx/lazy.rs:
    • Keeps XMemVirtualAlloc / overflow alloc_physical_home MEM_RESERVE fallbacks below the 40-bit VA ceiling via alloc_below_40bit (VirtualAlloc2, preserving #2157's sparse-layout coherent UMA opt-out); stops large AllocateTitlePhysicalPages pools from stealing pre-committed coherent UMA; skips committing lazy pages on reads while ensuring lazy pages before writes (uses existing upstream XMemIsToolsMemAvailable in kernelx.rs).
    • Replaces PHYS_BLOCKS counters with a per-page live bitmap (PhysBlock) for exact per-page liveness (physical_pages_live + is_live_physical_page), double-free immunity, and immediate coalesced MEM_DECOMMIT + sparse::decommitted on partial FreeTitlePhysicalPages calls.
    • Shards the lazy-page table across 16 contiguous 4 MiB stripes (kernelx/lazy.rs) with atomic LAZY_COUNT / LAZY_COMMITTED_ANY fast paths and batched lazy::mark / unmark.
  2. DirectStorage streaming (dstorage.rs, dstorage/parallel.rs, dstorage/parallel_tests.rs):
    • Unifies #1405 execution-time physical page-list resolution (!dest_on_stack + read_own + kernelx::physical_pages_live + zero-entry reread) inside dstorage.rs::write_dest_physical_pages across sequential execute() and dstorage/parallel.rs (InFlightTask::dest_on_stack), refreshing stale/freed entries on write/read retry (0x89240009 prevention) and extending parallel decompression to physical-page destinations and supported BCPack requests.
  3. Monitorx/Mwaitx & EH (eh.rs):
    • Replaces the global SEEN mutex in emulate_console_only with a lock-free AtomicU16 bitmask and live-patches Monitorx -> nop;nop;nop and Mwaitx -> pause;nop via atomic aligned u64 CAS + FlushInstructionCache (opt-out via XCL_NO_PATCH_MONITORX=1).
  4. Audio (opus.rs, acphal.rs):
    • Caches/reuses unique Media Foundation IMFSample/IMFMediaBuffer pairs across MftDecoder packets; splits XApu stream locks to per-stream mutexes with reusable PCM/float scratch buffers and atomic progress throttling (preserving #471's Channel::connect clear).
  5. GameInput & KBM (gameinput.rs, kbm.rs):
    • Skips disconnected-pad XInput rumble stalls and deduplicates unchanged speeds; adds bounded GetNextReading/GetPreviousReading history; extends XCL_PRESS_AT for triggers/sticks/durations; adds Z/C bumper keys; gates mouse buttons on capture/non-sizing and guards zero-delta poll velocity decay (preserving #552's PlayStation HID fallback).

Part of #1833.

What is in it

  • crates/xcl/src/eh.rs, crates/xcl/src/hle/{acphal.rs, dstorage.rs, dstorage/parallel.rs, dstorage/parallel_tests.rs, gameinput.rs, kbm.rs, kernelx.rs, kernelx/lazy.rs, opus.rs} (10 files).

Tested

  • Toolchain: Windows 11 x64, rustc 1.99.1 (58cf8f9c3 2026-10-13), rebased cleanly onto 73e3aba6 (57560bf5).
  • cargo check --workspace --tests: passed (0 warnings in touched files).
  • cargo test -p xcl --lib -- --test-threads=4 hle::kernelx:: hle::dstorage:: hle::gameinput:: hle::kbm:: hle::acphal:: hle::opus:: eh::tests::: 128 passed, 0 failed, 1 ignored (0.61s, including #1405, #495, #2157, #509, #563, #2048, and all 13 #2004 tests).

Regression run

  • Standalone scripts/smoke.ps1 pair on 57560bf5 vs 73e3aba6 has not been run yet. AMD and NVIDIA reviewers are invited to verify 57560bf5 vs 73e3aba6 (including scripts/smoke.ps1, DirectStorage streaming, and GameInput/KBM paths) and post results in the comments.

Not tested

  • 60 s scripts/smoke.ps1 pair on 57560bf5, full cargo test --workspace suite on 57560bf5, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton.

AI use

  • Antigravity assisted with implementation, rebase onto 73e3aba6, and unit tests; the author reviewed the diff and test output.
**@⁠raylitebull** on GitHub · 2026-11-25 00:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004) `raylitebull:feat/world-sys-dstorage-and-phys` → `main` · +1413 −257 · 10 files · 2 commits · open Hardens HLE world streaming, physical-page reclamation, lazy VEH sharding, monitor/mwait patching, audio buffer reuse, and GameInput/KBM playability: 1. **Physical pages & `kernelx/lazy.rs`:** - Keeps `XMemVirtualAlloc` / overflow `alloc_physical_home` `MEM_RESERVE` fallbacks below the 40-bit VA ceiling via `alloc_below_40bit` (`VirtualAlloc2`, preserving `#2157`'s sparse-layout coherent UMA opt-out); stops large `AllocateTitlePhysicalPages` pools from stealing pre-committed coherent UMA; skips committing lazy pages on reads while ensuring lazy pages before writes *(uses existing upstream `XMemIsToolsMemAvailable` in `kernelx.rs`)*. - Replaces `PHYS_BLOCKS` counters with a per-page live bitmap (`PhysBlock`) for exact per-page liveness (`physical_pages_live` + `is_live_physical_page`), double-free immunity, and immediate coalesced `MEM_DECOMMIT` + `sparse::decommitted` on partial `FreeTitlePhysicalPages` calls. - Shards the lazy-page table across 16 contiguous `4 MiB` stripes (`kernelx/lazy.rs`) with atomic `LAZY_COUNT` / `LAZY_COMMITTED_ANY` fast paths and batched `lazy::mark` / `unmark`. 2. **DirectStorage streaming (`dstorage.rs`, `dstorage/parallel.rs`, `dstorage/parallel_tests.rs`):** - Unifies `#1405` execution-time physical page-list resolution (`!dest_on_stack` + `read_own` + `kernelx::physical_pages_live` + zero-entry reread) inside `dstorage.rs::write_dest_physical_pages` across sequential `execute()` and `dstorage/parallel.rs` (`InFlightTask::dest_on_stack`), refreshing stale/freed entries on write/read retry (`0x89240009` prevention) and extending parallel decompression to physical-page destinations and supported BCPack requests. 3. **`Monitorx`/`Mwaitx` & EH (`eh.rs`):** - Replaces the global `SEEN` mutex in `emulate_console_only` with a lock-free `AtomicU16` bitmask and live-patches `Monitorx` -> `nop;nop;nop` and `Mwaitx` -> `pause;nop` via atomic aligned `u64` CAS + `FlushInstructionCache` (opt-out via `XCL_NO_PATCH_MONITORX=1`). 4. **Audio (`opus.rs`, `acphal.rs`):** - Caches/reuses unique Media Foundation `IMFSample`/`IMFMediaBuffer` pairs across `MftDecoder` packets; splits `XApu` stream locks to per-stream mutexes with reusable PCM/float scratch buffers and atomic progress throttling (preserving `#471`'s `Channel::connect` clear). 5. **GameInput & KBM (`gameinput.rs`, `kbm.rs`):** - Skips disconnected-pad XInput rumble stalls and deduplicates unchanged speeds; adds bounded `GetNextReading`/`GetPreviousReading` history; extends `XCL_PRESS_AT` for triggers/sticks/durations; adds `Z`/`C` bumper keys; gates mouse buttons on capture/non-sizing and guards zero-delta poll velocity decay (preserving `#552`'s PlayStation HID fallback). Part of #1833. **What is in it** - `crates/xcl/src/eh.rs`, `crates/xcl/src/hle/{acphal.rs, dstorage.rs, dstorage/parallel.rs, dstorage/parallel_tests.rs, gameinput.rs, kbm.rs, kernelx.rs, kernelx/lazy.rs, opus.rs}` (`10` files). **Tested** - Toolchain: Windows 11 x64, `rustc 1.99.1 (58cf8f9c3 2026-10-13)`, rebased cleanly onto `73e3aba6` (`57560bf5`). - `cargo check --workspace --tests`: passed (`0` warnings in touched files). - `cargo test -p xcl --lib -- --test-threads=4 hle::kernelx:: hle::dstorage:: hle::gameinput:: hle::kbm:: hle::acphal:: hle::opus:: eh::tests::`: 128 passed, 0 failed, 1 ignored (`0.61s`, including `#1405`, `#495`, `#2157`, `#509`, `#563`, `#2048`, and all 13 `#2004` tests). **Regression run** - Standalone `scripts/smoke.ps1` pair on `57560bf5` vs `73e3aba6` has not been run yet. AMD and NVIDIA reviewers are invited to verify `57560bf5` vs `73e3aba6` (including `scripts/smoke.ps1`, DirectStorage streaming, and GameInput/KBM paths) and post results in the comments. **Not tested** - 60 s `scripts/smoke.ps1` pair on `57560bf5`, full `cargo test --workspace` suite on `57560bf5`, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton. **AI use** - Antigravity assisted with implementation, rebase onto `73e3aba6`, and unit tests; the author reviewed the diff and test output.
- kernelx: keep plain XMemVirtualAlloc and alloc_physical_home plain fallbacks
  below the 40-bit VA ceiling via VirtualAlloc2 when available; skip committing
  lazy/unmapped pages on read_physical_pages while ensuring lazy pages before
  writes; unmark freed lazy pages in FreeTitlePhysicalPages. (Coherent fallback
  skip on sparse layouts is on main via #2157; XMemIsToolsMemAvailable via #563.)
- dstorage: share execution-time physical page-list resolution (#1405 / #476
  dest_on_stack + read_own live-list reread) across sequential execute() and the
  parallel decompression pool; extend parallel decompression to handle
  physical-page destinations and supported BCPack requests; refresh stale
  physical-page source lists via read_own.
- gameinput & kbm: skip disconnected-pad XInput rumble stalls and deduplicate
  unchanged motor speeds; implement bounded reading history for GetNextReading /
  GetPreviousReading; extend XCL_PRESS_AT with triggers, sticks, LS/RS, and
  optional durations; add Z/C holdable bumper keys, require mouse capture and
  non-sizing for mouse buttons, and guard KBM mouse velocity against sub-0.5 ms
  zero-delta poll decay.
- kernelx: replace PHYS_BLOCKS counters with a per-page live bitmap (PhysBlock)
  for exact per-page liveness, double-free immunity, and immediate coalesced
  MEM_DECOMMIT + sparse::decommitted on partial FreeTitlePhysicalPages calls
  even while sibling pages in multi-GB pools stay live. Batch lazy::mark/unmark
  across map_pages and FreeTitlePhysicalPages.
- kernelx/lazy: shard the lazy-page table across 16 contiguous 4 MiB stripes
  with atomic LAZY_COUNT / LAZY_COMMITTED_ANY fast paths so direct I/O checks
  and non-lazy faults avoid global RwLock contention and redundant VirtualQuery
  calls while parallel threads commit distinct regions concurrently.
- eh: replace the global SEEN mutex in emulate_console_only with a lock-free
  AtomicU16 bitmask, and race-safely live-patch Monitorx -> nop;nop;nop and
  Mwaitx -> pause;nop (with atomic aligned u64 CAS + FlushInstructionCache and
  XCL_NO_PATCH_MONITORX=1 opt-out) so worker spin loops stop taking #UD traps.
- opus & acphal: cache and reuse unique Media Foundation IMFSample/IMFMediaBuffer
  pairs across MftDecoder packets (verified via COM refcount); split XApu stream
  locks to per-stream Mutexes with bounded reusable PCM/float scratch buffers
  and lock-free AtomicU64 progress throttling.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:14:10 +00:00
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 00:47 UTC · original

Overlap note: full credit to #565 (@⁠ZekkJJ) for retaining recent GameInput readings for GetNextReading / GetPreviousReading in gameinput.rs.

If #565 lands first, we will drop the reading-history hunks from #2004 and keep #2004 focused on its independent eh, acphal, dstorage, kbm, kernelx, lazy, opus, and XCL_PRESS_AT / rumble changes.

**@⁠raylitebull** on GitHub · 2026-11-25 00:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7148882380) Overlap note: full credit to **#565** (@⁠ZekkJJ) for retaining recent `GameInput` readings for `GetNextReading` / `GetPreviousReading` in `gameinput.rs`. If #565 lands first, we will drop the reading-history hunks from #2004 and keep #2004 focused on its independent `eh`, `acphal`, `dstorage`, `kbm`, `kernelx`, `lazy`, `opus`, and `XCL_PRESS_AT` / rumble changes.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-25 01:03 UTC · original · edited 2026-11-25 01:24 UTC

Full-suite run, since this PR has no test report yet. Tested exact head 462a456 (on its base 6567c5f).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 999 passed, 0 failed, 43 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: monitorx_and_mwaitx_patch_to_nop_and_pause_safely, xapu_reuses_stream_scratch_and_supports_concurrent_streams, parallel_decode_supports_physical_page_destinations_and_late_refresh, rumble_skips_disconnected_pad_and_deduplicates_unchanged_speeds, next_and_previous_reading_walk_state_changes_and_terminate, extended_scripted_actions_drive_triggers_sticks_and_durations, mouse_buttons_require_capture_and_not_sizing, high_frequency_zero_polls_do_not_prematurely_decay_velocity, xmem_tools_mem_and_40bit_virtual_alloc, physical_page_reads_skip_commit_writes_ensure_lazy_and_free_unmarks, partial_free_tracks_exact_liveness_decommits_homes_and_ignores_double_free, sharded_lazy_batch_spans_stripes_and_unmarks_cleanly, mft_decoder_reuses_cached_samples_across_packets.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1009 passed, 0 failed, 45 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 7994cd1 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests and const_and_null_mask_operands_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-25 01:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7149167951) · edited 2026-11-25 01:24 UTC Full-suite run, since this PR has no test report yet. Tested exact head `462a456` (on its base `6567c5f`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **999 passed, 0 failed, 43 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `monitorx_and_mwaitx_patch_to_nop_and_pause_safely`, `xapu_reuses_stream_scratch_and_supports_concurrent_streams`, `parallel_decode_supports_physical_page_destinations_and_late_refresh`, `rumble_skips_disconnected_pad_and_deduplicates_unchanged_speeds`, `next_and_previous_reading_walk_state_changes_and_terminate`, `extended_scripted_actions_drive_triggers_sticks_and_durations`, `mouse_buttons_require_capture_and_not_sizing`, `high_frequency_zero_polls_do_not_prematurely_decay_velocity`, `xmem_tools_mem_and_40bit_virtual_alloc`, `physical_page_reads_skip_commit_writes_ensure_lazy_and_free_unmarks`, `partial_free_tracks_exact_liveness_decommits_homes_and_ignores_double_free`, `sharded_lazy_batch_spans_stripes_and_unmarks_cleanly`, `mft_decoder_reuses_cached_samples_across_packets`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1009 passed, 0 failed, 45 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `7994cd1` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests and `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://git.gtahub.st/github/xcl-dev--xcl/issues/1651)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-25 01:47 UTC · original

Regression run for this PR: head 462a456, based on main 80f4819. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, XCL_NETWORK=0, A pressed every 4 s from 20 s, scripts/smoke.ps1 on a retail title for 60 s, in one batch with the main run.

main 80f4819:

xcl-smoke v1
commit: 80f4819098e921f2e1ab371144d4832f68ffedd6
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1588 (PresentX 1589)
presents per 2 s (last 3): 47 56 27
device removals: 0
crashes: 0
peak commit: 25184 MB

this PR:

xcl-smoke v1
commit: 462a4561b65ae153bf515c8378ceb3e091638df2
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1557 (PresentX 1558)
presents per 2 s (last 3): 57 26 18
device removals: 0
crashes: 0
peak commit: 26606 MB

No device removals or crashes; 98 % of main's frames, 105 % of its peak commit.

Not tested: the whole suite; world loading; whether the title reaches all of the changed code in these 60 s (default settings: XCL_DIRECT_DXIL and XCL_HEAP_WINDOWS unset).

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7149960168) Regression run for this PR: head `462a456`, based on `main` `80f4819`. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, `XCL_NETWORK=0`, A pressed every 4 s from 20 s, `scripts/smoke.ps1` on a retail title for 60 s, in one batch with the `main` run. main `80f4819`: ``` xcl-smoke v1 commit: 80f4819098e921f2e1ab371144d4832f68ffedd6 gpu: NVIDIA GeForce RTX 3060 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1588 (PresentX 1589) presents per 2 s (last 3): 47 56 27 device removals: 0 crashes: 0 peak commit: 25184 MB ``` this PR: ``` xcl-smoke v1 commit: 462a4561b65ae153bf515c8378ceb3e091638df2 gpu: NVIDIA GeForce RTX 3060 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1557 (PresentX 1558) presents per 2 s (last 3): 57 26 18 device removals: 0 crashes: 0 peak commit: 26606 MB ``` No device removals or crashes; 98 % of main's frames, 105 % of its peak commit. **Not tested:** the whole suite; world loading; whether the title reaches all of the changed code in these 60 s (default settings: `XCL_DIRECT_DXIL` and `XCL_HEAP_WINDOWS` unset). Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 01:54 UTC · original

Rebased and trimmed #2004 cleanly onto d63071a (4d7d3bb + c57227f):

  • Dropped #563 duplicate: removed our duplicate XMemIsToolsMemAvailable() definition from crates/xcl/src/hle/kernelx.rs (using #563's implementation on main).
  • Integrated #509 (#476): updated dstorage.rs::refresh_stale_pages to use read_own (ReadProcessMemory) so unmapped page arrays never fault while still refreshing stale/freed page entries.
  • Preserved #552 & #471: cleanly kept the PlayStation HID fallback in gameinput.rs and Channel::connect clear in acphal.rs.

Pushed c57227f for GitHub Actions Build and test and fresh verification.

**@⁠raylitebull** on GitHub · 2026-11-25 01:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7150096218) Rebased and trimmed `#2004` cleanly onto `d63071a` (`4d7d3bb` + `c57227f`): - **Dropped `#563` duplicate:** removed our duplicate `XMemIsToolsMemAvailable()` definition from `crates/xcl/src/hle/kernelx.rs` (using `#563`'s implementation on `main`). - **Integrated `#509` (`#476`):** updated `dstorage.rs::refresh_stale_pages` to use `read_own` (`ReadProcessMemory`) so unmapped page arrays never fault while still refreshing stale/freed page entries. - **Preserved `#552` & `#471`:** cleanly kept the PlayStation HID fallback in `gameinput.rs` and `Channel::connect` clear in `acphal.rs`. Pushed `c57227f` for GitHub Actions `Build and test` and fresh verification.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 03:51 UTC · original

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 03:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7152306179) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 10:57 UTC · original

Rebased #2004 cleanly onto 5478c4a7 (52e01595 + 6bdf9b99), integrating #2157 (3e1eab29, keeping alloc_physical_home sparse-layout coherent UMA skip and wiring alloc_below_40bit into its plain MEM_RESERVE fallback).

Verified locally (cargo check --workspace --tests + 126 passed, 0 failed, 1 ignored across kernelx, dstorage, gameinput, kbm, acphal, opus, and eh tests, including both #2157 tests) and pushed 6bdf9b99 — ready for re-testing (ping @DavidM1911)!

**@⁠raylitebull** on GitHub · 2026-11-25 10:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7160406109) Rebased `#2004` cleanly onto `5478c4a7` (`52e01595` + `6bdf9b99`), integrating `#2157` (`3e1eab29`, keeping `alloc_physical_home` sparse-layout coherent UMA skip and wiring `alloc_below_40bit` into its plain `MEM_RESERVE` fallback). Verified locally (`cargo check --workspace --tests` + `126 passed, 0 failed, 1 ignored` across `kernelx`, `dstorage`, `gameinput`, `kbm`, `acphal`, `opus`, and `eh` tests, including both `#2157` tests) and pushed `6bdf9b99` — ready for re-testing (ping `@DavidM1911`)!
Author
Owner

@⁠Toons29 on GitHub · 2026-11-25 03:42 UTC · original · edited 2026-11-25 15:29 UTC

Regression run of 6bdf9b99 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 568e7db7, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: 6bdf9b9981331956dd61b6b48a817cf621d78ee4
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1633 (PresentX 1633)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14598 MB

Against the limits in CONTRIBUTING.md: 104 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; both blocks are exactly as printed, and I approved posting this.

**@⁠Toons29** on GitHub · 2026-11-25 03:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7152161205) · edited 2026-11-25 15:29 UTC Regression run of `6bdf9b99` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `568e7db7`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: 6bdf9b9981331956dd61b6b48a817cf621d78ee4 gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1633 (PresentX 1633) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14598 MB ``` Against the limits in CONTRIBUTING.md: 104 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; both blocks are exactly as printed, and I approved posting this.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 18:16 UTC · original

Rebased #2004 cleanly onto 73e3aba6 (9b81c214 + 57560bf5), integrating #1405 (bb27ed6d execution-time DirectStorage physical page-list resolution):

  • Unified #1405's execution-time physical page-list resolution (!dest_on_stack + read_own + kernelx::physical_pages_live + zero-entry reread) inside dstorage.rs::write_dest_physical_pages so sequential execute() and dstorage/parallel.rs (InFlightTask::dest_on_stack) share identical #1405/#476 semantics.
  • Preserved both kernelx::physical_pages_live and kernelx::is_live_physical_page backed by PhysBlock's exact per-page bitmap, and updated parallel_decode_supports_physical_page_destinations_and_late_refresh to use a heap-allocated vec![stale_page[0]] matching #1405.
  • Verified locally (cargo check --workspace --tests + 128 passed, 0 failed, 1 ignored across kernelx, dstorage, gameinput, kbm, acphal, opus, and eh tests, including #1405, #495, #2157, #509, #563, #2048) and pushed 57560bf5.
**@⁠raylitebull** on GitHub · 2026-11-25 18:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7170690589) Rebased `#2004` cleanly onto `73e3aba6` (`9b81c214` + `57560bf5`), integrating `#1405` (`bb27ed6d` execution-time DirectStorage physical page-list resolution): - Unified `#1405`'s execution-time physical page-list resolution (`!dest_on_stack` + `read_own` + `kernelx::physical_pages_live` + zero-entry reread) inside `dstorage.rs::write_dest_physical_pages` so sequential `execute()` and `dstorage/parallel.rs` (`InFlightTask::dest_on_stack`) share identical `#1405`/`#476` semantics. - Preserved both `kernelx::physical_pages_live` and `kernelx::is_live_physical_page` backed by `PhysBlock`'s exact per-page bitmap, and updated `parallel_decode_supports_physical_page_destinations_and_late_refresh` to use a heap-allocated `vec![stale_page[0]]` matching `#1405`. - Verified locally (`cargo check --workspace --tests` + `128 passed, 0 failed, 1 ignored` across `kernelx`, `dstorage`, `gameinput`, `kbm`, `acphal`, `opus`, and `eh` tests, including `#1405`, `#495`, `#2157`, `#509`, `#563`, `#2048`) and pushed `57560bf5`.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 00:49 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 00:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/2004#issuecomment-7179153439) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2004/head:github-bot/gh-2004'
git switch 'github-bot/gh-2004'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2004'
git switch 'github-bot/gh-2004'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2004'
git switch 'github-bot/gh-2004'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2004'
git switch 'main'
git merge --squash 'github-bot/gh-2004'
git switch 'main'
git merge --ff-only 'github-bot/gh-2004'
git switch 'main'
git merge 'github-bot/gh-2004'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.