D3D12.X: a same-list write drops a later wait only when its value meets it #2506

Open
github-bot wants to merge 1 commit from github-bot/gh-2506 into main AGit
Owner

@⁠tiagonleal on GitHub · 2026-11-25 21:03 UTC · original
tiagonleal:wait-memory-self-write-value → main · +116 −4 · 1 files · 1 commits · open

wait_memory drops a Wait32/64BitValueX whenever the same open list already wrote an overlapping address (has_prior_write, there since 3dfbcfbd). The comment gives the reason: the write is earlier in the same list, and polling the address before that list is submitted would only wait on our own unsubmitted list. That holds only when the value the list wrote meets the wait. A list that resets a counter (Write64BitValue…X(X, 0)) and then waits X >= 1 for another queue to raise it lost the wait, so it ran without waiting for the producer. With this change such a wait is recorded like any other wait. A wait that the list's own last write meets is still dropped, also after a mid-list split. Part of #1452.

What is in it

  • crates/xcl/src/hle/d3d12x/list_x.rs: ListState keeps the value of the list's last immediate write (write: Write32/64BitValue…X) per address, cleared wherever written_ranges is cleared. A later write over it of unknown value (fill, CopyMemoryToMemoryX, timestamp) forgets it. wait_memory drops the wait when that value, masked, meets the comparison (compare_u64), or when there is no known value for exactly that address and width (fill, copy, partial write), as before. split carries the written values to the next segment together with the written ranges (writes_for_split), so a wait after a split is judged the same way.
  • Test a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it: the eight D3D12_COMPARISON_FUNCs for 32 and 64 bit, a 64-bit value above 32 bits, the Wait32BitValueX mask, the last of two writes, a write to another address, and a fill over the value.
  • Test a_split_segment_keeps_the_written_value_for_a_later_wait: a list writes X = 0 and then waits X >= 1; after the split the wait is kept. It exercises what split carries to the next segment (the writes_for_split pair), not split itself.

A title that writes an address and then waits on it in the same list for a value its own write does not meet now gets that wait (before, it was dropped). If nothing else ever produces the value, the wait behaves like any other wait without a producer: the CPU fallback blocks the submitting thread for up to 2 s, or the GPU bridge waits until the watchdog releases it at 5 s. Before, the list just ran.

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09); debug tests, release smoke builds. Head a4b66e81 on main 6d12f58a.
  • Without the fix: the first test on main 6d12f58a, with only the drop condition of main restored, fails on its first case: 64-bit: wrote 0x0, wait op 7 0x1, left: 0, right: 1 (the wait is dropped). The split test fails with writes_for_split returning no values: the wait after the split was dropped, left: 0, right: 1.
  • With the fix, on a4b66e81: cargo test -p xcl --lib -- a_wait_after_an_own_write a_split_segment_keeps: 2 passed, 3 of 3 runs.
  • cargo test -p xcl --lib -- hle::d3d12x, 6 runs (earlier head 46456f0d, not repeated on a4b66e81): 254 passed, 0 failed, 2 ignored in 5 runs. In 1 run a_dispatch_with_a_pipeline_still_building_waits_at_the_submit failed (segment count 389, expected 421). The same test failed 1 time in 6 runs on main 6d12f58a (252/253 passed), so it depends on timing and fails without this change too.
  • cargo test --workspace --no-fail-fast -- --test-threads=4, run twice on a4b66e81: 1421 passed, 4 failed, 46 ignored both times. The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (CreateComputePipelineState: E_OUTOFMEMORY). They failed on main 6d12f58a in earlier runs; I did not run them on main again today.
  • 25 SKIPPED lines on this adapter: 24 GPU tests that need wave32/wave64 forms this adapter does not have ("no wave64"), and heap_window_out_of_memory_falls_back_to_the_switch_form ("no heap windows").

Regression run

60 s each, the same retail title, release builds, one after the other.

main:

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 5070 Ti
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1604 (PresentX 1604)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15384 MB

This PR:

xcl-smoke v1
commit: a4b66e811589677dc9c5a702248b6964f9da40d7
gpu: NVIDIA GeForce RTX 5070 Ti
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1616 (PresentX 1616)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15193 MB

Earlier diagnostic runs (a build with a log line in wait_memory, 60 s and 100 s) were made on the previous head 46456f0d. They logged no same-list wait, dropped or kept. This title does not reach the changed check in that time, so the smoke runs only show that nothing else regressed.

Not tested

  • Whether the retail title records the "reset, then wait for another queue" pattern in one list. In 100 s it never reaches the same-list check (see above); later parts of the load were not run. I do not know whether this fixes any stall or device removal in #1452.
  • A kept wait is still checked against memory before the list is submitted, so the list's own reset is not in memory yet. If memory still holds an older value that meets the wait, the wait passes at once. This PR does not change that.
  • A 32-bit wait on half of a 64-bit write: no known value, so it is still dropped as before.
  • The split test does not run split; it checks only the values split carries over.
  • AMD and Intel GPUs.

Overlap: #1256 (records cpu_writes ranges for this drop) and #592 (range tracking) change the same check. Neither looks at the written value. With #1256, its title-memory writes would have no known value here and would still be dropped.

AI use

  • Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5) helped developing.

🤖 Generated with Claude Code

**@⁠tiagonleal** on GitHub · 2026-11-25 21:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506) `tiagonleal:wait-memory-self-write-value` → `main` · +116 −4 · 1 files · 1 commits · open `wait_memory` drops a `Wait32/64BitValueX` whenever the same open list already wrote an overlapping address (`has_prior_write`, there since 3dfbcfbd). The comment gives the reason: the write is earlier in the same list, and polling the address before that list is submitted would only wait on our own unsubmitted list. That holds only when the value the list wrote meets the wait. A list that resets a counter (`Write64BitValue…X(X, 0)`) and then waits `X >= 1` for another queue to raise it lost the wait, so it ran without waiting for the producer. With this change such a wait is recorded like any other wait. A wait that the list's own last write meets is still dropped, also after a mid-list `split`. Part of #1452. **What is in it** - `crates/xcl/src/hle/d3d12x/list_x.rs`: `ListState` keeps the value of the list's last immediate write (`write`: `Write32/64BitValue…X`) per address, cleared wherever `written_ranges` is cleared. A later write over it of unknown value (fill, `CopyMemoryToMemoryX`, timestamp) forgets it. `wait_memory` drops the wait when that value, masked, meets the comparison (`compare_u64`), or when there is no known value for exactly that address and width (fill, copy, partial write), as before. `split` carries the written values to the next segment together with the written ranges (`writes_for_split`), so a wait after a split is judged the same way. - Test `a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it`: the eight `D3D12_COMPARISON_FUNC`s for 32 and 64 bit, a 64-bit value above 32 bits, the `Wait32BitValueX` mask, the last of two writes, a write to another address, and a fill over the value. - Test `a_split_segment_keeps_the_written_value_for_a_later_wait`: a list writes `X = 0` and then waits `X >= 1`; after the split the wait is kept. It exercises what `split` carries to the next segment (the `writes_for_split` pair), not `split` itself. A title that writes an address and then waits on it in the same list for a value its own write does not meet now gets that wait (before, it was dropped). If nothing else ever produces the value, the wait behaves like any other wait without a producer: the CPU fallback blocks the submitting thread for up to 2 s, or the GPU bridge waits until the watchdog releases it at 5 s. Before, the list just ran. **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09); debug tests, release smoke builds. Head a4b66e81 on `main` 6d12f58a. - Without the fix: the first test on `main` 6d12f58a, with only the drop condition of `main` restored, fails on its first case: `64-bit: wrote 0x0, wait op 7 0x1`, `left: 0, right: 1` (the wait is dropped). The split test fails with `writes_for_split` returning no values: `the wait after the split was dropped`, `left: 0, right: 1`. - With the fix, on a4b66e81: `cargo test -p xcl --lib -- a_wait_after_an_own_write a_split_segment_keeps`: 2 passed, 3 of 3 runs. - `cargo test -p xcl --lib -- hle::d3d12x`, 6 runs (earlier head 46456f0d, not repeated on a4b66e81): 254 passed, 0 failed, 2 ignored in 5 runs. In 1 run `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` failed (segment count 389, expected 421). The same test failed 1 time in 6 runs on `main` 6d12f58a (252/253 passed), so it depends on timing and fails without this change too. - `cargo test --workspace --no-fail-fast -- --test-threads=4`, run twice on a4b66e81: 1421 passed, 4 failed, 46 ignored both times. The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (`CreateComputePipelineState`: E_OUTOFMEMORY). They failed on `main` 6d12f58a in earlier runs; I did not run them on `main` again today. - 25 `SKIPPED` lines on this adapter: 24 GPU tests that need wave32/wave64 forms this adapter does not have ("no wave64"), and `heap_window_out_of_memory_falls_back_to_the_switch_form` ("no heap windows"). **Regression run** 60 s each, the same retail title, release builds, one after the other. `main`: ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: NVIDIA GeForce RTX 5070 Ti title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1604 (PresentX 1604) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15384 MB ``` This PR: ``` xcl-smoke v1 commit: a4b66e811589677dc9c5a702248b6964f9da40d7 gpu: NVIDIA GeForce RTX 5070 Ti title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1616 (PresentX 1616) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15193 MB ``` Earlier diagnostic runs (a build with a log line in `wait_memory`, 60 s and 100 s) were made on the previous head 46456f0d. They logged no same-list wait, dropped or kept. This title does not reach the changed check in that time, so the smoke runs only show that nothing else regressed. **Not tested** - Whether the retail title records the "reset, then wait for another queue" pattern in one list. In 100 s it never reaches the same-list check (see above); later parts of the load were not run. I do not know whether this fixes any stall or device removal in #1452. - A kept wait is still checked against memory before the list is submitted, so the list's own reset is not in memory yet. If memory still holds an older value that meets the wait, the wait passes at once. This PR does not change that. - A 32-bit wait on half of a 64-bit write: no known value, so it is still dropped as before. - The split test does not run `split`; it checks only the values `split` carries over. - AMD and Intel GPUs. Overlap: #1256 (records `cpu_writes` ranges for this drop) and #592 (range tracking) change the same check. Neither looks at the written value. With #1256, its title-memory writes would have no known value here and would still be dropped. **AI use** - Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5) helped developing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`wait_memory` dropped a `Wait32/64BitValueX` whenever the same open list
had already written an overlapping address (`has_prior_write`, since
3dfbcfbd). The reason for that drop is that the wait would otherwise be
polled before the list is submitted, while the write that satisfies it
is still in the unsubmitted list. That only holds when the value the
list wrote meets the comparison. A list that resets a counter
(`Write64BitValue…X(X, 0)`) and then waits `X >= 1` for another queue to
raise it lost its wait: the list ran without waiting for the producer.

The list now keeps the value of its last immediate write (`write`) per
address. The wait is dropped when that value, masked, meets the
comparison (`compare_u64`), or when the last write over the address has
no known value (fill, copy, a partial write, or a split segment), as
before. Otherwise it is recorded like any other wait.

Test `a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it`:
all eight comparison functions, 32 and 64 bit, the Wait32 mask, the last
of several writes, and a fill over the value. With the drop condition of
`main` it fails on the first case (write 0, wait >= 1: 0 waits kept,
1 expected); with this change it passes (5 of 5 runs).
`cargo test --workspace --no-fail-fast -- --test-threads=4`, twice:
1420 passed, 4 failed, 46 ignored; the 4 failures are
`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (E_OUTOFMEMORY from
CreateComputePipelineState).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:32:24 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 21:14 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 21:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506#issuecomment-7174796835) 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!
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 21:15 UTC · original

gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it: passed. Lane context: this fence/wait area is the same machinery behind the two red d11_* tests on #2439; this PR does not change them on this lane.

**@⁠SlopTart** on GitHub · 2026-11-25 21:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506#issuecomment-7174829504) `gpu_` suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of `a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it`: passed. Lane context: this fence/wait area is the same machinery behind the two red `d11_*` tests on #2439; this PR does not change them on this lane.
Author
Owner

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

Independent AMD RDNA4 (native wave64) test report on exact head 46456f0d4e5e2cbc55ddc3d15efd8002cb1f0165 (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: 1422 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::a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it.
    • 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: 46456f0d4e5e2cbc55ddc3d15efd8002cb1f0165
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1602 (PresentX 1602)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14173 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.
**@⁠emirduran707** on GitHub · 2026-11-25 21:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506#issuecomment-7175143656) Independent AMD RDNA4 (native wave64) test report on exact head `46456f0d4e5e2cbc55ddc3d15efd8002cb1f0165` (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`: **1422 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::a_wait_after_an_own_write_is_dropped_only_when_the_written_value_meets_it`. - 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: 46456f0d4e5e2cbc55ddc3d15efd8002cb1f0165 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1602 (PresentX 1602) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14173 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.
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 21:04 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-25 21:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506#pullrequestreview-6064958649) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level. An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. [Learn about Copilot code review billing](https://docs.github.com/en/copilot/concepts/agents/code-review#code-review-usage).
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 08:42 UTC · original · reviewed

At exact head 46456f0 (base 6d12f58, current main b49be18), the new value-aware wait rule loses the written value across a mid-list split. This is a source-derived review; I did not run a split-enabled title fixture.

split copies written_ranges from the old ListState into the next segment (list_x.rs:2789,2879) but leaves written_values at its default empty value. wait_memory then treats an overlapping prior write with no matching known value as already ordered and returns (:3023–3025). One concrete path is: record Write64(A, 0), issue a wait on unrelated B so try_split_for_wait creates a second segment, then issue Wait64(A, >=, 1) while another queue is expected to raise A. The second segment remembers A's written range but not 0, so it drops a wait that the PR's rule would retain before the split. This is an incomplete case of the bug the PR addresses, rather than a regression newly introduced against main.

Could split carry written_values with written_ranges (keeping the existing invalidation on later overlapping writes)? A split-enabled fixture can inspect the second segment's pending waits after A >= 1, with A >= 0 as the satisfied control.

AI assistance: two GPT-6.2 Sol agents independently checked this path; GPT-6.2 Astra verified the exact-head source and wording.

**@⁠luckyteagirl** on GitHub · 2026-11-26 08:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506#pullrequestreview-6070878088) · **reviewed** At exact head `46456f0` (base `6d12f58`, current main `b49be18`), the new value-aware wait rule loses the written value across a mid-list split. This is a source-derived review; I did not run a split-enabled title fixture. `split` copies `written_ranges` from the old `ListState` into the next segment (`list_x.rs:2789,2879`) but leaves `written_values` at its default empty value. `wait_memory` then treats an overlapping prior write with no matching known value as already ordered and returns (`:3023–3025`). One concrete path is: record `Write64(A, 0)`, issue a wait on unrelated B so `try_split_for_wait` creates a second segment, then issue `Wait64(A, >=, 1)` while another queue is expected to raise A. The second segment remembers A's written range but not 0, so it drops a wait that the PR's rule would retain before the split. This is an incomplete case of the bug the PR addresses, rather than a regression newly introduced against main. Could `split` carry `written_values` with `written_ranges` (keeping the existing invalidation on later overlapping writes)? A split-enabled fixture can inspect the second segment's pending waits after `A >= 1`, with `A >= 0` as the satisfied control. AI assistance: two GPT-6.2 Sol agents independently checked this path; GPT-6.2 Astra verified the exact-head source and wording.
github-bot force-pushed github-bot/gh-2506 from 46456f0d4e to a4b66e8115 2026-11-26 11:57:42 +00:00 Compare
Author
Owner

@⁠tiagonleal on GitHub · 2026-11-26 11:53 UTC · original

Confirmed. split copied written_ranges into the next segment but left written_values empty, so after a split the wait on A was dropped as a write of unknown value.

Fixed in a4b66e81 (squashed with the first commit): split now carries both through a small writes_for_split helper. New test a_split_segment_keeps_the_written_value_for_a_later_wait records Write64(A, 0), moves the state to a new segment the way split does, then waits A >= 1. It exercises what split carries over, not split itself. With the values left out it fails (0 waits kept, 1 expected); with the fix it passes, 3 of 3 runs.

Run on a4b66e81: cargo test --workspace --no-fail-fast -- --test-threads=4, twice: 1421 passed, 4 failed, 46 ignored; the 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (E_OUTOFMEMORY, known on this machine). 60 s smoke runs on 6d12f58a and a4b66e81: both exit 0, no device removals, 1604 and 1616 frames shown. Not run: a split-enabled title fixture with the real split, and the four fuzz tests on main today.

**@⁠tiagonleal** on GitHub · 2026-11-26 11:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/2506#issuecomment-7191294837) Confirmed. `split` copied `written_ranges` into the next segment but left `written_values` empty, so after a split the wait on A was dropped as a write of unknown value. Fixed in a4b66e81 (squashed with the first commit): `split` now carries both through a small `writes_for_split` helper. New test `a_split_segment_keeps_the_written_value_for_a_later_wait` records `Write64(A, 0)`, moves the state to a new segment the way `split` does, then waits `A >= 1`. It exercises what `split` carries over, not `split` itself. With the values left out it fails (0 waits kept, 1 expected); with the fix it passes, 3 of 3 runs. Run on a4b66e81: `cargo test --workspace --no-fail-fast -- --test-threads=4`, twice: 1421 passed, 4 failed, 46 ignored; the 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (E_OUTOFMEMORY, known on this machine). 60 s smoke runs on 6d12f58a and a4b66e81: both exit 0, no device removals, 1604 and 1616 frames shown. Not run: a split-enabled title fixture with the real `split`, and the four fuzz tests on `main` today.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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