D3D12.X: non-overlapping video-memory arenas; command queue #18 befor… #130

Closed
github-bot wants to merge 1 commit from gh-pr/130/head into gh-pr/130/base
Owner

@⁠gbuyssens on GitHub · 2026-11-23 13:41 UTC · original
gbuyssens:pr/vram-arenas-queue18 → main · +97 −7 · 2 files · 1 commits · closed without merging

…e the layout is known writes 8 bytes (#104)

  • vram::arena_for made a new 128 MiB arena over addresses an existing one already stood for whenever a placement started below an arena or straddled its end: the resources there no longer aliased (two heaps for one console address) and every such miss cost 128 MiB of VRAM. A new arena is cut back to the gap between its neighbours (new_arena_range); a resource crossing an arena's edge gets a resource of its own (no heap can hold it whole; logged once). Unit test with the issue's sequence.
  • Until the title has passed a fence to Signal / Wait, queue slot #18 is GetDesc on the older layout and GetTimestampFrequency (a UINT64 out-parameter) on the newer one. A GetDesc answered in full wrote 16 bytes into a newer title's UINT64: now only the descriptor's first 8 bytes until a fence tells the layout (one at #14 / #15: the older layout).
**@⁠gbuyssens** on GitHub · 2026-11-23 13:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/130) `gbuyssens:pr/vram-arenas-queue18` → `main` · +97 −7 · 2 files · 1 commits · closed without merging …e the layout is known writes 8 bytes (#104) - vram::arena_for made a new 128 MiB arena over addresses an existing one already stood for whenever a placement started below an arena or straddled its end: the resources there no longer aliased (two heaps for one console address) and every such miss cost 128 MiB of VRAM. A new arena is cut back to the gap between its neighbours (new_arena_range); a resource crossing an arena's edge gets a resource of its own (no heap can hold it whole; logged once). Unit test with the issue's sequence. - Until the title has passed a fence to Signal / Wait, queue slot #18 is GetDesc on the older layout and GetTimestampFrequency (a UINT64 out-parameter) on the newer one. A GetDesc answered in full wrote 16 bytes into a newer title's UINT64: now only the descriptor's first 8 bytes until a fence tells the layout (one at #14 / #15: the older layout).
- vram::arena_for made a new 128 MiB arena over addresses an existing one already stood for
  whenever a placement started below an arena or straddled its end: the resources there no
  longer aliased (two heaps for one console address) and every such miss cost 128 MiB of VRAM.
  A new arena is cut back to the gap between its neighbours (new_arena_range); a resource
  crossing an arena's edge gets a resource of its own (no heap can hold it whole; logged once).
  Unit test with the issue's sequence.
- Until the title has passed a fence to Signal / Wait, queue slot #18 is GetDesc on the older
  layout and GetTimestampFrequency (a UINT64 out-parameter) on the newer one. A GetDesc answered
  in full wrote 16 bytes into a newer title's UINT64: now only the descriptor's first 8 bytes
  until a fence tells the layout (one at #14 / #15: the older layout).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:11:39 +00:00
github-bot closed this pull request 2026-11-26 04:11:39 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 14:14 UTC · original

Thanks – closing as a duplicate of #121 + #122 (both merged), which cover the same two items with tests.

**@⁠ivall** on GitHub · 2026-11-23 14:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/130#issuecomment-7103692452) Thanks – closing as a duplicate of #121 + #122 (both merged), which cover the same two items with tests.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.