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

Closed
opened 2026-11-24 10:25:18 +00:00 by nova-aryan · 1 comment
nova-aryan commented 2026-11-24 10:25:18 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by nova-aryan on 2026-11-24T10:25:18Z.


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).

<!-- greyfinch-sync:ivall/xcl:issue:6579688289 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1018). Originally posted by [nova-aryan](https://github.com/nova-aryan) on 2026-11-24T10:25:18Z. --- 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).
ivall commented 2026-11-24 11:05:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T10:47:05Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7129240784 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/1018#issuecomment-7129240784). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T10:47:05Z. --- Fixed by #1023 (01d4c77, merged in 384f7f7).
Sign in to join this conversation.
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#1011
No description provided.