Skip to content

D3D12.X: clamp descriptor publication to heap bounds - #50

Draft
bmjask wants to merge 1 commit into
stack/046-stream-gpu-effectsfrom
stack/047-descriptor-heap-bounds
Draft

bmjask wants to merge 1 commit into
stack/046-stream-gpu-effectsfrom
stack/047-descriptor-heap-bounds

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #49.

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

What and why

This unit isolates d3d12.x: clamp descriptor publication to heap bounds as one reviewable step in the redesign.

Upstream overlap

This is the bounds-only subset of upstream PR xcl-dev#2631 and intentionally excludes that PR's unsafe lock-removal portion. It is retained only as an internal reconciliation draft.

What is in it

  • 3943fc5b is the cleaned-stack form of integrated commit 83663fc4.

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/046-stream-gpu-effects branch from ca13b36 to b042a65 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/047-descriptor-heap-bounds branch from 3943fc5 to 8449048 Compare November 27, 2026 00:46
@bmjask
bmjask force-pushed the stack/046-stream-gpu-effects branch from b042a65 to d252dcf Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/047-descriptor-heap-bounds branch from 8449048 to b1752f0 Compare November 27, 2026 05:14
Descriptor range publication could continue past small heaps and partial tail pages into adjacent shared-heap ranges. Carry the source heap's remaining slot count into the resolved slot and clamp the existing zero-allocation publication loop without changing its lock coverage.

Adapted from the bounds portion of xcl-dev/xcl PR xcl-dev#2631 commit 3b49f09 by Decodere. The PR's lock-removal portion is intentionally excluded because it permits range reuse before a delayed copy.

Cross-target cargo check for library and tests passed; Windows execution was unavailable.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/046-stream-gpu-effects branch from d252dcf to b66b5b0 Compare November 28, 2026 01:35
@bmjask
bmjask force-pushed the stack/047-descriptor-heap-bounds branch from b1752f0 to 9efcadb Compare November 28, 2026 01:35
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant