Skip to content

D3D12.X: abort sparse allocator reuse after wait failure - #143

Draft
bmjask wants to merge 1 commit into
stack/139-sparse-window-query-cachefrom
stack/140-abort-sparse-reuse
Draft

bmjask wants to merge 1 commit into
stack/139-sparse-window-query-cachefrom
stack/140-abort-sparse-reuse

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #142.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates d3d12.x: abort sparse allocator reuse after wait failure as one reviewable step in the redesign.

What is in it

  • 90d1bfc7 is the cleaned-stack form of integrated commit 815f3d78.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

@bmjask
bmjask force-pushed the stack/140-abort-sparse-reuse branch 2 times, most recently from bd5e0f3 to c6dc74e Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/139-sparse-window-query-cache branch from 452d30b to fef6763 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/140-abort-sparse-reuse branch from c6dc74e to 819b9fc Compare November 27, 2026 05:14
Sparse upload and readback paths continued after a five-second fence timeout, resetting command allocators which the GPU could still be using and publishing readback staging bytes whose copy had not completed. Reset and Close failures were ignored as well.

Make upload-slot acquisition fail closed, retry exact dirty or zero work, and abort readback before allocator reuse or CPU publication whenever its wait or command-list transition fails. The healthy asynchronous path is unchanged.

The Windows GNU library/test cross-check passed with the existing warnings. Windows MSVC runtime, GPU execution, and smoke tests were not available here.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/139-sparse-window-query-cache branch from fef6763 to 5104d2b Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/140-abort-sparse-reuse branch from 819b9fc to 2ce55a8 Compare November 27, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant