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

Closed
gbuyssens wants to merge 1 commit from upstream-pr/130 into main
gbuyssens commented 2026-11-23 13:41:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gbuyssens on 2026-11-23T13:41:15Z.


…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).
<!-- greyfinch-sync:ivall/xcl:issue:6560624546 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/130). Originally posted by [gbuyssens](https://github.com/gbuyssens) on 2026-11-23T13:41:15Z. --- …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).
upstream-sync closed this pull request 2026-11-24 06:57:17 +00:00
ivall commented 2026-11-24 07:00:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T14:14:21Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7103692452 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/130#issuecomment-7103692452). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T14:14:21Z. --- Thanks – closing as a duplicate of #121 + #122 (both merged), which cover the same two items with tests.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!129
No description provided.