Skip to content

D3D12.X: keep descriptor heap tag cleanup under the heap lock - #1

Merged
utkarshxdev merged 2 commits into
utkarshxdev:mainfrom
towiice:fix/console-heap-and-d3d12-parity-tests
Nov 25, 2026
Merged

utkarshxdev merged 2 commits into
utkarshxdev:mainfrom
towiice:fix/console-heap-and-d3d12-parity-tests

Conversation

@towiice

@towiice towiice commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What is in it

  • Heap unregistration clears resync tags while holding HEAPS, using the same lock order as the resync scan. This prevents cleanup from deleting a replacement heap's tags if its COM address is reused.
  • Production cleanup remains gated by util::mac_host(). The unit test exercises the gated path on any host and verifies that cleanup preserves another heap's tags.

Tested

  • Revised checkout on macOS: cargo check --locked --target x86_64-pc-windows-msvc --offline --all-targets passed. ./scripts/verify_mac_build.sh reported 39 passed, 0 failed.
  • The retained unregister test ran in an isolated heap-bookkeeping harness with GPU and allocator calls stubbed: 1 passed, 0 failed.
  • Contributor report for earlier head c05da4b (Windows 11, GTX 1650 SUPER, Rust 1.100.0, GNU LLVM target): 5 targeted tests passed, 0 failed. Workspace suite: 782 passed, 0 failed, 45 ignored. The two wave64-dependent tests were skipped.

Regression run

The matching xcl-smoke runs on main and the final PR head are pending.

Not tested

  • Full Windows suite on the revised head.
  • Real-title playback or descriptor resync on a Mac graphics runtime.

AI use

  • Antigravity (Gemini 4 Neon) wrote the original change and test. Claude Code (Claude Sonnet 5.5) ran the original Windows tests. Codex restored the lock scope and Mac gating, adapted the test, and ran the revised checks listed above.

unregister removed the heap's LAST_TAGS entries while holding HEAPS, and
only on a Mac host. The removal now runs after HEAPS is released, on every
host. No failure was observed: resync_title_writes, which fills the tags,
runs only on a Mac host, so elsewhere the map stays empty.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@towiice
towiice force-pushed the fix/console-heap-and-d3d12-parity-tests branch from d3415ab to c05da4b Compare November 25, 2026 02:16
@towiice towiice changed the title d3d12x: clean up LAST_TAGS outside HEAPS lock and add D3D12 host-driver reference parity suite D3D12.X: drop a heap's resync tags after releasing the heap lock Nov 25, 2026
@utkarshxdev utkarshxdev changed the title D3D12.X: drop a heap's resync tags after releasing the heap lock D3D12.X: keep descriptor heap tag cleanup under the heap lock Nov 25, 2026
@utkarshxdev
utkarshxdev merged commit 48e9a5e into utkarshxdev:main Nov 25, 2026
0 of 2 checks passed
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.

2 participants