D3D12.X: create sparse placed buffers outside STATE and drain FORGOTTEN #2529

Closed
ramon-victor wants to merge 1 commit from upstream-pr/2539 into main
ramon-victor commented 2026-11-25 22:12:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-25T22:12:32Z.


Releases the STATE lock before calling real::dev_create_reserved_resource in sparse::place_buffer, then re-acquires STATE via lock_state_in so any deferred FORGOTTEN entries for a reused COM pointer are drained before recording the newly placed buffer.

Previously place_buffer held STATE across dev_create_reserved_resource. If another thread ran final Release on a sparse placed buffer at address P while STATE was held, sparse::forget_buffer(P) hit TryLockError::WouldBlock and queued P in FORGOTTEN. Once D3D12 reused P for the newly created reserved resource, place_buffer overwrote s.buffers[P] (leaking the old buffer's tile pins if still present), and the very next lock_state() drained FORGOTTEN and deleted the live new buffer and its tile pins.

Part of #2457 (specifically item 2; item 1 is tracked separately).

What is in it

  • crates/xcl/src/hle/d3d12x/sparse.rs:
    • Factor lock_state_in, forget_released_in, forget_buffer_in, and place_buffer_in so the lock discipline and pointer-reuse recovery are directly testable against an isolated State without touching process-global statics.
    • Drop the STATE guard after bounds-checking [start, end] and before invoking real::dev_create_reserved_resource (matching vram::place_on_pages), re-acquire STATE via lock_state_in (draining FORGOTTEN before mapping/pinning), defensively unpin any stale s.buffers[raw] entry before inserting, and release the newly created COM object if STATE or the sparse window disappeared while unlocked.
    • Add tests::place_buffer_drains_forgotten_and_does_not_hold_state_across_create verifying that STATE is unlocked during resource creation, that a reused pointer with a deferred FORGOTTEN release keeps its new buffer and tile pin while releasing the old buffer's tile pin, and that on_abort runs cleanly if STATE is torn down while unlocked.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 3070 8 GiB (driver 621.24, wave32), AMD Ryzen 7 5700X, 32 GiB RAM, Windows 11 Pro (26300), rustc 1.99.0 (x86_64-pc-windows-msvc), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0).
  • Failing-first before fix: cargo test -p xcl --lib place_buffer_drains_forgotten_and_does_not_hold_state_across_create -- --nocapture failed (0 passed, 1 failed: STATE must not be held across dev_create_reserved_resource).
  • After fix: cargo test -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=1: 18 passed, 0 failed, 1 ignored (early_commit_timing benchmark).
  • Full workspace suite (.\scripts\test.ps1, debug): 1424 passed, 0 failed, 46 ignored (skipped on this adapter: wave64-only GPU tests, unsupported per-lane semantics variants, no heap windows).
  • Release build (cargo build --release -p xcl) and clean 60 s retail smoke run (.\scripts\smoke.ps1).

Regression run

Baseline (main):

xcl-smoke v1
commit: f087b998d0d51a9f11bbfa0761967a63e778edd9
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14467 MB

PR (23e129a):

xcl-smoke v1
commit: 23e129a10d0d78547845dba430ce6055f735aacb
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1627 (PresentX 1627)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14024 MB

Not tested

  • Multi-threaded retail stress triggering pointer reuse on dev_create_reserved_resource (reproduced deterministically via place_buffer_in + forget_buffer_in in the unit test).
  • AMD / Intel GPUs and Wine / macOS hosts.

AI use

  • Antigravity (Gemini 4 Neon): analyzed #2457 item 2, refactored place_buffer to drop STATE around resource creation and drain FORGOTTEN before recording, wrote the failing-first unit test, ran .\scripts\test.ps1, release build, and the 60 s smoke.ps1 run, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5500065642 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539). Originally posted by [ramon-victor](https://github.com/ramon-victor) on 2026-11-25T22:12:32Z. --- Releases the `STATE` lock before calling `real::dev_create_reserved_resource` in `sparse::place_buffer`, then re-acquires `STATE` via `lock_state_in` so any deferred `FORGOTTEN` entries for a reused COM pointer are drained before recording the newly placed buffer. Previously `place_buffer` held `STATE` across `dev_create_reserved_resource`. If another thread ran final `Release` on a sparse placed buffer at address `P` while `STATE` was held, `sparse::forget_buffer(P)` hit `TryLockError::WouldBlock` and queued `P` in `FORGOTTEN`. Once D3D12 reused `P` for the newly created reserved resource, `place_buffer` overwrote `s.buffers[P]` (leaking the old buffer's tile pins if still present), and the very next `lock_state()` drained `FORGOTTEN` and deleted the live new buffer and its tile pins. Part of #2457 (specifically item 2; item 1 is tracked separately). **What is in it** - `crates/xcl/src/hle/d3d12x/sparse.rs`: - Factor `lock_state_in`, `forget_released_in`, `forget_buffer_in`, and `place_buffer_in` so the lock discipline and pointer-reuse recovery are directly testable against an isolated `State` without touching process-global statics. - Drop the `STATE` guard after bounds-checking `[start, end]` and before invoking `real::dev_create_reserved_resource` (matching `vram::place_on_pages`), re-acquire `STATE` via `lock_state_in` (draining `FORGOTTEN` before mapping/pinning), defensively unpin any stale `s.buffers[raw]` entry before inserting, and release the newly created COM object if `STATE` or the sparse window disappeared while unlocked. - Add `tests::place_buffer_drains_forgotten_and_does_not_hold_state_across_create` verifying that `STATE` is unlocked during resource creation, that a reused pointer with a deferred `FORGOTTEN` release keeps its new buffer and tile pin while releasing the old buffer's tile pin, and that `on_abort` runs cleanly if `STATE` is torn down while unlocked. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 3070 8 GiB (driver `621.24`, wave32), AMD Ryzen 7 5700X, 32 GiB RAM, Windows 11 Pro (`26300`), `rustc 1.99.0` (`x86_64-pc-windows-msvc`), DXC/DXIL `1.8.2502.11` (Windows SDK `10.0.26100.0`). - Failing-first before fix: `cargo test -p xcl --lib place_buffer_drains_forgotten_and_does_not_hold_state_across_create -- --nocapture` failed (`0 passed, 1 failed`: `STATE must not be held across dev_create_reserved_resource`). - After fix: `cargo test -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=1`: `18 passed, 0 failed, 1 ignored` (`early_commit_timing` benchmark). - Full workspace suite (`.\scripts\test.ps1`, debug): `1424 passed, 0 failed, 46 ignored` (skipped on this adapter: wave64-only GPU tests, unsupported per-lane semantics variants, `no heap windows`). - Release build (`cargo build --release -p xcl`) and clean 60 s retail smoke run (`.\scripts\smoke.ps1`). **Regression run** Baseline (`main`): ``` xcl-smoke v1 commit: f087b998d0d51a9f11bbfa0761967a63e778edd9 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14467 MB ``` PR (`23e129a`): ``` xcl-smoke v1 commit: 23e129a10d0d78547845dba430ce6055f735aacb gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1627 (PresentX 1627) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14024 MB ``` **Not tested** - Multi-threaded retail stress triggering pointer reuse on `dev_create_reserved_resource` (reproduced deterministically via `place_buffer_in` + `forget_buffer_in` in the unit test). - AMD / Intel GPUs and Wine / macOS hosts. **AI use** - Antigravity (Gemini 4 Neon): analyzed #2457 item 2, refactored `place_buffer` to drop `STATE` around resource creation and drain `FORGOTTEN` before recording, wrote the failing-first unit test, ran `.\scripts\test.ps1`, release build, and the 60 s `smoke.ps1` run, and drafted this PR description.
DarkPanda69 commented 2026-11-25 23:09:07 +00:00 (Migrated from github.com)

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


AMD run (listed as untested): the new test passes on an RX 9070 XT, with real reserved resources on AMD hardware.

Head 23e129a applied on main e1d84b7, debug, Windows 11 Pro 26200, RX 9070 XT (RDNA4, driver 32.0.32029.2010):

  • cargo test -p xcl --lib -- d3d12x::sparse --test-threads=4: 18 passed, 0 failed, 1 ignored, no skips.
  • place_buffer_drains_forgotten_and_does_not_hold_state_across_create -- --nocapture: ok, no skip. The test takes the default adapter (D3D12CreateDevice(None, ..)), which is the RX 9070 XT on this machine, so its CreateReservedResource calls ran on the AMD driver, not WARP.

Not tested: Intel; this test on the machine's RTX 3060 (it always uses the default adapter); a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7176262320 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7176262320). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T22:21:32Z. --- AMD run (listed as untested): the new test passes on an RX 9070 XT, with real reserved resources on AMD hardware. Head `23e129a` applied on `main` `e1d84b7`, debug, Windows 11 Pro 26200, RX 9070 XT (RDNA4, driver 32.0.32029.2010): - `cargo test -p xcl --lib -- d3d12x::sparse --test-threads=4`: 18 passed, 0 failed, 1 ignored, no skips. - `place_buffer_drains_forgotten_and_does_not_hold_state_across_create -- --nocapture`: ok, no skip. The test takes the default adapter (`D3D12CreateDevice(None, ..)`), which is the RX 9070 XT on this machine, so its `CreateReservedResource` calls ran on the AMD driver, not WARP. Not tested: Intel; this test on the machine's RTX 3060 (it always uses the default adapter); a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
DavidM1911 commented 2026-11-25 23:09:07 +00:00 (Migrated from github.com)

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


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:7176287208 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7176287208). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T22:22:44Z. --- 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!
emirduran707 commented 2026-11-25 23:09:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T22:37:58Z.


Independent AMD RDNA4 (native wave64) test report on exact head 23e129a10d0d78547845dba430ce6055f735aacb (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::sparse::tests::place_buffer_drains_forgotten_and_does_not_hold_state_across_create.
    • 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: 23e129a10d0d78547845dba430ce6055f735aacb
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1600 (PresentX 1601)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13932 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:7176602355 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7176602355). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T22:37:58Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `23e129a10d0d78547845dba430ce6055f735aacb` (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::sparse::tests::place_buffer_drains_forgotten_and_does_not_hold_state_across_create`. - 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: 23e129a10d0d78547845dba430ce6055f735aacb gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1600 (PresentX 1601) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13932 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.
SlopTart commented 2026-11-26 00:05:40 +00:00 (Migrated from github.com)

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


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

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

Not tested: retail titles (no title data on this lane, counts only).

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

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

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T00:08:38Z.


Focused test finding on the current clean head 23e129a. The existing test delivers both old-buffer notifications before registering the replacement. In the final-release path, the driver Release returns zero before sparse::forget_buffer is called. Another thread can therefore register a resource at the freed address before that old notification is queued.

I changed only the test in a detached scratch checkout: remove its two notifications inside the create closure, then call forget_buffer_in(&local_state, &local_forgotten, ptr) after place_buffer_in has registered the new buffer. The added assertions were:

forget_buffer_in(&local_state, &local_forgotten, ptr); // delayed notification for old object
let g = lock_state_in(&local_state, &local_forgotten);
let s = g.as_ref().unwrap();
assert_eq!(s.buffers.get(&ptr), Some(&vec![new_tile]), "late old release removed the replacement");
assert_eq!(s.pinned.get(&new_tile), Some(&1), "late old release unpinned the replacement");

cargo test -p xcl --lib place_buffer_drains_forgotten_and_does_not_hold_state_across_create -- --nocapture --test-threads=1 on the modified test: 0 passed, 1 failed, at late old release removed the replacement (left: None, right: Some([(0, 1)])). After restoring the test to the exact PR head, the same command passed 1/1. This is a deterministic bookkeeping test with a simulated reused address, not an observed driver race or title run.

The remaining contract is that a delayed retirement for object A must never retire object B merely because B reused A's pointer. A per-placement identity captured before the driver's final Release, with tile retirement keyed by that identity, appears to address this ordering; the address-only notification cannot distinguish A and B. The other pointer-keyed cleanup in res_release also deserves consideration if the fix broadens beyond sparse pins. I did not change production code or push a branch.

Windows 11 build 26300, RTX 3080 Ti / 621.35, rustc 1.99.1. AI use: Codex (GPT-6.2 Sol) prepared and ran the test and drafted this report; GPT-6.2 Astra reviewed the ownership reasoning.

<!-- greyfinch-sync:ivall/xcl:comment:7178440515 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7178440515). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T00:08:38Z. --- Focused test finding on the current clean head [`23e129a`](https://github.com/xcl-dev/xcl/commit/23e129a10d0d78547845dba430ce6055f735aacb). The [existing test](https://github.com/xcl-dev/xcl/blob/23e129a10d0d78547845dba430ce6055f735aacb/crates/xcl/src/hle/d3d12x/sparse.rs#L2587-L2719) delivers both old-buffer notifications before registering the replacement. In [the final-release path](https://github.com/xcl-dev/xcl/blob/23e129a10d0d78547845dba430ce6055f735aacb/crates/xcl/src/hle/d3d12x/real.rs#L1663-L1693), the driver `Release` returns zero before `sparse::forget_buffer` is called. Another thread can therefore register a resource at the freed address before that old notification is queued. I changed only the test in a detached scratch checkout: remove its two notifications inside the `create` closure, then call `forget_buffer_in(&local_state, &local_forgotten, ptr)` after `place_buffer_in` has registered the new buffer. The added assertions were: ```rust forget_buffer_in(&local_state, &local_forgotten, ptr); // delayed notification for old object let g = lock_state_in(&local_state, &local_forgotten); let s = g.as_ref().unwrap(); assert_eq!(s.buffers.get(&ptr), Some(&vec![new_tile]), "late old release removed the replacement"); assert_eq!(s.pinned.get(&new_tile), Some(&1), "late old release unpinned the replacement"); ``` `cargo test -p xcl --lib place_buffer_drains_forgotten_and_does_not_hold_state_across_create -- --nocapture --test-threads=1` on the modified test: **0 passed, 1 failed**, at `late old release removed the replacement` (`left: None`, `right: Some([(0, 1)])`). After restoring the test to the exact PR head, the same command passed **1/1**. This is a deterministic bookkeeping test with a simulated reused address, not an observed driver race or title run. The remaining contract is that a delayed retirement for object A must never retire object B merely because B reused A's pointer. A per-placement identity captured before the driver's final `Release`, with tile retirement keyed by that identity, appears to address this ordering; the address-only notification cannot distinguish A and B. The other pointer-keyed cleanup in `res_release` also deserves consideration if the fix broadens beyond sparse pins. I did not change production code or push a branch. Windows 11 build 26300, RTX 3080 Ti / 621.35, rustc 1.99.1. AI use: Codex (GPT-6.2 Sol) prepared and ran the test and drafted this report; GPT-6.2 Astra reviewed the ownership reasoning.
throny commented 2026-11-26 01:05:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-26T00:58:35Z.


Two contributors checked independently and found that #2528 solves the same problem (for #2457) in a different way: #1607, group D122. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7179300371 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7179300371). Originally posted by [throny](https://github.com/throny) on 2026-11-26T00:58:35Z. --- <!-- xcl-1607-hint:D122 --> Two contributors checked independently and found that #2528 solves the same problem (for #2457) in a different way: #1607, group D122. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
github-actions[bot] commented 2026-11-30 08:40:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:38Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273204582 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7273204582). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:40:38Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:19:23 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 23e129a

main commit a97dbe9b ("D3D12.X: create sparse placed buffers outside global state") says it adapts this PR. Current main has the same place_buffer_in, lock_state_in/forget_released_in, the unlocked CreateReservedResource, the on_abort release and the forget_in of a reused address, and adds a PLACEMENT lock and fence-generation revalidation on top.
The closed #2528 fixed the same bug (#2457 item 2) by draining FORGOTTEN before recording; #2531 fixes item 1, a different bug.
Recommendation: close (superseded by main commit a97dbe9b).

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:7305166013 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7305166013). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:19:23Z. --- **Triage (#1607)** – head 23e129a main commit a97dbe9b ("D3D12.X: create sparse placed buffers outside global state") says it adapts this PR. Current main has the same `place_buffer_in`, `lock_state_in`/`forget_released_in`, the unlocked `CreateReservedResource`, the `on_abort` release and the `forget_in` of a reused address, and adds a `PLACEMENT` lock and fence-generation revalidation on top. The closed #2528 fixed the same bug (#2457 item 2) by draining `FORGOTTEN` before recording; #2531 fixes item 1, a different bug. Recommendation: close (superseded by main commit a97dbe9b). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:53:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:53:32Z.


Closing as superseded: this change is already on main (a97dbe9b). main sparse.rs has place_buffer_in, lock_state_in, forget_buffer_in, forget_in on a reused address, generation revalidation (a97dbe9b adapted from #2539)

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311799206 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2539#issuecomment-7311799206). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:53:32Z. --- Closing as superseded: this change is already on `main` (a97dbe9b). main sparse.rs has place_buffer_in, lock_state_in, forget_buffer_in, forget_in on a reused address, generation revalidation (a97dbe9b adapted from #2539) Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

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!2529
No description provided.