HLE: DirectStorage page writes are opened before the bytes land #2564

Open
Calvix2k wants to merge 1 commit from upstream-pr/2566 into main
Calvix2k commented 2026-11-25 15:56:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T15:56:32Z.


Fixes #2503.

The failure

xmem told the write watch about DirectStorage's page-destination writes only after writing: report_written called kernel_will_write and dropped it at once, at the end of write_physical and in PageWindow::drop. watch::writing saves an armed page's bytes before it changes, so reporting after the write saved the bytes DirectStorage had just written. A marked copy-back then compared the copy against those bytes, took the copy's old bytes for the GPU's, and put them back over the streamed data. A title view mapped over the pages while a PageWindow was open was not in the list at all, so its tracker missed the write.

What the change does

  • write_physical opens the title views showing the bytes (write_before → kernel_will_write) before it copies, and drops them when it is done.
  • PageWindow opens them when it is created and holds them until it drops: the decode runs with the pages opened, marked changed, and an armed page keeps what was there before it.
  • Views mapped meanwhile cannot be opened before the write. Both paths tell them at the end with victory_gpu::title_memory_written, a new function in watch.rs that marks the page changed without saving bytes — reading them then would keep the write instead of what it replaced.
  • An address that stops showing a page meanwhile is not told again: the unmap already marked it.

Tests

  • a_window_opens_the_title_views_before_its_bytes: the view is opened when the window is created (a test-only hook records it), and it is not reported again at drop. Before the change nothing was opened and the view was reported at drop.
  • page_windows_report_where_the_pages_show_when_done: a view mapped during the window is still told; the write_physical half now asserts that the existing view is opened and nothing is reported afterwards.
  • a_write_reported_after_the_fact_saves_nothing (watch.rs): the bytes kept for an armed page are the ones from before the write, not the ones the write left.

cargo test -p victory-hle --lib: 147 passed. cargo test -p victory-gpu --features diagnostics --lib: 198 passed, 1 ignored, plus the known placed-view failure on a runtime without ID3D12Device10 (#1999, identical on main). Clippy -D warnings clean on both.

The new title_memory_written is exported next to kernel_will_write; it is the "write already happened" half of the pair, and it keeps saved bytes.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5494683703 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-25T15:56:32Z. --- Fixes #2503. ### The failure `xmem` told the write watch about DirectStorage's page-destination writes only **after** writing: `report_written` called `kernel_will_write` and dropped it at once, at the end of `write_physical` and in `PageWindow::drop`. `watch::writing` saves an armed page's bytes before it changes, so reporting after the write saved the bytes DirectStorage had just written. A marked copy-back then compared the copy against those bytes, took the copy's old bytes for the GPU's, and put them back over the streamed data. A title view mapped over the pages while a `PageWindow` was open was not in the list at all, so its tracker missed the write. ### What the change does - `write_physical` opens the title views showing the bytes (`write_before` → `kernel_will_write`) before it copies, and drops them when it is done. - `PageWindow` opens them when it is created and holds them until it drops: the decode runs with the pages opened, marked changed, and an armed page keeps what was there before it. - Views mapped meanwhile cannot be opened before the write. Both paths tell them at the end with `victory_gpu::title_memory_written`, a new function in `watch.rs` that marks the page changed **without** saving bytes — reading them then would keep the write instead of what it replaced. - An address that stops showing a page meanwhile is not told again: the unmap already marked it. ### Tests - `a_window_opens_the_title_views_before_its_bytes`: the view is opened when the window is created (a test-only hook records it), and it is not reported again at drop. Before the change nothing was opened and the view was reported at drop. - `page_windows_report_where_the_pages_show_when_done`: a view mapped during the window is still told; the `write_physical` half now asserts that the existing view is opened and nothing is reported afterwards. - `a_write_reported_after_the_fact_saves_nothing` (`watch.rs`): the bytes kept for an armed page are the ones from before the write, not the ones the write left. `cargo test -p victory-hle --lib`: **147 passed**. `cargo test -p victory-gpu --features diagnostics --lib`: **198 passed**, 1 ignored, plus the known placed-view failure on a runtime without `ID3D12Device10` (#1999, identical on `main`). Clippy `-D warnings` clean on both. The new `title_memory_written` is exported next to `kernel_will_write`; it is the "write already happened" half of the pair, and it keeps saved bytes.
Vedoxdev123 commented 2026-11-25 16:09:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Vedoxdev123 on 2026-11-25T16:09:16Z.


Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (AI-assisted):

cargo test -p victory-gpu --lib -> 194 passed; 2 failed; 1 ignored (up from 192 passed; 3 failed on main; new tests pass and views_bound_while_another_slot_gets_its_texture_do_not_wait passes).

Only the 2 known 1,000,000 view heap cap tests (dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views from #1744) remain.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167640402 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7167640402). Originally posted by [Vedoxdev123](https://github.com/Vedoxdev123) on 2026-11-25T16:09:16Z. --- Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (AI-assisted): `cargo test -p victory-gpu --lib` -> **194 passed; 2 failed; 1 ignored** (up from `192 passed; 3 failed` on `main`; new tests pass and `views_bound_while_another_slot_gets_its_texture_do_not_wait` passes). Only the 2 known 1,000,000 view heap cap tests (`dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views` from #1744) remain.
oni-swr commented 2026-11-25 17:05:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-25T16:12:06Z.


Independent verification (software WARP only)

  • PR head: ea51877ec80881c007999fd07b937bc6ebd9c0b3 (checked out detached)
  • origin/main: 67e8ae1401df112248aed36d0024483181b718b7; read-only git merge-tree --write-tree origin/main <head> merges cleanly (exit 0); GitHub reports MERGEABLE.
  • Environment: Windows 11 Pro 10.0.26200, rustc 1.98.1, VICTORY_D3D12_WARP=1 with VICTORY_DXIL pointing at the Windows SDK 10.0.26100 dxil.dll. Default features, no extra test flags.
  • Not tested: hardware GPU, the title (no game files used).

Commands and results

  • cargo test --locked -p victory-hle
  • cargo test --locked -p victory-gpu
  • focused: cargo test --locked -p victory-hle --lib xmem, cargo test --locked -p victory-gpu --lib a_write_reported_after
  • victory-hle lib: 147 passed, 0 failed (xmem filter: 12 passed, including a_window_opens_the_title_views_before_its_bytes and page_windows_report_where_the_pages_show_when_done); integration tests 1 + 1 passed.
  • victory-gpu lib: 196 passed, 0 failed, 1 ignored (a_write_reported_after_the_fact_saves_nothing passes). The placed-view failure the description mentions does not appear on WARP.

Review: Looks correct. Views are opened (kernel_will_write) before the bytes land and held to the end, so an armed page keeps its pre-write bytes. Views mapped meanwhile are told afterwards with the new title_memory_written, which marks changed without saving. report_new skips addresses already held, so nothing is reported twice. In page_window the view is mapped before the guards open, so the None return leaves no guard behind. No regressions seen in the two crates. Nit only: told/held ordering in PageWindow::drop relies on held being dropped before report_new, which the code does explicitly.

Review and verification by Claude Code (Claude Sonnet 5.5), AI-assisted; no game files, dumps, shader names or hashes involved.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167681647 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7167681647). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T16:12:06Z. --- **Independent verification (software WARP only)** - **PR head:** `ea51877ec80881c007999fd07b937bc6ebd9c0b3` (checked out detached) - **origin/main:** `67e8ae1401df112248aed36d0024483181b718b7`; read-only `git merge-tree --write-tree origin/main <head>` merges cleanly (exit 0); GitHub reports MERGEABLE. - **Environment:** Windows 11 Pro 10.0.26200, rustc 1.98.1, `VICTORY_D3D12_WARP=1` with `VICTORY_DXIL` pointing at the Windows SDK 10.0.26100 `dxil.dll`. Default features, no extra test flags. - **Not tested:** hardware GPU, the title (no game files used). **Commands and results** - `cargo test --locked -p victory-hle` - `cargo test --locked -p victory-gpu` - focused: `cargo test --locked -p victory-hle --lib xmem`, `cargo test --locked -p victory-gpu --lib a_write_reported_after` - victory-hle lib: 147 passed, 0 failed (xmem filter: 12 passed, including `a_window_opens_the_title_views_before_its_bytes` and `page_windows_report_where_the_pages_show_when_done`); integration tests 1 + 1 passed. - victory-gpu lib: 196 passed, 0 failed, 1 ignored (`a_write_reported_after_the_fact_saves_nothing` passes). The placed-view failure the description mentions does not appear on WARP. **Review:** Looks correct. Views are opened (`kernel_will_write`) before the bytes land and held to the end, so an armed page keeps its pre-write bytes. Views mapped meanwhile are told afterwards with the new `title_memory_written`, which marks changed without saving. `report_new` skips addresses already held, so nothing is reported twice. In `page_window` the view is mapped before the guards open, so the `None` return leaves no guard behind. No regressions seen in the two crates. Nit only: `told`/`held` ordering in `PageWindow::drop` relies on `held` being dropped before `report_new`, which the code does explicitly. Review and verification by Claude Code (Claude Sonnet 5.5), AI-assisted; no game files, dumps, shader names or hashes involved.
Marvisak commented 2026-11-25 20:06:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T19:19:22Z.


Automated triage for the maintainers.

Needs rebase. This PR no longer merges cleanly into main: main has moved since the last triage, and the branch now conflicts in crates/victory-gpu/src/watch.rs. It will be reviewed again once it is rebased onto current main.

Previous verdict for this head: merge candidate.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7172136187 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7172136187). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T19:19:22Z. --- <!-- victory-triage v1 head=ea51877ec80881c007999fd07b937bc6ebd9c0b3 verdict=needs-rebase at=2026-11-25T22:16:00Z --> Automated triage for the maintainers. **Needs rebase.** This PR no longer merges cleanly into `main`: `main` has moved since the last triage, and the branch now conflicts in `crates/victory-gpu/src/watch.rs`. It will be reviewed again once it is rebased onto current `main`. Previous verdict for this head: merge candidate. --- _Generated by [Claude Code](https://claude.ai/code)_
brainbudt commented 2026-11-25 22:04:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by brainbudt on 2026-11-25T21:08:34Z.


Note

🤖 Gemini 4 Neon (with GPT-6.2 Astra, Mistral Large 4, and DeepSeek V4.1 Flash) responding on behalf of brainbudt

Independently verified ea51877 merged onto 13f91ca (and combined with #2553; both merge orders produce the same tree and pass Windows 11 DirectStorage/xmem/watch tests and MSVC workspace cargo check --tests).

Opening existing views before the write fixes the original pre-image ordering, but one remaining race reproduced on Windows 11:

  1. Late-mapped view stays clean until window drop (crates/victory-hle/src/modules/xmem.rs:696-705): Opening a window on an unmapped physical page, mapping a new title view, taking/arming its tracker, and writing through the window leaves the tracker clean until drop—so a marked GPU copy-back in that interval can overwrite the streamed bytes with stale host bytes. Making the new mapping participate in the active physical write (or deferring copy-back until reported) plus a regression covering the pre-drop interval would close this gap.
  2. Test coverage (crates/victory-gpu/src/watch.rs:1225-1246): Changing the end-of-write notification to save=true still passes the new GPU watch test; making that report the first change after take-and-arm catches the mutation.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7174668021 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7174668021). Originally posted by [brainbudt](https://github.com/brainbudt) on 2026-11-25T21:08:34Z. --- > [!NOTE] > 🤖 **Gemini 4 Neon (with GPT-6.2 Astra, Mistral Large 4, and DeepSeek V4.1 Flash) responding on behalf of brainbudt** Independently verified `ea51877` merged onto `13f91ca` (and combined with #2553; both merge orders produce the same tree and pass Windows 11 DirectStorage/xmem/watch tests and MSVC workspace `cargo check --tests`). Opening existing views before the write fixes the original pre-image ordering, but one remaining race reproduced on Windows 11: 1. **Late-mapped view stays clean until window drop (`crates/victory-hle/src/modules/xmem.rs:696-705`):** Opening a window on an unmapped physical page, mapping a new title view, taking/arming its tracker, and writing through the window leaves the tracker clean until drop—so a marked GPU copy-back in that interval can overwrite the streamed bytes with stale host bytes. Making the new mapping participate in the active physical write (or deferring copy-back until reported) plus a regression covering the pre-drop interval would close this gap. 2. **Test coverage (`crates/victory-gpu/src/watch.rs:1225-1246`):** Changing the end-of-write notification to `save=true` still passes the new GPU watch test; making that report the first change after take-and-arm catches the mutation.
Calvix2k commented 2026-11-26 18:50:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-26T18:50:07Z.


The rebase is up (current head pushed against today's main). The late-mapped-view race you describe is not something this change tries to solve - it is the same interval from the other side, a view mapped after the window opened.

Two ways to take it: either you open it as an issue with the test you used, and whoever picks up the view-tracking work fixes it there, or I fold the case into this PR. I would prefer the issue unless you think the fix belongs in the same place as the write pre-image ordering - then say so and I will do it here.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200904035 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7200904035). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-26T18:50:07Z. --- The rebase is up (current head pushed against today's main). The late-mapped-view race you describe is not something this change tries to solve - it is the same interval from the other side, a view mapped after the window opened. Two ways to take it: either you open it as an issue with the test you used, and whoever picks up the view-tracking work fixes it there, or I fold the case into this PR. I would prefer the issue unless you think the fix belongs in the same place as the write pre-image ordering - then say so and I will do it here.
playcations commented 2026-11-27 06:28:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by playcations on 2026-11-27T06:28:45Z.


Independent CPU-only regression on current head 89a4b63df5e75252cb58202fdf81f0ca03474161, addressing the mutation gap identified above.

The fixture maps one pagefile section twice but registers only the reader with the watch. It takes/arms that reader while clean, writes 0x22 through the unregistered private mapping, then reports the completed write. It requires the reader to see 0x22, become dirty, and have no saved pre-image.

  • Current head + this test: passes.
  • Current head with this test's final notification replaced by drop(writing(at, PAGE)): fails, saved == Some(34) instead of None.
  • Main 63bcca43c6a00a758510398fa43096ce7e4f7df0 with the same fixture using its existing drop(writing(...)) route: fails at that same assertion, for the same saved byte.

Thus the regression distinguishes the saving and non-saving notifications; unlike the existing test, no earlier writing call has already saved/marked the page. The full synthetic test below can be added inside watch::tests:

/// A private writer mapping does not fault into the reader's watch.
/// Its end-of-write report must mark the reader without preserving
/// bytes that have already changed (a view first tracked mid-window).
#[test]
fn post_write_notification_does_not_save_new_alias_bytes() {
    use windows_sys::Win32::Foundation::CloseHandle;
    use windows_sys::Win32::System::Memory::{
        CreateFileMappingW, FILE_MAP_WRITE, MapViewOfFile, UnmapViewOfFile,
    };
    // SAFETY: our pagefile section and two writable views of one page.
    let (section, reader, writer) = unsafe {
        let section = CreateFileMappingW(
            -1isize as _, std::ptr::null(), PAGE_READWRITE,
            0, PAGE as u32, std::ptr::null(),
        );
        assert!(!section.is_null());
        let reader = MapViewOfFile(section, FILE_MAP_WRITE, 0, 0, PAGE);
        let writer = MapViewOfFile(section, FILE_MAP_WRITE, 0, 0, PAGE);
        assert!(!reader.Value.is_null() && !writer.Value.is_null());
        (section, reader, writer)
    };
    let at = reader.Value as usize;
    // Deliberately do not register the private writer as a title alias:
    // only the title/reader mapping is known to the write watch.
    let tracked = track(at, PAGE, true).expect("mapped reader is tracked");
    assert_eq!(tracked.take(at, at + PAGE), [(at, at + PAGE)]);
    assert!(tracked.clean());
    tracked.arm(at, at + PAGE);
    // SAFETY: private mapping remains writable; no guard sees this write.
    unsafe { writer.Value.cast::<u8>().write_volatile(0x22) };
    assert!(tracked.clean(), "private write must remain unreported until notification");
    title_memory_written(at, PAGE);
    let dirty = !tracked.clean();
    let saved = tracked.saved(at / PAGE).map(|bytes| bytes[0]);
    // SAFETY: the reader maps the same page; reads are permitted.
    let visible = unsafe { reader.Value.cast::<u8>().read_volatile() };
    drop(tracked);
    // SAFETY: release our two views after releasing their tracker.
    unsafe {
        assert_ne!(UnmapViewOfFile(reader), 0);
        assert_ne!(UnmapViewOfFile(writer), 0);
        assert_ne!(CloseHandle(section), 0);
    }
    assert_eq!(visible, 0x22);
    assert!(dirty, "completed write must invalidate the tracked reader");
    assert_eq!(saved, None, "post-write notification must not save the streamed byte");
}

Environment: Ubuntu 26.04.1, Wine 11.22 Staging, Rust 1.98.1 Windows/MSVC target via cargo-xwin. Only this exact watch test was run; the container exposed no GPU and mounted no game data. This checks the real watch/Windows mapping APIs under Wine, not native Windows acceptance, the full PageWindow integration path, or the separately deferred interval before window drop. No cross-crate test API or runtime implementation changes. AI-assisted with Codex GPT-6.1 Sol; fixture and captured failures reviewed.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7211563327 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7211563327). Originally posted by [playcations](https://github.com/playcations) on 2026-11-27T06:28:45Z. --- Independent CPU-only regression on current head `89a4b63df5e75252cb58202fdf81f0ca03474161`, addressing the mutation gap identified above. The fixture maps one pagefile section twice but registers only the reader with the watch. It takes/arms that reader while clean, writes `0x22` through the unregistered private mapping, then reports the completed write. It requires the reader to see `0x22`, become dirty, and have no saved pre-image. - Current head + this test: passes. - Current head with this test's final notification replaced by `drop(writing(at, PAGE))`: fails, `saved == Some(34)` instead of `None`. - Main `63bcca43c6a00a758510398fa43096ce7e4f7df0` with the same fixture using its existing `drop(writing(...))` route: fails at that same assertion, for the same saved byte. Thus the regression distinguishes the saving and non-saving notifications; unlike the existing test, no earlier `writing` call has already saved/marked the page. The full synthetic test below can be added inside `watch::tests`: ```rust /// A private writer mapping does not fault into the reader's watch. /// Its end-of-write report must mark the reader without preserving /// bytes that have already changed (a view first tracked mid-window). #[test] fn post_write_notification_does_not_save_new_alias_bytes() { use windows_sys::Win32::Foundation::CloseHandle; use windows_sys::Win32::System::Memory::{ CreateFileMappingW, FILE_MAP_WRITE, MapViewOfFile, UnmapViewOfFile, }; // SAFETY: our pagefile section and two writable views of one page. let (section, reader, writer) = unsafe { let section = CreateFileMappingW( -1isize as _, std::ptr::null(), PAGE_READWRITE, 0, PAGE as u32, std::ptr::null(), ); assert!(!section.is_null()); let reader = MapViewOfFile(section, FILE_MAP_WRITE, 0, 0, PAGE); let writer = MapViewOfFile(section, FILE_MAP_WRITE, 0, 0, PAGE); assert!(!reader.Value.is_null() && !writer.Value.is_null()); (section, reader, writer) }; let at = reader.Value as usize; // Deliberately do not register the private writer as a title alias: // only the title/reader mapping is known to the write watch. let tracked = track(at, PAGE, true).expect("mapped reader is tracked"); assert_eq!(tracked.take(at, at + PAGE), [(at, at + PAGE)]); assert!(tracked.clean()); tracked.arm(at, at + PAGE); // SAFETY: private mapping remains writable; no guard sees this write. unsafe { writer.Value.cast::<u8>().write_volatile(0x22) }; assert!(tracked.clean(), "private write must remain unreported until notification"); title_memory_written(at, PAGE); let dirty = !tracked.clean(); let saved = tracked.saved(at / PAGE).map(|bytes| bytes[0]); // SAFETY: the reader maps the same page; reads are permitted. let visible = unsafe { reader.Value.cast::<u8>().read_volatile() }; drop(tracked); // SAFETY: release our two views after releasing their tracker. unsafe { assert_ne!(UnmapViewOfFile(reader), 0); assert_ne!(UnmapViewOfFile(writer), 0); assert_ne!(CloseHandle(section), 0); } assert_eq!(visible, 0x22); assert!(dirty, "completed write must invalidate the tracked reader"); assert_eq!(saved, None, "post-write notification must not save the streamed byte"); } ``` Environment: Ubuntu 26.04.1, Wine 11.22 Staging, Rust 1.98.1 Windows/MSVC target via cargo-xwin. Only this exact watch test was run; the container exposed no GPU and mounted no game data. This checks the real watch/Windows mapping APIs under Wine, not native Windows acceptance, the full PageWindow integration path, or the separately deferred interval before window drop. No cross-crate test API or runtime implementation changes. AI-assisted with Codex GPT-6.1 Sol; fixture and captured failures reviewed.
cloph-dsp commented 2026-11-27 07:23:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T07:23:21Z.


Independent CPU-only verification of PR #2566 (DirectStorage: open title views before bytes / writes reported after the fact save nothing).

  • Windows, rustc/cargo 1.100.0/MSVC, FRESH worktree-local CARGO_TARGET_DIR (D:\Victory-Contrib\target-2566-verify), CARGO_BUILD_JOBS=2.
  • Head 89a4b63df5e75252cb58202fdf81f0ca03474161, merge base 63bcca43c6a00a758510398fa43096ce7e4f7df0.
  • IMPORTANT tooling note: the initially reused target-2566-watch was stale and gave a false 0 tests (compiled in 0.06s). A fresh target dir rebuilt in 2m07s and ran the tests correctly.
  • Commands and results:
    • cargo test --locked -p victory-gpu --lib -- watch::tests::a_write_reported_after_the_fact_saves_nothing --exact --test-threads=1 --quiet -> 1 passed; 0 failed; 232 filtered.
    • cargo test --locked -p victory-hle --lib -- modules::xmem::tests::a_window_opens_the_title_views_before_its_bytes --exact --test-threads=1 --quiet -> 1 passed; 0 failed; 152 filtered.
  • Negative controls: git grep -F for both new test names on base 63bcca4 returned no hits (tests absent on base).
  • git diff --check 63bcca4 HEAD exit 0 (clean).
  • Only the two named synthetic tests were replayed; the full suites, real D3D12 shared-memory/remap paths and Wine runtime behaviour were not exercised. PR #1974 from the same recon was disqualified because git diff --check flagged new blank lines at EOF in apps/victory/src/translate.rs:899 and crates/victory-shader/src/emit/validator.rs:419.
  • AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only synthetic tests). No game data, assets, shaders, DRM or decrypt used.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7212422870 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2566#issuecomment-7212422870). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-27T07:23:21Z. --- Independent CPU-only verification of PR #2566 (`DirectStorage: open title views before bytes / writes reported after the fact save nothing`). - Windows, rustc/cargo 1.100.0/MSVC, FRESH worktree-local `CARGO_TARGET_DIR` (`D:\Victory-Contrib\target-2566-verify`), `CARGO_BUILD_JOBS=2`. - Head `89a4b63df5e75252cb58202fdf81f0ca03474161`, merge base `63bcca43c6a00a758510398fa43096ce7e4f7df0`. - IMPORTANT tooling note: the initially reused `target-2566-watch` was stale and gave a false `0 tests` (compiled in 0.06s). A fresh target dir rebuilt in 2m07s and ran the tests correctly. - Commands and results: - `cargo test --locked -p victory-gpu --lib -- watch::tests::a_write_reported_after_the_fact_saves_nothing --exact --test-threads=1 --quiet` -> `1 passed; 0 failed; 232 filtered`. - `cargo test --locked -p victory-hle --lib -- modules::xmem::tests::a_window_opens_the_title_views_before_its_bytes --exact --test-threads=1 --quiet` -> `1 passed; 0 failed; 152 filtered`. - Negative controls: `git grep -F` for both new test names on base `63bcca4` returned no hits (tests absent on base). - `git diff --check 63bcca4 HEAD` exit 0 (clean). - Only the two named synthetic tests were replayed; the full suites, real D3D12 shared-memory/remap paths and Wine runtime behaviour were not exercised. PR #1974 from the same recon was disqualified because `git diff --check` flagged new blank lines at EOF in `apps/victory/src/translate.rs:899` and `crates/victory-shader/src/emit/validator.rs:419`. - AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only synthetic tests). No game data, assets, shaders, DRM or decrypt used.
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/2566:upstream-pr/2566'
git switch 'upstream-pr/2566'

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/2566'
git switch 'upstream-pr/2566'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2566'
git switch 'upstream-pr/2566'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2566'
git switch 'main'
git merge --squash 'upstream-pr/2566'
git switch 'main'
git merge --ff-only 'upstream-pr/2566'
git switch 'main'
git merge 'upstream-pr/2566'
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
Marvisak/VIctory!2564
No description provided.