DirectStorage: reuse small sequential file input buffers #2520

Merged
razormontana merged 1 commit from upstream-pr/2530 into main 2026-11-29 08:00:07 +00:00
razormontana commented 2026-11-25 21:47:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T21:47:21Z.


Part of #1833. The default DirectStorage worker allocates and zeroes an input buffer for every file request. A worker now retains up to 64 KiB of initialized input storage and reuses it across requests. Larger reads use a temporary buffer.

What is in it

  • crates/xcl/src/hle/dstorage.rs keeps a worker-local buffer and passes the exact bytes of each successful read to the existing decode and delivery paths. The opt-in decompression pool uses its existing staging budget.
  • crates/xcl/src/hle/dstorage/parallel_tests.rs checks allocation reuse at the high-water size, reads beyond the cache size, and FIFO status and destination bytes after a short read.

Tested

  • Windows 11 Pro 22631, Intel Core i7-10700K, NVIDIA GeForce RTX 3070 (32.0.16.1742), Rust 1.100.0 MSVC, Windows SDK DXC. Clean head 73643dae7e179eb0dfc2c27d3503aff7e2351f34.
  • cargo test --offline --locked -j 2 -p xcl --lib hle::dstorage:: -- --test-threads=1 --nocapture passed 34 tests with zero failures, ignored tests, or skips both with default settings and with XCL_DSTORAGE_PARALLEL_DECOMPRESS=1. With the new tests and the old allocation path, the high-water assertion failed and the short-read compatibility case passed.
  • An optimized standalone Windows probe used four alternating synthetic request sizes from 4 to 48 KiB and 16,384 cached file reads. The original input strategy made 16,384 allocations or reallocations, compared with 4 with reuse. Across five alternating pairs, median elapsed time was 91.216 ms before and 65.439 ms with reuse.
  • cargo build --offline --locked --workspace and cargo build --offline --locked --release --workspace succeeded. The debug cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output run with XCL_ADAPTER=3070 reported 1,426 passed, 0 failed and 46 ignored across 37 targets. The pass count includes 26 SKIPPED notices (21 native-wave64 checks, 3 unsupported per-lane forms, 1 reserved cube with mips and 1 heap-window check).

Regression run

Both clean release builds ran scripts/smoke.ps1 -Game <folder> -Seconds 60 on the same retail title in the Series S profile on the RTX 3070. They used XCL_DIRECT_DXIL=1, networking off and identical starting copies of XCL's warmed cache. NVIDIA's driver cache settings were left at their defaults.

Main

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 651 (PresentX 651)
presents per 2 s (last 3): 8 0 15
device removals: 0
crashes: 0
peak commit: 14469 MB

Candidate

xcl-smoke v1
commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 670 (PresentX 670)
presents per 2 s (last 3): 1 13 19
device removals: 0
crashes: 0
peak commit: 14690 MB

Not tested

  • Retail world-load timing and file input under Wine. The workspace GPU suite ran on NVIDIA. AMD and Intel GPU coverage is pending.

AI use

  • OpenAI Codex (GPT-6.2 Sol) investigated the allocation path, wrote the change and tests, ran the focused validation and probe, independently reviewed the diff and evidence, and drafted this description. The lead agent ran the workspace suite and retail smoke using OpenAI Codex (GPT-6.2).
<!-- greyfinch-sync:ivall/xcl:issue:5499729387 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530). Originally posted by [razormontana](https://github.com/razormontana) on 2026-11-25T21:47:21Z. --- Part of #1833. The default DirectStorage worker allocates and zeroes an input buffer for every file request. A worker now retains up to 64 KiB of initialized input storage and reuses it across requests. Larger reads use a temporary buffer. **What is in it** - `crates/xcl/src/hle/dstorage.rs` keeps a worker-local buffer and passes the exact bytes of each successful read to the existing decode and delivery paths. The opt-in decompression pool uses its existing staging budget. - `crates/xcl/src/hle/dstorage/parallel_tests.rs` checks allocation reuse at the high-water size, reads beyond the cache size, and FIFO status and destination bytes after a short read. **Tested** - Windows 11 Pro 22631, Intel Core i7-10700K, NVIDIA GeForce RTX 3070 (32.0.16.1742), Rust 1.100.0 MSVC, Windows SDK DXC. Clean head `73643dae7e179eb0dfc2c27d3503aff7e2351f34`. - `cargo test --offline --locked -j 2 -p xcl --lib hle::dstorage:: -- --test-threads=1 --nocapture` passed 34 tests with zero failures, ignored tests, or skips both with default settings and with `XCL_DSTORAGE_PARALLEL_DECOMPRESS=1`. With the new tests and the old allocation path, the high-water assertion failed and the short-read compatibility case passed. - An optimized standalone Windows probe used four alternating synthetic request sizes from 4 to 48 KiB and 16,384 cached file reads. The original input strategy made 16,384 allocations or reallocations, compared with 4 with reuse. Across five alternating pairs, median elapsed time was 91.216 ms before and 65.439 ms with reuse. - `cargo build --offline --locked --workspace` and `cargo build --offline --locked --release --workspace` succeeded. The debug `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` run with `XCL_ADAPTER=3070` reported 1,426 passed, 0 failed and 46 ignored across 37 targets. The pass count includes 26 `SKIPPED` notices (21 native-wave64 checks, 3 unsupported per-lane forms, 1 reserved cube with mips and 1 heap-window check). **Regression run** Both clean release builds ran `scripts/smoke.ps1 -Game <folder> -Seconds 60` on the same retail title in the Series S profile on the RTX 3070. They used `XCL_DIRECT_DXIL=1`, networking off and identical starting copies of XCL's warmed cache. NVIDIA's driver cache settings were left at their defaults. Main ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 651 (PresentX 651) presents per 2 s (last 3): 8 0 15 device removals: 0 crashes: 0 peak commit: 14469 MB ``` Candidate ``` xcl-smoke v1 commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 670 (PresentX 670) presents per 2 s (last 3): 1 13 19 device removals: 0 crashes: 0 peak commit: 14690 MB ``` **Not tested** - Retail world-load timing and file input under Wine. The workspace GPU suite ran on NVIDIA. AMD and Intel GPU coverage is pending. **AI use** - OpenAI Codex (GPT-6.2 Sol) investigated the allocation path, wrote the change and tests, ran the focused validation and probe, independently reviewed the diff and evidence, and drafted this description. The lead agent ran the workspace suite and retail smoke using OpenAI Codex (GPT-6.2).
DavidM1911 commented 2026-11-25 23:09:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T22:08:25Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7175986302 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7175986302). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T22:08:25Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
xpatfussy69x commented 2026-11-25 23:09:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T22:40:48Z.


Test run on exact head 73643da (73643dae7e179eb0dfc2c27d3503aff7e2351f34, on its base 6d12f58), clean tree.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs
  • cargo test --workspace -- --test-threads=4: 1426 passed, 0 failed, 46 ignored
  • SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 (on main too)
  • cargo test -p xcl --lib sequential: 4 passed, 0 failed
  • This PR's new tests in the workspace run:
    • sequential_file_input_reuses_its_high_water_allocation: ok
    • an_oversized_sequential_file_input_does_not_grow_the_cache: ok
    • sequential_short_read_preserves_destination_and_the_next_request_completes: ok

Regression run (60 s, default settings, a retail title)

main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1091 (PresentX 1091)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14814 MB

this PR:

xcl-smoke v1
commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1138 (PresentX 1138)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14792 MB

No crash or device removal; frames 104 % of main's, peak commit 100 %.

Not tested

  • Whether the title reads through DirectStorage file input in a way this changes is not shown by the run; load time was not measured: a regression check only
  • The PR merged into current main (tested on its own base; it merges into e1d84b7 without conflicts)
  • AMD / native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7176659689 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7176659689). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T22:40:48Z. --- Test run on exact head `73643da` (`73643dae7e179eb0dfc2c27d3503aff7e2351f34`, on its base `6d12f58`), clean tree. **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs - `cargo test --workspace -- --test-threads=4`: 1426 passed, 0 failed, 46 ignored - SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused `V_MUL_F16` / `V_PK_MUL_F16` / `V_CVT_F16_F32` (on `main` too) - `cargo test -p xcl --lib sequential`: 4 passed, 0 failed - This PR's new tests in the workspace run: - `sequential_file_input_reuses_its_high_water_allocation`: ok - `an_oversized_sequential_file_input_does_not_grow_the_cache`: ok - `sequential_short_read_preserves_destination_and_the_next_request_completes`: ok **Regression run** (60 s, default settings, a retail title) main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1091 (PresentX 1091) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` this PR: ``` xcl-smoke v1 commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1138 (PresentX 1138) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14792 MB ``` No crash or device removal; frames 104 % of `main`'s, peak commit 100 %. **Not tested** - Whether the title reads through DirectStorage file input in a way this changes is not shown by the run; load time was not measured: a regression check only - The PR merged into current `main` (tested on its own base; it merges into `e1d84b7` without conflicts) - AMD / native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
SlopTart commented 2026-11-26 00:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T23:27:18Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.

Targeted run of the DirectStorage sequential/reuse tests: 6 passed, so the reused buffer path is covered on the Wine lane too.
Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7177581877 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7177581877). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T23:27:18Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of the DirectStorage sequential/reuse tests: 6 passed, so the reused buffer path is covered on the Wine lane too. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
emirduran707 commented 2026-11-26 00:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T23:32:10Z.


Independent AMD RDNA4 (native wave64) verification of exact PR head 73643dae7e179eb0dfc2c27d3503aff7e2351f34 on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver 32.0.31044.16, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC 1.9.2602.17).

Tested

  • cargo build --workspace (debug): passed (0 errors).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1424 passed, 2 failed, 46 ignored (8 SKIPPED: 6 per-lane DXIL forms refused by host adapter/driver, 1 heap_window_out_of_memory_falls_back_to_the_switch_form no heap windows, 1 pso_measurement_compiles_an_exact_synthetic_record Windows Developer Mode off).
    • All 3 new tests passed:
      • hle::dstorage::parallel::tests::an_oversized_sequential_file_input_does_not_grow_the_cache
      • hle::dstorage::parallel::tests::sequential_file_input_reuses_its_high_water_allocation
      • hle::dstorage::parallel::tests::sequential_short_read_preserves_destination_and_the_next_request_completes
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and fuzz_validate_and_gpu_3) are pre-existing on unmodified main on this RX 9060 XT / driver 32.0.31044.16.
  • cargo build --release -p xcl + 60 s retail-title smoke test (scripts/smoke.ps1, offline):
xcl-smoke v1
commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1600 (PresentX 1600)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18513 MB

(Compare against main 08db8020 on this machine: 1553 frames, 13966 MB peak, 0 device removals, 0 crashes.)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine.

AI use

  • Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
<!-- greyfinch-sync:ivall/xcl:comment:7177697374 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7177697374). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T23:32:10Z. --- Independent AMD RDNA4 (native wave64) verification of exact PR head `73643dae7e179eb0dfc2c27d3503aff7e2351f34` on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver `32.0.31044.16`, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC `1.9.2602.17`). **Tested** - `cargo build --workspace` (debug): passed (`0` errors). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: `1424 passed, 2 failed, 46 ignored` (`8 SKIPPED`: 6 per-lane DXIL forms refused by host adapter/driver, 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` no heap windows, 1 `pso_measurement_compiles_an_exact_synthetic_record` Windows Developer Mode off). - All 3 new tests passed: - `hle::dstorage::parallel::tests::an_oversized_sequential_file_input_does_not_grow_the_cache` - `hle::dstorage::parallel::tests::sequential_file_input_reuses_its_high_water_allocation` - `hle::dstorage::parallel::tests::sequential_short_read_preserves_destination_and_the_next_request_completes` - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `fuzz_validate_and_gpu_3`) are pre-existing on unmodified `main` on this RX 9060 XT / driver `32.0.31044.16`. - `cargo build --release -p xcl` + 60 s retail-title smoke test (`scripts/smoke.ps1`, offline): ``` xcl-smoke v1 commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1600 (PresentX 1600) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18513 MB ``` (Compare against `main` `08db8020` on this machine: `1553 frames, 13966 MB peak, 0 device removals, 0 crashes`.) **Not tested** - NVIDIA / Intel GPUs, Linux / Wine. **AI use** - Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
Decodere commented 2026-11-27 03:31:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T03:31:24Z.


Independent desktop NVIDIA verification of PR #2530 at head 73643dae7e179eb0dfc2c27d3503aff7e2351f34 (1 commit; exact parent & merge-base: 6d12f58a229bc73889878a448c64dc3af25eeba0, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (73643dae)

Command Result
cargo test --release -p xcl --lib sequential_file_input_reuses_its_high_water_allocation -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1326 filtered out × 3 (0.02s × 3, 0 skipped)
cargo test --release -p xcl --lib an_oversized_sequential_file_input_does_not_grow_the_cache -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1326 filtered out × 3 (0.02s × 3, 0 skipped)
cargo test --release -p xcl --lib sequential_short_read_preserves_destination_and_the_next_request_completes -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1326 filtered out × 3 (0.02s × 3, 0 skipped)
cargo test --release -p xcl --lib hle::dstorage:: -- --test-threads=1 (3 consecutive runs) 34 passed; 0 failed; 0 ignored; 1293 filtered out × 3 (0.12s × 3, 0 skipped)
cargo build --release -p xcl Clean build (1m 11s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (6d12f58a229bc73889878a448c64dc3af25eeba0, cached baseline on the same machine):

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14004 MB

PR #2530 (73643dae7e179eb0dfc2c27d3503aff7e2351f34):

xcl-smoke v1
commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1594 (PresentX 1595)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14015 MB

Runtime log observations (xcl.log)

  • 9223 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19552 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14015 MB committed by the process; video memory 6115 MB local, 4686 MB non-local.

Limits of coverage

  • High-water buffer reuse, oversized-request non-retention, and short-read destination preservation in sequential DirectStorage file reads were verified directly via all 3 new unit tests (3/3 each) and hle::dstorage:: (34/34 × 3).
  • The 60 s retail smoke on title: 29640639 confirms zero runtime regression in DirectStorage streaming (frame-count delta vs. cached parent reflects single-run startup variance, not this PR); heap allocation rate savings under sustained sequential small-read workloads were not separately profiled.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7209055927 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7209055927). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T03:31:24Z. --- Independent desktop NVIDIA verification of **PR #2530** at head `73643dae7e179eb0dfc2c27d3503aff7e2351f34` (`1` commit; exact parent & merge-base: `6d12f58a229bc73889878a448c64dc3af25eeba0`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`73643dae`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib sequential_file_input_reuses_its_high_water_allocation -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1326 filtered out` × 3 (`0.02s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib an_oversized_sequential_file_input_does_not_grow_the_cache -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1326 filtered out` × 3 (`0.02s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib sequential_short_read_preserves_destination_and_the_next_request_completes -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1326 filtered out` × 3 (`0.02s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib hle::dstorage:: -- --test-threads=1` (3 consecutive runs) | `34 passed; 0 failed; 0 ignored; 1293 filtered out` × 3 (`0.12s` × 3, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 11s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`6d12f58a229bc73889878a448c64dc3af25eeba0`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1606 (PresentX 1606) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14004 MB ``` PR #2530 (`73643dae7e179eb0dfc2c27d3503aff7e2351f34`): ``` xcl-smoke v1 commit: 73643dae7e179eb0dfc2c27d3503aff7e2351f34 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1594 (PresentX 1595) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14015 MB ``` ### Runtime log observations (`xcl.log`) - `9223` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19552 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14015 MB committed by the process; video memory 6115 MB local, 4686 MB non-local`. ### Limits of coverage - High-water buffer reuse, oversized-request non-retention, and short-read destination preservation in sequential DirectStorage file reads were verified directly via all 3 new unit tests (`3/3` each) and `hle::dstorage::` (`34/34` × 3). - The 60 s retail smoke on `title: 29640639` confirms zero runtime regression in DirectStorage streaming (frame-count delta vs. cached parent reflects single-run startup variance, not this PR); heap allocation rate savings under sustained sequential small-read workloads were not separately profiled. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
throny commented 2026-11-28 03:16:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T03:16:27Z.


merge-check claim
head: 73643dae7e

<!-- greyfinch-sync:ivall/xcl:comment:7232939016 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7232939016). Originally posted by [throny](https://github.com/throny) on 2026-11-28T03:16:27Z. --- merge-check claim head: 73643dae7e179eb0dfc2c27d3503aff7e2351f34
throny commented 2026-11-28 03:30:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T03:30:25Z.


merge-check
base: 753e8b1a
head: 73643dae7e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1515 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1512 passed, 0 failed, 47 ignored
review: none. Only the sequential worker gets a reuse buffer (the parallel path passes none); it is a local buffer per worker and is borrowed only inside one synchronous execute, so no request in flight can see it. Only the bytes just read are exposed, and for uncompressed copies main already forces the destination length to the source length, so the buffer's old tail is never copied to the title. The cap is 64 KiB.
performance: removes one allocation and zeroing per small read; keeps at most 64 KiB per sequential queue; not on the frame path (reasoned).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7233127820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7233127820). Originally posted by [throny](https://github.com/throny) on 2026-11-28T03:30:25Z. --- merge-check base: 753e8b1a head: 73643dae7e179eb0dfc2c27d3503aff7e2351f34 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1515 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1512 passed, 0 failed, 47 ignored review: none. Only the sequential worker gets a reuse buffer (the parallel path passes none); it is a local buffer per worker and is borrowed only inside one synchronous execute, so no request in flight can see it. Only the bytes just read are exposed, and for uncompressed copies main already forces the destination length to the source length, so the buffer's old tail is never copied to the title. The cap is 64 KiB. performance: removes one allocation and zeroing per small read; keeps at most 64 KiB per sequential queue; not on the frame path (reasoned). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
thehollowedone commented 2026-11-28 13:16:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T13:16:53Z.


merge-check
base: e13d6250
head: 73643dae
merge: clean, noncommitting merge on the exact base above; git diff --check clean
build: cargo build --offline --locked -j 4 --workspace passed on the merged tree
tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 on the merged tree: 2,132 passed, 11 failed, 48 ignored, 25 GPU skip notices across 39 targets. Exact-main control with the same command: 2,129 passed, the same 11 failed, 48 ignored, 25 skip notices across 39 targets. All three new DirectStorage tests passed; no failure was introduced by the merge in this paired run. The eleven existing failures are in DXIL/MSAA, GPU recompilation, and e2e tests, not DirectStorage. An earlier merged run had two additional transient failures; both passed alone, and neither recurred in the matched latest-base pair.
review: no actionable blocker in the full three-file diff. Each sequential worker retains at most 64 KiB of input storage; a short read exits before decode or destination delivery. Parallel workers keep their existing staging path and FIFO status behavior. The PR already includes clean-commit paired smoke blocks and its own allocation probe.
performance: local benchmark and retail world-load timing not run for this check. The code avoids repeated allocation and zeroing for successful small sequential reads; the PR author's measured probe and smoke are in the description.
verdict: safe to merge from this independent merge, build, test, and code check; the unrelated baseline failures and normal CI/maintainer gates remain visible.
Hardware: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) ran the merge/build/suites and reviewed the diff; Codex (GPT-6.2 Astra) independently reviewed the DirectStorage ownership and ordering.

<!-- greyfinch-sync:ivall/xcl:comment:7239824094 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2530#issuecomment-7239824094). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T13:16:53Z. --- merge-check base: [e13d6250](https://github.com/xcl-dev/xcl/commit/e13d6250432d486502971781e9589a330e548d24) head: [73643dae](https://github.com/xcl-dev/xcl/commit/73643dae7e179eb0dfc2c27d3503aff7e2351f34) merge: clean, noncommitting merge on the exact base above; `git diff --check` clean build: `cargo build --offline --locked -j 4 --workspace` passed on the merged tree tests: `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` on the merged tree: 2,132 passed, 11 failed, 48 ignored, 25 GPU skip notices across 39 targets. Exact-main control with the same command: 2,129 passed, the same 11 failed, 48 ignored, 25 skip notices across 39 targets. All three new DirectStorage tests passed; no failure was introduced by the merge in this paired run. The eleven existing failures are in DXIL/MSAA, GPU recompilation, and e2e tests, not DirectStorage. An earlier merged run had two additional transient failures; both passed alone, and neither recurred in the matched latest-base pair. review: no actionable blocker in the full three-file diff. Each sequential worker retains at most 64 KiB of input storage; a short read exits before decode or destination delivery. Parallel workers keep their existing staging path and FIFO status behavior. The PR already includes clean-commit paired smoke blocks and its own allocation probe. performance: local benchmark and retail world-load timing not run for this check. The code avoids repeated allocation and zeroing for successful small sequential reads; the PR author's measured probe and smoke are in the description. verdict: safe to merge from this independent merge, build, test, and code check; the unrelated baseline failures and normal CI/maintainer gates remain visible. Hardware: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) ran the merge/build/suites and reviewed the diff; Codex (GPT-6.2 Astra) independently reviewed the DirectStorage ownership and ordering.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2520
No description provided.