D3D12.X: failed command-list Reset moves its allocator recording association #1018

Closed
opened 2026-11-26 04:40:44 +00:00 by github-bot · 1 comment
Owner

@⁠nova-aryan on GitHub · 2026-11-24 10:25 UTC · original

On main 6efdabc, list_x calls alloc_pool::for_list before the native command-list Reset. That immediately moves the list out of its old backing's users. If native Reset fails, list_x correctly retains the old recording state (#118), but the allocator pool already says the recording lives on the requested replacement. The old backing can then be treated as free even though the old recording still exists.

I will commit the allocator association only after successful native Reset, covering normal Reset, KickoffX reopening and split-segment reuse. The selected PC backing must be captured before the driver call and the pool lock must not be held across it. Extend the existing synthetic native-Reset regression to check pool ownership on failure and success.

No local build/test/game execution at the user's request; draft pending validation. This follows the allocator tracking introduced by #897 and is separate from spare Reset ownership (#1004/#1009) and final list-release cleanup (#1010/#1012).

**@⁠nova-aryan** on GitHub · 2026-11-24 10:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/1018) On main `6efdabc`, `list_x` calls `alloc_pool::for_list` before the native command-list Reset. That immediately moves the list out of its old backing's `users`. If native Reset fails, `list_x` correctly retains the old recording state (#118), but the allocator pool already says the recording lives on the requested replacement. The old backing can then be treated as free even though the old recording still exists. I will commit the allocator association only after successful native Reset, covering normal Reset, KickoffX reopening and split-segment reuse. The selected PC backing must be captured before the driver call and the pool lock must not be held across it. Extend the existing synthetic native-Reset regression to check pool ownership on failure and success. No local build/test/game execution at the user's request; draft pending validation. This follows the allocator tracking introduced by #897 and is separate from spare Reset ownership (#1004/#1009) and final list-release cleanup (#1010/#1012).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:40:44 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-24 10:47 UTC · original

Fixed by #1023 (01d4c77, merged in 384f7f7).

**@⁠ivall** on GitHub · 2026-11-24 10:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/1018#issuecomment-7129240784) Fixed by #1023 (01d4c77, merged in 384f7f7).
This discussion has been locked. Commenting is limited to contributors.
No description provided.