Skip to content

D3D12.X: retain submitted texture staging after wait failure - #110

Draft
bmjask wants to merge 1 commit into
stack/106-poll-allocator-fences-unlockedfrom
stack/107-retain-failed-wait-staging
Draft

bmjask wants to merge 1 commit into
stack/106-poll-allocator-fences-unlockedfrom
stack/107-retain-failed-wait-staging

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #109.

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

What and why

This unit isolates d3d12.x: retain submitted texture staging after wait failure as one reviewable step in the redesign.

Upstream overlap

This is related to, but not patch-identical with, upstream PR xcl-dev#1486; reconciliation is required before upstream submission.

What is in it

  • 72c510f6 is the cleaned-stack form of integrated commit 0e641103.

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/106-poll-allocator-fences-unlocked branch from 0f7c499 to 6c6410b Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/107-retain-failed-wait-staging branch 2 times, most recently from 526dcef to 8c8f375 Compare November 27, 2026 01:01
Texture submission can succeed even when the retirement-fence creation or
Signal used to track its lifetime fails. If the fallback queue wait also
fails, releasing the command objects and staging resource can free memory
that submitted GPU work still references.

Drop those objects only after a successful fallback wait; otherwise retain
them deliberately. Apply the same rule to synchronous uploads whose native
tracking Signal fails.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/107-retain-failed-wait-staging branch from 8c8f375 to f4c263a Compare November 27, 2026 05:14
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