fix(gpu): keep deferred copy bytes ordered across submissions and lists #874

Closed
github-bot wants to merge 1 commit from github-bot/gh-874 into main AGit
Owner

@⁠makmatvey on GitHub · 2026-11-28 08:24 UTC · original
cursor/fix-deferred-copy-ordering-eb59 → main · +311 −40 · 5 files · 1 commits · closed without merging

Step::Copy mutated title memory during prepare, so later refreshes and a shared staging upload could expose a newer payload to an earlier GPU read. Place large host-copy destinations when scratch exists, snapshot one-sided ranges into submission-owned uploads before the lists, and fall back to an unpooled Own buffer when the spare pool cannot supply one. Land #844's ordering regression probes.

**@⁠makmatvey** on GitHub · 2026-11-28 08:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/874) `cursor/fix-deferred-copy-ordering-eb59` → `main` · +311 −40 · 5 files · 1 commits · closed without merging Step::Copy mutated title memory during prepare, so later refreshes and a shared staging upload could expose a newer payload to an earlier GPU read. Place large host-copy destinations when scratch exists, snapshot one-sided ranges into submission-owned uploads before the lists, and fall back to an unpooled Own buffer when the spare pool cannot supply one. Land #844's ordering regression probes.
Step::Copy mutated title memory during prepare, so later refreshes and a
shared staging upload could expose a newer payload to an earlier GPU read.
Place large host-copy destinations when scratch exists, snapshot one-sided
ranges into submission-owned uploads before the lists, and fall back to an
unpooled Own buffer when the spare pool cannot supply one. Land #844's
ordering regression probes.

Co-authored-by: Matsvey Makushenka <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:29:16 +00:00
Author
Owner

@⁠thegonsalez1 on GitHub · 2026-11-28 08:55 UTC · original

Thanks for the #844 fixes. I compared 63b902fe1720 with 512feed26916 using synthetic workloads on Windows 11, Core Ultra 5 225F, RTX 5060 8 GB, 32 GB RAM and NVIDIA driver 621.40.

  • One-sided cross-submission copies improved from 36/54 incorrect readbacks to 0/54. All three submissions returned while the GPU queue was gated.
  • With fresh pooled snapshot allocation refused, incorrect readbacks also fell 36/54 → 0/54 in each backing layout. With normal placement, two interleaved 8 MiB + 256-byte copies passed 3/3 runs per layout.
  • All six adjacent ordering checks passed. The release workspace suite had 1,125 passed, 0 failed, 50 ignored.

Deferred copies within one command list remain unordered. With placement forced off, both GPU reads began with 0x51 in 3/3 runs per layout. The first should begin with 0x21. Both deferred writes happen during submission preparation. Restoring one snapshot before the list cannot supply the first value at the intervening GPU read.

The fallback is reachable with default settings. A fresh destination starts without a GPU shadow, and place_copy requires an existing one. Failure to allocate list scratch takes the same branch. The normal-placement probe creates the shadow before recording. Reachability follows from the code, while the incorrect bytes were measured with placement forced off. Buffer registration · Placement checks · Public copy path

To reproduce at this head with the PowerShell helper and relay settings from #844, run

$env:VICTORY_COPIES_IN_PLACE = '0'
$env:COPY_PROBE_PLACED = '0'
Run-CopyTest 'two_public_copies_in_the_same_list'

I also checked the linked fork commit 4c73241. Its two new tests passed. The same public probe passed 3/3 with normal placement and still failed 3/3 when deferred. Fork commit

On this PR, median refresh time was 15.23 → 14.97 ms across five runs per build, within observed variability. The corrected large-copy case increased median peak process working set by 38.73 MiB (133.39 → 172.12 MiB). Actual memory exhaustion and gameplay behavior remain unverified.

OpenAI Codex assisted with hardware testing, source review and this write-up.

**@⁠thegonsalez1** on GitHub · 2026-11-28 08:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/874#issuecomment-7236896314) Thanks for the #844 fixes. I compared `63b902fe1720` with `512feed26916` using synthetic workloads on Windows 11, Core Ultra 5 225F, RTX 5060 8 GB, 32 GB RAM and NVIDIA driver 621.40. - One-sided cross-submission copies improved from **36/54 incorrect readbacks to 0/54**. All three submissions returned while the GPU queue was gated. - With fresh pooled snapshot allocation refused, incorrect readbacks also fell **36/54 → 0/54** in each backing layout. With normal placement, two interleaved 8 MiB + 256-byte copies passed **3/3 runs per layout**. - All six adjacent ordering checks passed. The release workspace suite had **1,125 passed, 0 failed, 50 ignored**. **Deferred copies within one command list remain unordered.** With placement forced off, both GPU reads began with `0x51` in **3/3 runs per layout**. The first should begin with `0x21`. Both deferred writes happen during submission preparation. Restoring one snapshot before the list cannot supply the first value at the intervening GPU read. The fallback is reachable with default settings. A fresh destination starts without a GPU shadow, and `place_copy` requires an existing one. Failure to allocate list scratch takes the same branch. The normal-placement probe creates the shadow before recording. Reachability follows from the code, while the incorrect bytes were measured with placement forced off. [Buffer registration](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/512feed269169f222478269dba97b2122b59e62a/crates/victory-gpu/src/shadow.rs#L5337-L5345) · [Placement checks](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/512feed269169f222478269dba97b2122b59e62a/crates/victory-gpu/src/host/place.rs#L197-L217) · [Public copy path](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/512feed269169f222478269dba97b2122b59e62a/crates/victory-gpu/src/list.rs#L972-L1001) To reproduce at this head with the PowerShell helper and relay settings from #844, run ```powershell $env:VICTORY_COPIES_IN_PLACE = '0' $env:COPY_PROBE_PLACED = '0' Run-CopyTest 'two_public_copies_in_the_same_list' ``` I also checked the linked fork commit `4c73241`. Its two new tests passed. The same public probe passed 3/3 with normal placement and still failed 3/3 when deferred. [Fork commit](https://github.com/MystifiedSky/VIctory-NVIDIA-Improved/commit/4c73241a3b3a728483e505f4f8c84e3522eda785) On this PR, median refresh time was **15.23 → 14.97 ms** across five runs per build, within observed variability. The corrected large-copy case increased median peak process working set by **38.73 MiB** (133.39 → 172.12 MiB). Actual memory exhaustion and gameplay behavior remain unverified. OpenAI Codex assisted with hardware testing, source review and this write-up.
Author
Owner

@⁠jptorres96 on GitHub · 2026-11-28 09:47 UTC · original

Ran the PR head (512feed) on RTX 4080 SUPER (driver 621.01), Windows build 26300, release.

1. Fresh destination case (from the review above): added a_fresh_destination_keeps_the_first_copy_for_its_read. The destination has no host copy at the first copy, so that copy is deferred; the GPU read creates the host copy; the second copy is placed. 9/9 runs correct (256 B and 8 MiB + 256, default / VICTORY_LATE_WAIT=0 / 2): deferred=1 placed=1 first=0x21 second=0x51. So the case argued from the code holds on hardware.

2. The ordering probes can pass by timing: without VICTORY_LATE_WAIT/VICTORY_RELAY, settle_now returns immediately (late() == false). Polling the readback buffer right after it, the bytes were still changing 4–197 µs later (second printed 0x00, then the full-range check passed because by then the copy had landed). With late waits on, nothing changed after the settle. The #844 recipe sets VICTORY_RELAY=2, so the earlier measurements are valid; it's the probes run without it that can pass or fail depending on timing.

Suggested test-only fix: a card_idle(host) helper (fence signalled on the host queue and waited) after settle_now in the probes. With it: 6/6 correct with and without late waits, for both two_public_copies_in_the_same_list and the new test. Patch below (applies on 512feed).

Test patch (crates/victory-gpu/src/host/upcheck.rs, +78)
diff --git a/crates/victory-gpu/src/host/upcheck.rs b/crates/victory-gpu/src/host/upcheck.rs
index 6c52a7c..3579777 100644
--- a/crates/victory-gpu/src/host/upcheck.rs
+++ b/crates/victory-gpu/src/host/upcheck.rs
@@ -936,6 +936,23 @@ mod tests {
         })
     }
 
+    /// Waits until the host queue has run everything sent to it so far.
+    /// [`settle_now`] returns at once unless late waits are on
+    /// (`VICTORY_LATE_WAIT`, or `VICTORY_RELAY`); a probe that reads its own
+    /// readback buffer must not depend on that.
+    fn card_idle(host: &Host) {
+        // SAFETY: a fresh fence, signalled on the live host queue.
+        unsafe {
+            let fence: ID3D12Fence = host.device.CreateFence(0, D3D12_FENCE_FLAG_NONE).unwrap();
+            host.queue.Signal(&fence, 1).unwrap();
+            let began = std::time::Instant::now();
+            while fence.GetCompletedValue() < 1 {
+                assert!(began.elapsed() < std::time::Duration::from_secs(10), "the host queue did not finish");
+                std::thread::yield_now();
+            }
+        }
+    }
+
     /// Two CPU-owned copies and their GPU reads in the same public list.
     #[test]
     #[ignore = "synthetic ordering probe in its own process"]
@@ -1022,6 +1039,7 @@ mod tests {
         );
         host.execute_own(native);
         settle_now(WHY_SYNC);
+        card_idle(host);
         // SAFETY: both device copies completed and the mapping is live.
         let bytes = unsafe { std::slice::from_raw_parts(mapped, 2 * size) };
         eprintln!(
@@ -1042,6 +1060,66 @@ mod tests {
         );
     }
 
+    /// As [`two_public_copies_in_the_same_list`], to a destination nothing
+    /// on the card has read yet: the first copy finds no host copy and is
+    /// deferred to submission; the GPU read behind it makes one; the second
+    /// copy finds it and goes at its place. The first read must still see
+    /// the first copy's bytes (#844, review of #874).
+    #[test]
+    #[ignore = "synthetic ordering probe in its own process"]
+    fn a_fresh_destination_keeps_the_first_copy_for_its_read() {
+        use crate::object::{S_OK, This, guid, slot};
+        let host = host().expect("D3D12 host");
+        let size: usize = std::env::var("COPY_PROBE_BYTES").map_or(256, |v| v.parse().expect("copy size in bytes"));
+        let null = std::ptr::null();
+        let alloc_id = guid(0x6102dee4, 0xaf59, 0x4b09, [0xb9, 0x99, 0xb4, 0x4d, 0x73, 0xf0, 0x9b, 0x24]);
+        let list_id = guid(0x5b160d0f, 0xac1b, 0x4185, [0x8b, 0xa8, 0xb3, 0xae, 0x42, 0xa5, 0xa4, 0x55]);
+        let (mut allocator, mut list) = (null, null);
+        assert_eq!(crate::list::create_allocator(null, 0, &alloc_id, &mut allocator), S_OK);
+        assert_eq!(crate::list::create_list(null, 0, 0, allocator, null, &list_id, &mut list), S_OK);
+        let source = crate::resource::test_buffer((2 * size) as u64);
+        let destination = crate::resource::test_buffer((size + 8192).max(256 << 10) as u64);
+        let (src, _) = crate::resource::buffer_bytes(source).unwrap();
+        let (dst, width) = crate::resource::buffer_bytes(destination).unwrap();
+        assert!(crate::shadow::peek(dst as u64, width).is_none(), "the destination must start without a host copy");
+        let (output, mapped) = host.shared_buffer((2 * size) as u64).unwrap();
+        let copy = slot::<extern "system" fn(This, This, u64, This, u64, u64)>(list, 0x78);
+        for v in 0..2 {
+            // SAFETY: live, disjoint and in bounds. Both initializations precede submission.
+            unsafe { std::ptr::write_bytes(src.add(v * size), 0x21 + 0x30 * v as u8, size) };
+            copy(list, destination, 8192, source, (v * size) as u64, size as u64);
+            // The read asks for the host copy as a draw would: the first
+            // time, that makes it.
+            let shadow = crate::shadow::find(dst as u64, width).expect("a host copy for the read");
+            let native = crate::list::host_list(list).unwrap();
+            read_out(native, &shadow, 8192, size, (&output, (v * size) as u64));
+        }
+        let native = crate::list::host_list(list).unwrap();
+        let (deferred, placed) = {
+            let d = native.deferred();
+            (
+                d.copies.iter().filter(|s| matches!(s, Step::Copy(..))).count(),
+                d.copies.iter().filter(|s| matches!(s, Step::Placed(_))).count(),
+            )
+        };
+        assert_eq!(slot::<extern "system" fn(This) -> i32>(list, 0x48)(list), S_OK);
+        host.execute_own(native);
+        settle_now(WHY_SYNC);
+        card_idle(host);
+        // SAFETY: both device copies completed and the mapping is live.
+        let bytes = unsafe { std::slice::from_raw_parts(mapped, 2 * size) };
+        eprintln!(
+            "FRESH size={size} deferred={deferred} placed={placed} first={:#04x} second={:#04x}",
+            bytes[0], bytes[size]
+        );
+        let first = bytes[..size].iter().position(|&v| v != 0x21);
+        let second = bytes[size..].iter().position(|&v| v != 0x51);
+        for object in [list, allocator, source, destination] {
+            slot::<extern "system" fn(This) -> u32>(object, 0x10)(object);
+        }
+        assert_eq!((first, second), (None, None), "first wrong byte offsets in the two GPU reads");
+    }
+
     /// Each submission copies a distinct payload to the same bytes and
     /// then reads it. All three are prepared before the GPU may read any.
     fn each_reads_its_own(len: usize, resource: usize, pc_memory: bool) {
**@⁠jptorres96** on GitHub · 2026-11-28 09:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/874#issuecomment-7237472133) Ran the PR head (512feed) on RTX 4080 SUPER (driver 621.01), Windows build 26300, release. **1. Fresh destination case (from the review above):** added `a_fresh_destination_keeps_the_first_copy_for_its_read`. The destination has no host copy at the first copy, so that copy is deferred; the GPU read creates the host copy; the second copy is placed. 9/9 runs correct (256 B and 8 MiB + 256, default / `VICTORY_LATE_WAIT=0` / `2`): `deferred=1 placed=1 first=0x21 second=0x51`. So the case argued from the code holds on hardware. **2. The ordering probes can pass by timing:** without `VICTORY_LATE_WAIT`/`VICTORY_RELAY`, `settle_now` returns immediately (`late() == false`). Polling the readback buffer right after it, the bytes were still changing 4–197 µs later (`second` printed `0x00`, then the full-range check passed because by then the copy had landed). With late waits on, nothing changed after the settle. The #844 recipe sets `VICTORY_RELAY=2`, so the earlier measurements are valid; it's the probes run without it that can pass or fail depending on timing. Suggested test-only fix: a `card_idle(host)` helper (fence signalled on the host queue and waited) after `settle_now` in the probes. With it: 6/6 correct with and without late waits, for both `two_public_copies_in_the_same_list` and the new test. Patch below (applies on 512feed). <details><summary>Test patch (crates/victory-gpu/src/host/upcheck.rs, +78)</summary> ```diff diff --git a/crates/victory-gpu/src/host/upcheck.rs b/crates/victory-gpu/src/host/upcheck.rs index 6c52a7c..3579777 100644 --- a/crates/victory-gpu/src/host/upcheck.rs +++ b/crates/victory-gpu/src/host/upcheck.rs @@ -936,6 +936,23 @@ mod tests { }) } + /// Waits until the host queue has run everything sent to it so far. + /// [`settle_now`] returns at once unless late waits are on + /// (`VICTORY_LATE_WAIT`, or `VICTORY_RELAY`); a probe that reads its own + /// readback buffer must not depend on that. + fn card_idle(host: &Host) { + // SAFETY: a fresh fence, signalled on the live host queue. + unsafe { + let fence: ID3D12Fence = host.device.CreateFence(0, D3D12_FENCE_FLAG_NONE).unwrap(); + host.queue.Signal(&fence, 1).unwrap(); + let began = std::time::Instant::now(); + while fence.GetCompletedValue() < 1 { + assert!(began.elapsed() < std::time::Duration::from_secs(10), "the host queue did not finish"); + std::thread::yield_now(); + } + } + } + /// Two CPU-owned copies and their GPU reads in the same public list. #[test] #[ignore = "synthetic ordering probe in its own process"] @@ -1022,6 +1039,7 @@ mod tests { ); host.execute_own(native); settle_now(WHY_SYNC); + card_idle(host); // SAFETY: both device copies completed and the mapping is live. let bytes = unsafe { std::slice::from_raw_parts(mapped, 2 * size) }; eprintln!( @@ -1042,6 +1060,66 @@ mod tests { ); } + /// As [`two_public_copies_in_the_same_list`], to a destination nothing + /// on the card has read yet: the first copy finds no host copy and is + /// deferred to submission; the GPU read behind it makes one; the second + /// copy finds it and goes at its place. The first read must still see + /// the first copy's bytes (#844, review of #874). + #[test] + #[ignore = "synthetic ordering probe in its own process"] + fn a_fresh_destination_keeps_the_first_copy_for_its_read() { + use crate::object::{S_OK, This, guid, slot}; + let host = host().expect("D3D12 host"); + let size: usize = std::env::var("COPY_PROBE_BYTES").map_or(256, |v| v.parse().expect("copy size in bytes")); + let null = std::ptr::null(); + let alloc_id = guid(0x6102dee4, 0xaf59, 0x4b09, [0xb9, 0x99, 0xb4, 0x4d, 0x73, 0xf0, 0x9b, 0x24]); + let list_id = guid(0x5b160d0f, 0xac1b, 0x4185, [0x8b, 0xa8, 0xb3, 0xae, 0x42, 0xa5, 0xa4, 0x55]); + let (mut allocator, mut list) = (null, null); + assert_eq!(crate::list::create_allocator(null, 0, &alloc_id, &mut allocator), S_OK); + assert_eq!(crate::list::create_list(null, 0, 0, allocator, null, &list_id, &mut list), S_OK); + let source = crate::resource::test_buffer((2 * size) as u64); + let destination = crate::resource::test_buffer((size + 8192).max(256 << 10) as u64); + let (src, _) = crate::resource::buffer_bytes(source).unwrap(); + let (dst, width) = crate::resource::buffer_bytes(destination).unwrap(); + assert!(crate::shadow::peek(dst as u64, width).is_none(), "the destination must start without a host copy"); + let (output, mapped) = host.shared_buffer((2 * size) as u64).unwrap(); + let copy = slot::<extern "system" fn(This, This, u64, This, u64, u64)>(list, 0x78); + for v in 0..2 { + // SAFETY: live, disjoint and in bounds. Both initializations precede submission. + unsafe { std::ptr::write_bytes(src.add(v * size), 0x21 + 0x30 * v as u8, size) }; + copy(list, destination, 8192, source, (v * size) as u64, size as u64); + // The read asks for the host copy as a draw would: the first + // time, that makes it. + let shadow = crate::shadow::find(dst as u64, width).expect("a host copy for the read"); + let native = crate::list::host_list(list).unwrap(); + read_out(native, &shadow, 8192, size, (&output, (v * size) as u64)); + } + let native = crate::list::host_list(list).unwrap(); + let (deferred, placed) = { + let d = native.deferred(); + ( + d.copies.iter().filter(|s| matches!(s, Step::Copy(..))).count(), + d.copies.iter().filter(|s| matches!(s, Step::Placed(_))).count(), + ) + }; + assert_eq!(slot::<extern "system" fn(This) -> i32>(list, 0x48)(list), S_OK); + host.execute_own(native); + settle_now(WHY_SYNC); + card_idle(host); + // SAFETY: both device copies completed and the mapping is live. + let bytes = unsafe { std::slice::from_raw_parts(mapped, 2 * size) }; + eprintln!( + "FRESH size={size} deferred={deferred} placed={placed} first={:#04x} second={:#04x}", + bytes[0], bytes[size] + ); + let first = bytes[..size].iter().position(|&v| v != 0x21); + let second = bytes[size..].iter().position(|&v| v != 0x51); + for object in [list, allocator, source, destination] { + slot::<extern "system" fn(This) -> u32>(object, 0x10)(object); + } + assert_eq!((first, second), (None, None), "first wrong byte offsets in the two GPU reads"); + } + /// Each submission copies a distinct payload to the same bytes and /// then reads it. All three are prepared before the GPU may read any. fn each_reads_its_own(len: usize, resource: usize, pc_memory: bool) { ``` </details>
Author
Owner

@⁠thegonsalez1 on GitHub · 2026-11-29 21:21 UTC · original

The #844 copy-ordering defect reproduces on v2026.11.29.04 (f72cec7714aa6d6e274b761fb6fa40bfcf44243b). Thank you for the fix in #874 and for the RTX 4080 SUPER fence suggestion. On a desktop RTX 5060 8 GB, driver 621.40, Core Ultra 5 225F, 32 GB RAM and Windows 11, I compared the release with unchanged PR head 512feed269169f222478269dba97b2122b59e62a. Every GPU readback below waited on an explicit direct-queue fence.

Synthetic check v2026.11.29.04 PR #874
One-sided PC-memory copies across gated submissions 36/54 incorrect 0/54 incorrect
Two-sided PC-memory copies, fresh pooled snapshot allocation refused 36/54 incorrect 0/54 incorrect
Large interleaved copies, normal placement, pre-existing destination shadow 0/3 correct 3/3 correct
Both copies forced deferred in one list, per backing layout 0/3 correct 0/3 correct
Adjacent ordering checks 6/6 passed 6/6 passed

Three submissions returned while the GPU was gated in each of six rounds per process, repeated in three fresh processes. Without injection the two-sided control was correct on both builds. The refusal hook fired 57 times on the release and 9 times on the PR in the two-sided case. On the release the one-sided path skipped that allocator entirely. Physical memory exhaustion was not tested.

Fresh destination, normal placement. With two 8 MiB + 256-byte copies, the release recorded two deferred steps and read 0x51, 0x51. The PR deferred the first copy, placed the second and read the expected 0x21, 0x51. This held 3/3 per wait setting (default, late wait 0 and 2). The 256-byte control passed on both. A fresh destination alone therefore preserved both values on the PR under normal placement.

With VICTORY_COPIES_IN_PLACE=0, the PR still returned the second payload for both reads. Both writes are prepared before the list, so a single pre-list snapshot cannot supply the first value at the intervening GPU read. The tested normal paths pass. A normal gameplay occurrence of the both-deferred failure has not been demonstrated.

The archive contains the test-only diffs for both pins, the 120-invocation matrix, sanitized readbacks and PowerShell reproduction steps. Download the synthetic ordering evidence

OpenAI Codex assisted with the testing, analysis and write-up.

**@⁠thegonsalez1** on GitHub · 2026-11-29 21:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/874#issuecomment-7262815781) The #844 copy-ordering defect reproduces on v2026.11.29.04 (`f72cec7714aa6d6e274b761fb6fa40bfcf44243b`). Thank you for the fix in #874 and for the RTX 4080 SUPER fence suggestion. On a desktop RTX 5060 8 GB, driver 621.40, Core Ultra 5 225F, 32 GB RAM and Windows 11, I compared the release with unchanged PR head `512feed269169f222478269dba97b2122b59e62a`. Every GPU readback below waited on an explicit direct-queue fence. | Synthetic check | v2026.11.29.04 | PR #874 | | --- | ---: | ---: | | One-sided PC-memory copies across gated submissions | 36/54 incorrect | 0/54 incorrect | | Two-sided PC-memory copies, fresh pooled snapshot allocation refused | 36/54 incorrect | 0/54 incorrect | | Large interleaved copies, normal placement, pre-existing destination shadow | 0/3 correct | 3/3 correct | | Both copies forced deferred in one list, per backing layout | 0/3 correct | 0/3 correct | | Adjacent ordering checks | 6/6 passed | 6/6 passed | Three submissions returned while the GPU was gated in each of six rounds per process, repeated in three fresh processes. Without injection the two-sided control was correct on both builds. The refusal hook fired 57 times on the release and 9 times on the PR in the two-sided case. On the release the one-sided path skipped that allocator entirely. Physical memory exhaustion was not tested. **Fresh destination, normal placement.** With two 8 MiB + 256-byte copies, the release recorded two deferred steps and read `0x51, 0x51`. The PR deferred the first copy, placed the second and read the expected `0x21, 0x51`. This held 3/3 per wait setting (default, late wait 0 and 2). The 256-byte control passed on both. A fresh destination alone therefore preserved both values on the PR under normal placement. With `VICTORY_COPIES_IN_PLACE=0`, the PR still returned the second payload for both reads. Both writes are prepared before the list, so a single pre-list snapshot cannot supply the first value at the intervening GPU read. The tested normal paths pass. A normal gameplay occurrence of the both-deferred failure has not been demonstrated. The archive contains the test-only diffs for both pins, the 120-invocation matrix, sanitized readbacks and PowerShell reproduction steps. [Download the synthetic ordering evidence](https://github.com/user-attachments/files/35583684/issue-844-ordering.zip) OpenAI Codex assisted with the testing, analysis and write-up.
github-bot closed this pull request 2026-12-01 13:26:58 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!874
No description provided.