Skip to content

Shaders: release pipeline permits during unwind - #156

Draft
bmjask wants to merge 1 commit into
stack/152-two-pass-compute-nodefrom
stack/153-release-pipeline-permits
Draft

bmjask wants to merge 1 commit into
stack/152-two-pass-compute-nodefrom
stack/153-release-pipeline-permits

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #155.

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

What and why

This unit isolates shaders: release pipeline permits during unwind as one reviewable step in the redesign.

Upstream overlap

This is part of upstream PR xcl-dev#2712 and is retained only as an internal reconciliation draft.

What is in it

  • e6fa6f13 is the cleaned-stack form of integrated commit f5e56e09.

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/152-two-pass-compute-node branch from acca847 to fa5c7ff Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/153-release-pipeline-permits branch 3 times, most recently from faaaa36 to 44ab23f Compare November 27, 2026 05:14
Manual running-count decrements covered normal returns but leaked a slot if driver pipeline creation panicked, potentially leaving every later preparation thread blocked on the concurrency cap.

Use a narrow RAII permit for only the running counter and condition variable. A deterministic unwind test verifies the counter returns to zero and a waiting thread can acquire the slot.

Adapted as an independent stage of PR xcl-dev#2712 by ZekkJJ. Checked with the Windows GNU cross-target cargo check; native Windows tests and GPU execution were unavailable.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/153-release-pipeline-permits branch from 44ab23f to c3fd279 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