D3D12.X: the per-draw mirror sync copies without asking readable() #2427

Open
KOLESNiii wants to merge 2 commits from upstream-pr/2437 into main
KOLESNiii commented 2026-11-25 18:54:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-25T18:54:10Z.


Stacked on #2416; only the top commit (D3D12.X: the per-draw mirror sync copies without asking readable()) belongs here.

sync_title_buffers checked every copy's source, and the indices it scans, with gpu::shader::readable. For a range with a page that is not resident, or over 16 pages, that walks the region with VirtualQuery; the measurement on #2389 saw single calls take 1.1–8.8 ms on the render thread inside a draw. The copy now uses title_textures::copy_committed_pages (ReadProcessMemory, which cannot fault), and the indices are scanned from the index buffer's mirror once copied there.

Fixes #2392. Part of #2389.

This differs from the proposal in #2392 (check once per mirror, again after kernelx frees or reprotects memory): kernelx does not see HeapFree, which releases large heap blocks inside ntdll, so that design still needed a copy that cannot fault, and with one the check had nothing left to protect. No kernelx change.

What is in it

  • crates/xcl/src/hle/d3d12x/list_x.rs: the copy goes through copy_committed_pages; a page the title freed or protected since keeps what the mirror had (before, readable failed and none of the range was copied). Indices are read from the mirror; an index buffer without a mirror is still checked with readable. Two tests: the_mirror_sync_copies_around_a_page_the_title_made_unreadable, and the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable for the other paths with a vertex page made unreadable (an index buffer without a mirror giving the vertex range, a draw with instances, an unreadable index buffer without a mirror: both copy the whole buffer around the page).
  • crates/xcl/src/hle/d3d12x/title_textures.rs: copy_committed_pages (pub(super)), added in the rebase. It is copy_committed_region without the zeroing of unreadable pages that main added for texture reads (b84e0378). With that zeroing, the sync would overwrite such a page of the mirror with zeros, and the_mirror_sync_copies_around_a_page_the_title_made_unreadable would fail.

Tested

  • NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0; tests in debug, runs in release.

  • Current head 1de6652e (rebased onto main 765b2c5b to resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name.

  • Rebased onto main 336fddda on 2026-11-28. cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 on edee42d3: 2126 passed, 9 failed, 48 ignored; 25 SKIPPED (21 no wave64, 3 refused #1426 forms, 1 no heap windows). The 9 failures are #3093's, the same 9 tests that fail on main 336fddda (2122 passed, 9 failed, 48 ignored, same skips). The results below are from before the rebase.

  • cargo test --workspace -- --test-threads=4 on e426972 (rebased onto #2416's review fix): 1427 passed, 0 failed, 46 ignored; 25 SKIPPED (21 no wave64, 3 refused #1426 forms, 1 no heap windows, as on main).

  • Both new tests fail without the change ("the first page is copied", "the whole buffer is copied") and pass with it.

  • Retail game, menus, 120 s (on the earlier head bb9bea2) with its learned coherent window removed so mirrors are made (a 384 KiB index buffer and a 1.1 MiB vertex buffer at 32.5 s), XCL_ACTIVITY counters from #2416, 43 two-second windows each, mean per 2 s:

    #2416 (bb01e85) this PR
    draws synced / copies / KB copied 775 / 1,192 / 10,716 778 / 1,197 / 10,766
    readable() calls, time 1,788, 1.30 ms 0
    slowest readable() 0.15 ms –
    time in the sync: median, max 4.74 ms, 5.09 ms 4.74 ms, 4.97 ms

    The time readable() took went to the copy instead: no change on average. The slow readable() calls of #2389 (1–9 ms) did not occur in the bb01e85 run, so this run does not show the stall going away; what the change removes is the code path that made it.

Regression run

Current head 1de6652e, rebased onto main 765b2c5b on 2026-11-28 to resolve conflicts with main. RTX 2070 SUPER, the retail game, 60 s, XCL_PRESS_AT=25:A, XCL_PREPARE=0 (no startup shader preparation), release builds; each run started from a copy of the same DXIL cache (one queue job: main, then PR heads one after the other).

main:

xcl-smoke v1
commit: 7db2f391cefd748d47c7de63d50dd43ebb852185
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1530 (PresentX 1530)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 17023 MB

This PR's head:

xcl-smoke v1
commit: 1de6652ef26f357f7831e3dd6525a0cbe04c6f57
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1511 (PresentX 1511)
presents per 2 s (last 3): 61 60 61
device removals: 0
crashes: 0
peak commit: 17216 MB

Not tested

  • The regression runs skip startup shader preparation (XCL_PREPARE=0): shaders are built when the title first uses them, on main and on this PR alike.
  • In a title: a draw whose source is actually unreadable, instanced or whole-buffer copies, and an index buffer without a mirror (none in these menus; only in the unit tests).
  • The game's world; AMD and Intel GPUs, wave64.

AI use

  • Claude Code with Claude Opus 5.5: wrote the code, the test, the commit message and this description, and ran the tests and the runs.
  • Claude Code (Claude Opus 5.5) rebased it onto main 336fddda, ran the suite and the regression runs and updated this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5497277848 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-25T18:54:10Z. --- Stacked on #2416; only the top commit (`D3D12.X: the per-draw mirror sync copies without asking readable()`) belongs here. `sync_title_buffers` checked every copy's source, and the indices it scans, with `gpu::shader::readable`. For a range with a page that is not resident, or over 16 pages, that walks the region with `VirtualQuery`; the measurement on #2389 saw single calls take 1.1–8.8 ms on the render thread inside a draw. The copy now uses `title_textures::copy_committed_pages` (`ReadProcessMemory`, which cannot fault), and the indices are scanned from the index buffer's mirror once copied there. Fixes #2392. Part of #2389. This differs from the proposal in #2392 (check once per mirror, again after kernelx frees or reprotects memory): kernelx does not see `HeapFree`, which releases large heap blocks inside ntdll, so that design still needed a copy that cannot fault, and with one the check had nothing left to protect. No kernelx change. **What is in it** - `crates/xcl/src/hle/d3d12x/list_x.rs`: the copy goes through `copy_committed_pages`; a page the title freed or protected since keeps what the mirror had (before, `readable` failed and none of the range was copied). Indices are read from the mirror; an index buffer without a mirror is still checked with `readable`. Two tests: `the_mirror_sync_copies_around_a_page_the_title_made_unreadable`, and `the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable` for the other paths with a vertex page made unreadable (an index buffer without a mirror giving the vertex range, a draw with instances, an unreadable index buffer without a mirror: both copy the whole buffer around the page). - `crates/xcl/src/hle/d3d12x/title_textures.rs`: `copy_committed_pages` (`pub(super)`), added in the rebase. It is `copy_committed_region` without the zeroing of unreadable pages that `main` added for texture reads (b84e0378). With that zeroing, the sync would overwrite such a page of the mirror with zeros, and `the_mirror_sync_copies_around_a_page_the_title_made_unreadable` would fail. **Tested** - NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0; tests in debug, runs in release. - Current head `1de6652e` (rebased onto `main` `765b2c5b` to resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name. - Rebased onto `main` `336fddda` on 2026-11-28. `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4` on `edee42d3`: 2126 passed, 9 failed, 48 ignored; 25 SKIPPED (21 `no wave64`, 3 refused #1426 forms, 1 `no heap windows`). The 9 failures are #3093's, the same 9 tests that fail on `main` `336fddda` (2122 passed, 9 failed, 48 ignored, same skips). The results below are from before the rebase. - `cargo test --workspace -- --test-threads=4` on `e426972` (rebased onto #2416's review fix): 1427 passed, 0 failed, 46 ignored; 25 SKIPPED (21 `no wave64`, 3 refused #1426 forms, 1 `no heap windows`, as on `main`). - Both new tests fail without the change ("the first page is copied", "the whole buffer is copied") and pass with it. - Retail game, menus, 120 s (on the earlier head `bb9bea2`) with its learned coherent window removed so mirrors are made (a 384 KiB index buffer and a 1.1 MiB vertex buffer at 32.5 s), `XCL_ACTIVITY` counters from #2416, 43 two-second windows each, mean per 2 s: | | #2416 (`bb01e85`) | this PR | |---|---|---| | draws synced / copies / KB copied | 775 / 1,192 / 10,716 | 778 / 1,197 / 10,766 | | `readable()` calls, time | 1,788, 1.30 ms | 0 | | slowest `readable()` | 0.15 ms | – | | time in the sync: median, max | 4.74 ms, 5.09 ms | 4.74 ms, 4.97 ms | The time `readable()` took went to the copy instead: no change on average. The slow `readable()` calls of #2389 (1–9 ms) did not occur in the `bb01e85` run, so this run does not show the stall going away; what the change removes is the code path that made it. **Regression run** Current head `1de6652e`, rebased onto `main` `765b2c5b` on 2026-11-28 to resolve conflicts with `main`. RTX 2070 SUPER, the retail game, 60 s, `XCL_PRESS_AT=25:A`, `XCL_PREPARE=0` (no startup shader preparation), release builds; each run started from a copy of the same DXIL cache (one queue job: `main`, then PR heads one after the other). `main`: ``` xcl-smoke v1 commit: 7db2f391cefd748d47c7de63d50dd43ebb852185 gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1530 (PresentX 1530) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 17023 MB ``` This PR's head: ``` xcl-smoke v1 commit: 1de6652ef26f357f7831e3dd6525a0cbe04c6f57 gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1511 (PresentX 1511) presents per 2 s (last 3): 61 60 61 device removals: 0 crashes: 0 peak commit: 17216 MB ``` **Not tested** - The regression runs skip startup shader preparation (`XCL_PREPARE=0`): shaders are built when the title first uses them, on `main` and on this PR alike. - In a title: a draw whose source is actually unreadable, instanced or whole-buffer copies, and an index buffer without a mirror (none in these menus; only in the unit tests). - The game's world; AMD and Intel GPUs, wave64. **AI use** - Claude Code with Claude Opus 5.5: wrote the code, the test, the commit message and this description, and ran the tests and the runs. - Claude Code (Claude Opus 5.5) rebased it onto `main` `336fddda`, ran the suite and the regression runs and updated this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
SlopTart commented 2026-11-25 20:08:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T19:46:24Z.


gpu_ suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth is gpu_promoted_uav_clear_values_pass_create_committed_resource, newly red on main since #2280 (report), unrelated to this PR.
Targeted run of the_mirror_sync_copies_around_a_page_the_title_made_unreadable: passed.

<!-- greyfinch-sync:ivall/xcl:comment:7172746857 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7172746857). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T19:46:24Z. --- `gpu_` suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth is `gpu_promoted_uav_clear_values_pass_create_committed_resource`, newly red on main since #2280 ([report](https://github.com/xcl-dev/xcl/pull/2280#issuecomment-7172066690)), unrelated to this PR. Targeted run of `the_mirror_sync_copies_around_a_page_the_title_made_unreadable`: passed.
DavidM1911 commented 2026-11-25 20:08:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:54:42Z.


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:7172931779 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7172931779). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T19:54:42Z. --- 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!
bmjask commented 2026-11-25 20:49:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:49:15Z.

Review: COMMENTED


No concrete source-level defect found. copy_committed_region preserves prior mirror bytes for inaccessible pages while copying surrounding committed data, and mirrored-index range selection matches what the GPU draws; the focused test is useful. Merge evidence is incomplete: no current Windows build/test, and title validation did not exercise inaccessible sources, whole-buffer copies, instancing, or unmirrored indices. The XCL_ACTIVITY overhead is inherited from stacked #2416 and should be addressed there.

<!-- greyfinch-sync:ivall/xcl:review:6064791295 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#pullrequestreview-6064791295). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:49:15Z. **Review:** COMMENTED --- No concrete source-level defect found. copy_committed_region preserves prior mirror bytes for inaccessible pages while copying surrounding committed data, and mirrored-index range selection matches what the GPU draws; the focused test is useful. Merge evidence is incomplete: no current Windows build/test, and title validation did not exercise inaccessible sources, whole-buffer copies, instancing, or unmirrored indices. The XCL_ACTIVITY overhead is inherited from stacked #2416 and should be addressed there.
emirduran707 commented 2026-11-25 21:05:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T20:50:12Z.


Independent AMD RDNA4 (native wave64) test report on exact head bb9bea21b5ab3520e4f8cfa1ffe5f4afd988efeb (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1274 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • The PR's test passed: hle::d3d12x::list_x::tests::the_mirror_sync_copies_around_a_page_the_title_made_unreadable.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: bb9bea21b5ab3520e4f8cfa1ffe5f4afd988efeb
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1619 (PresentX 1619)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13966 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7174253523 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7174253523). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T20:50:12Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `bb9bea21b5ab3520e4f8cfa1ffe5f4afd988efeb` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1274 passed, 2 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - The PR's test passed: `hle::d3d12x::list_x::tests::the_mirror_sync_copies_around_a_page_the_title_made_unreadable`. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU. **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: bb9bea21b5ab3520e4f8cfa1ffe5f4afd988efeb gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1619 (PresentX 1619) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13966 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
KOLESNiii commented 2026-11-25 23:09:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-25T22:39:32Z.


Thanks. On the three points:

  • XCL_ACTIVITY overhead: fixed in #2416 (the counters are off until host_main enables them for XCL_ACTIVITY). This PR is rebased onto it; head is now c24fbbf, on #2416's fdbb6fe.
  • Paths the title runs did not reach: new unit test the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable. With a vertex page made unreadable it checks three things: an index buffer without a mirror gives the vertex range when it is readable; a draw with instances copies the whole buffer around the page; an unreadable index buffer without a mirror does the same. It fails without the change. A title run still does not reach these paths; that is under Not tested.
  • Windows build/test: cargo test --workspace -- --test-threads=4 on c24fbbf (RTX 2070 SUPER): 1426 passed, 0 failed, 46 ignored, 25 SKIPPED. The CI workflow for this fork PR is waiting for a maintainer to approve it (action_required). New smoke block in the description.

(Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7176633978 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7176633978). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-25T22:39:32Z. --- Thanks. On the three points: - **`XCL_ACTIVITY` overhead:** fixed in #2416 (the counters are off until `host_main` enables them for `XCL_ACTIVITY`). This PR is rebased onto it; head is now c24fbbf, on #2416's fdbb6fe. - **Paths the title runs did not reach:** new unit test `the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable`. With a vertex page made unreadable it checks three things: an index buffer without a mirror gives the vertex range when it is readable; a draw with instances copies the whole buffer around the page; an unreadable index buffer without a mirror does the same. It fails without the change. A title run still does not reach these paths; that is under **Not tested**. - **Windows build/test:** `cargo test --workspace -- --test-threads=4` on c24fbbf (RTX 2070 SUPER): 1426 passed, 0 failed, 46 ignored, 25 SKIPPED. The `CI` workflow for this fork PR is waiting for a maintainer to approve it (`action_required`). New smoke block in the description. (Claude Code, Claude Opus 5.5)
DavidM1911 commented 2026-11-26 03:06:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T02:12:22Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7180566196 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7180566196). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T02:12:22Z. --- 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
Prime1997 commented 2026-11-26 13:06:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:06:14Z.

Review: COMMENTED


Good within the reviewed scope; retain for integration. The owned-memory mirror-copy change is worth keeping. It copies the readable portions around inaccessible pages and preserves prior destination bytes for inaccessible spans.

PR head e4269721c2795213b996c09ce0b90daf4c461287 integrated locally with current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. The detached worktree remains at main with the combined changes staged, tree e2e760fee2adae36ee394e4ef9affaa79ea87b2a; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 e7b219da2d886b5b1885a4fc3d0d469df9f3f15f87b2beb9e468a4ada1dfdd0c.

Targeted result: 2 passed, 0 failed, 0 ignored, 0 skipped. Each exact filter ran in a fresh process:

  • hle::d3d12x::list_x::tests::the_mirror_sync_copies_around_a_page_the_title_made_unreadable
  • hle::d3d12x::list_x::tests::the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run: <test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work.

Not tested: These are two owned-memory CPU fixtures, not GPU mirror coherence or a title performance measurement. The integration includes the PR stack parent #2416; it is not a standalone top-commit test. No whole suite or retail smoke was run for this batch; this is not merge certification.

AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074635495 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#pullrequestreview-6074635495). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:06:14Z. **Review:** COMMENTED --- **Good within the reviewed scope; retain for integration.** The owned-memory mirror-copy change is worth keeping. It copies the readable portions around inaccessible pages and preserves prior destination bytes for inaccessible spans. PR head `e4269721c2795213b996c09ce0b90daf4c461287` integrated locally with current main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. The detached worktree remains at main with the combined changes staged, tree `e2e760fee2adae36ee394e4ef9affaa79ea87b2a`; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 `e7b219da2d886b5b1885a4fc3d0d469df9f3f15f87b2beb9e468a4ada1dfdd0c`. **Targeted result: 2 passed, 0 failed, 0 ignored, 0 skipped.** Each exact filter ran in a fresh process: - `hle::d3d12x::list_x::tests::the_mirror_sync_copies_around_a_page_the_title_made_unreadable` - `hle::d3d12x::list_x::tests::the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable` Build: `cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>`. Run: `<test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture`. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work. **Not tested:** These are two owned-memory CPU fixtures, not GPU mirror coherence or a title performance measurement. The integration includes the PR stack parent #2416; it is not a standalone top-commit test. No whole suite or retail smoke was run for this batch; this is not merge certification. AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
Decodere commented 2026-11-26 17:11:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T17:11:01Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2437 at e4269721c2795213b996c09ce0b90daf4c461287 (2 commits on merge-base origin/main e1d84b7d9153f86a97d2ec5d209d196046fc0bea; stacked on parent PR #2416 49f04749263990a586038c9adb19bba1eaac1828). Measurements and targeted test results only; not a full source review.

Setup

  • 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 (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit & GPU tests (e4269721)

  • cargo test --release -p xcl --lib the_mirror_sync_copies_around_a_page_the_title_made_unreadable -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib the_mirror_sync_counts_only_once_xcl_activity_enables_it -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib a_mirror_sync_row_with_no_finished_draw_is_still_logged -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::title_textures:: (3 consecutive parallel passes): 19 passed, 0 failed, 0 ignored on all 3 passes (0.82 s / 0.80 s / 0.79 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::list_x:: (3 consecutive parallel passes): 44 passed, 0 failed, 0 ignored on all 3 passes (0.78 s / 0.77 s / 0.78 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (merge-base e1d84b7d vs e4269721)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (e4269721 vs e1d84b7d xcl.log: 6,176 / 6,115 MB vs 6,116 / 6,116 MB peak/end local VRAM, 4,682 MB vs 4,650 MB end non-local VRAM, 19,459 vs 19,261 translated draws / 1,024 dispatches with 0 skipped).

Merge-base origin/main (e1d84b7d):

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

PR #2437 head (e4269721):

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

Limits of coverage

  • Full workspace test suite was not run on e4269721 (only the 4 targeted tests individually, 3 parallel passes each of title_textures:: and list_x::, release build, and paired 60 s smokes).
  • The 60 s default-flags menu/intro smoke did not run with XCL_ACTIVITY=1 or heavy in-world mirrored-buffer churn; copying around unreadable pages without readable() was exercised by the targeted release unit tests above rather than live unreadable-page faults during the smoke.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit/GPU tests, release build, and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7198617612 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7198617612). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T17:11:01Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2437 at `e4269721c2795213b996c09ce0b90daf4c461287`** (2 commits on merge-base `origin/main` `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`; stacked on parent PR #2416 `49f04749263990a586038c9adb19bba1eaac1828`). Measurements and targeted test results only; not a full source review. ### Setup - **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 (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags, no input) ### Targeted RTX 4060 release unit & GPU tests (`e4269721`) - `cargo test --release -p xcl --lib the_mirror_sync_copies_around_a_page_the_title_made_unreadable -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.02 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.02 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib the_mirror_sync_counts_only_once_xcl_activity_enables_it -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.02 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib a_mirror_sync_row_with_no_finished_draw_is_still_logged -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.00 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::title_textures::` (3 consecutive parallel passes): **19 passed, 0 failed, 0 ignored** on all 3 passes (`0.82 s` / `0.80 s` / `0.79 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::list_x::` (3 consecutive parallel passes): **44 passed, 0 failed, 0 ignored** on all 3 passes (`0.78 s` / `0.77 s` / `0.78 s`, `0` `SKIPPED`). ### Paired 60 s RTX 4060 smoke (merge-base `e1d84b7d` vs `e4269721`) Both runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`e4269721` vs `e1d84b7d` `xcl.log`: `6,176` / `6,115 MB` vs `6,116` / `6,116 MB` peak/end local VRAM, `4,682 MB` vs `4,650 MB` end non-local VRAM, `19,459` vs `19,261` translated draws / `1,024` dispatches with `0` skipped). Merge-base `origin/main` (`e1d84b7d`): ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1531 (PresentX 1531) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13982 MB ``` PR #2437 head (`e4269721`): ``` xcl-smoke v1 commit: e4269721c2795213b996c09ce0b90daf4c461287 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1564 (PresentX 1564) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14020 MB ``` ### Limits of coverage - Full workspace test suite was not run on `e4269721` (only the 4 targeted tests individually, 3 parallel passes each of `title_textures::` and `list_x::`, release build, and paired 60 s smokes). - The 60 s default-flags menu/intro smoke did not run with `XCL_ACTIVITY=1` or heavy in-world mirrored-buffer churn; copying around unreadable pages without `readable()` was exercised by the targeted release unit tests above rather than live unreadable-page faults during the smoke. - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release unit/GPU tests, release build, and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
thehollowedone commented 2026-11-26 18:53:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T18:53:10Z.


Independent Windows RTX 3080 Ti test of PR #2437 head e4269721c2795213b996c09ce0b90daf4c461287, stacked on #2416 at 49f04749. Clean detached checkout; NVIDIA RTX 3080 Ti (driver 621.35), Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11.

Tested

  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked -p xcl --lib the_mirror_sync_copies_ -- --test-threads=1 --nocapture: 2 passed, 0 failed, 0 ignored, covering both new inaccessible-page mirror-copy tests.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture: 1,426 passed, 1 failed, 46 ignored across 37 test targets. There were 25 GPU skip notices: 21 no wave64, 3 unsupported per-lane forms (#1426), and 1 no heap windows. These skips are not GPU coverage.
  • The sole failure was gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (cached_only console_mesh hit: "DXIL not compiled yet"). A separate exact-filter run also failed on this head (0 passed, 1 failed) and on its exact parent 49f04749263990a586038c9adb19bba1eaac1828 with the same error (0 passed, 1 failed). This comparison points to an existing failure on the stack parent; the full suite is still red here.

Not tested: Retail title smoke or pacing, AMD/Intel GPUs, inaccessible-source behavior in a title run. The two focused fixtures are synthetic; I made no title-performance claim.

AI use: Codex (GPT-6.2 Sol) selected and ran the tests, checked the exact revisions and results, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7200958942 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7200958942). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T18:53:10Z. --- Independent Windows RTX 3080 Ti test of [PR #2437 head `e4269721c2795213b996c09ce0b90daf4c461287`](https://github.com/xcl-dev/xcl/commit/e4269721c2795213b996c09ce0b90daf4c461287), stacked on [#2416 at `49f04749`](https://github.com/xcl-dev/xcl/commit/49f04749263990a586038c9adb19bba1eaac1828). Clean detached checkout; NVIDIA RTX 3080 Ti (driver 621.35), Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11. **Tested** - `cargo build --offline --locked --workspace`: passed. - `cargo test --offline --locked -p xcl --lib the_mirror_sync_copies_ -- --test-threads=1 --nocapture`: **2 passed, 0 failed, 0 ignored**, covering both new inaccessible-page mirror-copy tests. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture`: **1,426 passed, 1 failed, 46 ignored** across 37 test targets. There were **25 GPU skip notices**: 21 no wave64, 3 unsupported per-lane forms (#1426), and 1 no heap windows. These skips are not GPU coverage. - The sole failure was `gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (`cached_only console_mesh hit: "DXIL not compiled yet"`). A separate exact-filter run also failed on this head (**0 passed, 1 failed**) and on its exact parent `49f04749263990a586038c9adb19bba1eaac1828` with the same error (**0 passed, 1 failed**). This comparison points to an existing failure on the stack parent; the full suite is still red here. **Not tested:** Retail title smoke or pacing, AMD/Intel GPUs, inaccessible-source behavior in a title run. The two focused fixtures are synthetic; I made no title-performance claim. AI use: Codex (GPT-6.2 Sol) selected and ran the tests, checked the exact revisions and results, and drafted this report.
thehollowedone commented 2026-11-26 18:58:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T18:58:19Z.


Correction to my earlier exact-head #2437 report: the shader-cache failure was sensitive to the DXIL cache location in this test environment.

On the same clean head e4269721c2795213b996c09ce0b90daf4c461287, I set XCL_DXIL_CACHE to a fresh writable directory under this worktree, then ran cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture. Result: 1,427 passed, 0 failed, 46 ignored across 37 targets, with the same 25 GPU skip notices (21 no wave64, 3 refused per-lane forms, 1 no heap windows). console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk passed in the suite and in a separate exact-filter run (1 passed, 0 failed, 0 ignored). The two new mirror-copy tests had already passed 2/2 without this cache setting.

Without that setting, the exact shader-cache filter failed on both this head and its parent with DXIL not compiled yet. The test needs a persisted pass-through DXIL file for its cached_only repeat; this controlled rerun is consistent with a default-cache-path problem here. I did not directly prove which default-path write failed. The earlier red suite should not be read as evidence that #2437 introduced a shader-cache regression.

Same RTX 3080 Ti / Windows 11 setup as the linked report. No retail run or title pacing measurement. AI use: Codex (GPT-6.2 Sol) traced the cache path, ran the controlled tests, checked the results, and drafted this correction.

<!-- greyfinch-sync:ivall/xcl:comment:7201055004 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7201055004). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T18:58:19Z. --- Correction to [my earlier exact-head #2437 report](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7200958942): the shader-cache failure was sensitive to the DXIL cache location in this test environment. On the same clean [head `e4269721c2795213b996c09ce0b90daf4c461287`](https://github.com/xcl-dev/xcl/commit/e4269721c2795213b996c09ce0b90daf4c461287), I set `XCL_DXIL_CACHE` to a fresh writable directory under this worktree, then ran `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture`. Result: **1,427 passed, 0 failed, 46 ignored** across 37 targets, with the same **25 GPU skip notices** (21 no wave64, 3 refused per-lane forms, 1 no heap windows). `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` passed in the suite and in a separate exact-filter run (**1 passed, 0 failed, 0 ignored**). The two new mirror-copy tests had already passed **2/2** without this cache setting. Without that setting, the exact shader-cache filter failed on both this head and its parent with `DXIL not compiled yet`. The test needs a persisted pass-through DXIL file for its `cached_only` repeat; this controlled rerun is consistent with a default-cache-path problem here. I did not directly prove which default-path write failed. The earlier red suite should **not** be read as evidence that #2437 introduced a shader-cache regression. Same RTX 3080 Ti / Windows 11 setup as the linked report. No retail run or title pacing measurement. AI use: Codex (GPT-6.2 Sol) traced the cache path, ran the controlled tests, checked the results, and drafted this correction.
a-DuckGod commented 2026-11-26 19:15:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by a-DuckGod on 2026-11-26T19:15:36Z.


Independent full-suite Windows 11 / NVIDIA test report on exact PR head e4269721c2795213b996c09ce0b90daf4c461287 (clean detached checkout; merge-base e1d84b7d; stacked on #2416).

Tested

  • Hardware / OS / toolchain: NVIDIA GeForce RTX 3080 Ti (12 GB, wave32, mesh shaders), driver 32.0.16.2114; Intel Core i7-8700K, 32 GB RAM; Windows 11 Pro (Version Dev 29708.1003); rustc 1.100.0 (0ef1bc386 2026-11-09) (x86_64-pc-windows-msvc), Windows SDK DXC 1.8.2502.11, D3D12 debug layer installed, debug build.
  • cargo build --workspace: succeeded.
  • cargo test -p xcl --lib the_mirror_sync -- --nocapture: 3 passed, 0 failed, 0 ignored, 0 skipped (the_mirror_sync_copies_around_a_page_the_title_made_unreadable, the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable, the_mirror_sync_counts_only_once_xcl_activity_enables_it).
  • cargo test -p xcl --lib a_mirror_sync_row_with_no_finished_draw_is_still_logged -- --nocapture: 1 passed, 0 failed, 0 ignored, 0 skipped.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1427 passed, 0 failed, 46 ignored (including all e2e tests under the D3D12 debug layer and DRED).
  • SKIPPED GPU tests (25): 20 no wave64 (RTX 3080 Ti is 32-lane waves only), 3 per-lane #1426 refused forms (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32), 1 shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (cannot disable driver cache; Windows Developer Mode required), 1 heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Not tested

  • Release build, retail title / scripts/smoke.ps1 run, XCL_SAMPLE_* tests, AMD / Intel / native wave64 GPUs.

AI use

  • Antigravity (Gemini 4 Neon) checked out the PR, read commit e4269721 (and copy_committed_region), ran the build and tests, and drafted this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7201377683 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7201377683). Originally posted by [a-DuckGod](https://github.com/a-DuckGod) on 2026-11-26T19:15:36Z. --- Independent full-suite Windows 11 / NVIDIA test report on exact PR head `e4269721c2795213b996c09ce0b90daf4c461287` (clean detached checkout; merge-base `e1d84b7d`; stacked on #2416). **Tested** - Hardware / OS / toolchain: NVIDIA GeForce RTX 3080 Ti (12 GB, wave32, mesh shaders), driver 32.0.16.2114; Intel Core i7-8700K, 32 GB RAM; Windows 11 Pro (Version Dev 29708.1003); `rustc 1.100.0 (0ef1bc386 2026-11-09)` (`x86_64-pc-windows-msvc`), Windows SDK DXC `1.8.2502.11`, D3D12 debug layer installed, debug build. - `cargo build --workspace`: succeeded. - `cargo test -p xcl --lib the_mirror_sync -- --nocapture`: **3 passed, 0 failed, 0 ignored, 0 skipped** (`the_mirror_sync_copies_around_a_page_the_title_made_unreadable`, `the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable`, `the_mirror_sync_counts_only_once_xcl_activity_enables_it`). - `cargo test -p xcl --lib a_mirror_sync_row_with_no_finished_draw_is_still_logged -- --nocapture`: **1 passed, 0 failed, 0 ignored, 0 skipped**. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **1427 passed, 0 failed, 46 ignored** (including all `e2e` tests under the D3D12 debug layer and DRED). - `SKIPPED` GPU tests (25): 20 `no wave64` (RTX 3080 Ti is 32-lane waves only), 3 per-lane #1426 refused forms (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32`), 1 `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` (cannot disable driver cache; Windows Developer Mode required), 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` (`no heap windows`). **Not tested** - Release build, retail title / `scripts/smoke.ps1` run, `XCL_SAMPLE_*` tests, AMD / Intel / native wave64 GPUs. **AI use** - Antigravity (Gemini 4 Neon) checked out the PR, read commit `e4269721` (and `copy_committed_region`), ran the build and tests, and drafted this report. I checked it before posting.
KOLESNiii commented 2026-11-26 19:35:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T19:35:38Z.


Thanks for the follow-up. That diagnosis is right, and the failure isn't in this PR: on main, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk writes the pass-through MS DXIL to the default %LOCALAPPDATA%\xcl\dxil, and its cached_only repeat needs that file. When the folder can't be written, the store fails silently and the repeat gets DXIL not compiled yet. I reproduced it by pointing LOCALAPPDATA at a file; with a writable default cache the test passes.

AI use: Claude Code, Claude Opus 5.5.

<!-- greyfinch-sync:ivall/xcl:comment:7201757025 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7201757025). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-26T19:35:38Z. --- Thanks for the follow-up. That diagnosis is right, and the failure isn't in this PR: on `main`, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` writes the pass-through MS DXIL to the default `%LOCALAPPDATA%\xcl\dxil`, and its `cached_only` repeat needs that file. When the folder can't be written, the store fails silently and the repeat gets `DXIL not compiled yet`. I reproduced it by pointing `LOCALAPPDATA` at a file; with a writable default cache the test passes. AI use: Claude Code, Claude Opus 5.5.
Foniass commented 2026-12-01 08:04:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:04:39Z.


Triage (#1607) – head 1de6652

This is stacked on #2416; only the top commit belongs here. #2533 is stacked on this PR and contains this commit, so it is not a competing change. Main's sync_title_buffers still calls readable() before every copy and before scanning the indices.
The diff matches the description, with two mismatches: the description names the new helper copy_committed_region_keeping, but the code adds copy_committed_pages in title_textures.rs. The commit body also has a line missing before 'reprotects memory. kernelx does not see HeapFree…'. No problems found in the code. The branch conflicts with main.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304842380 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7304842380). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:04:39Z. --- **Triage (#1607)** – head 1de6652 This is stacked on #2416; only the top commit belongs here. #2533 is stacked on this PR and contains this commit, so it is not a competing change. Main's `sync_title_buffers` still calls `readable()` before every copy and before scanning the indices. The diff matches the description, with two mismatches: the description names the new helper `copy_committed_region_keeping`, but the code adds `copy_committed_pages` in title_textures.rs. The commit body also has a line missing before 'reprotects memory. kernelx does not see HeapFree…'. No problems found in the code. The branch conflicts with main. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
KOLESNiii commented 2026-12-02 15:33:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-02T15:33:52Z.


@Foniass fixed both mismatches:

  • the description now names copy_committed_pages (the helper the sync calls, title_textures.rs), not copy_committed_region_keeping;
  • the commit body has its missing line back ("This differs from the proposal in #2392 (check once per mirror, again after kernelx frees or reprotects memory). kernelx does not see HeapFree, …"), and it names copy_committed_pages too.

No code change. Rebased onto #2416's new head; new head 2935bc3b. Suite and smoke are queued again.

— Claude Code (Claude Opus 5.5), on behalf of the PR author

<!-- greyfinch-sync:ivall/xcl:comment:7350538834 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7350538834). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-02T15:33:52Z. --- @Foniass fixed both mismatches: - the description now names `copy_committed_pages` (the helper the sync calls, `title_textures.rs`), not `copy_committed_region_keeping`; - the commit body has its missing line back ("This differs from the proposal in #2392 (check once per mirror, again after kernelx frees or reprotects memory). kernelx does not see HeapFree, …"), and it names `copy_committed_pages` too. No code change. Rebased onto #2416's new head; new head `2935bc3b`. Suite and smoke are queued again. — Claude Code (Claude Opus 5.5), on behalf of the PR author
Foniass commented 2026-12-02 15:35:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T15:35:12Z.


Follow-up review (head 2935bc3b, since 1de6652, diff read, not a merge-check; checks red):

  • Earlier points: unchanged; this push is a rebase onto the current main, with the copy renamed to title_textures::copy_committed_pages as main now calls it and the commit message reworded (#2533 carries the same commits).

New: none.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7350576876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2437#issuecomment-7350576876). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T15:35:12Z. --- Follow-up review (head 2935bc3b, since 1de6652, diff read, not a merge-check; checks red): - **Earlier points:** unchanged; this push is a rebase onto the current `main`, with the copy renamed to `title_textures::copy_committed_pages` as `main` now calls it and the commit message reworded (#2533 carries the same commits). New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2437:upstream-pr/2437'
git switch 'upstream-pr/2437'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2437'
git switch 'upstream-pr/2437'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2437'
git switch 'upstream-pr/2437'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2437'
git switch 'main'
git merge --squash 'upstream-pr/2437'
git switch 'main'
git merge --ff-only 'upstream-pr/2437'
git switch 'main'
git merge 'upstream-pr/2437'
git push origin 'main'
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!2427
No description provided.