upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-25 00:21:56 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-25 00:21:56 -0600
commit6d66718f3efbf799fe2d2e8a853702b72368e832 (patch)
treebf953edcbcde9fe77601213f26b3e0a936a828e1 /docs
parent42537e7b6f84c233ac009b924d3a25d2a1178197 (diff)
d3d12: title memory past the window cap names a zeroed scratch window (RT-TITLE-WINDOW-OVERFLOW)
Past LEONIDA_TITLE_WINDOWS_MB, or with no arena room for a window, resolve_title_memory handed the GPU the title's raw VA. That names nothing of the device's, and one read of it lost the device at the world start (#1537). Reserve 16 MiB + 64 KiB of zero-filled arena with the first window and point such addresses into it instead: the cost is a wrong result, not the device. The raw VA is kept only when even the scratch did not fit (logged once). d3d12_title_window_cap runs d3d12_title_va_test --window-cap with a cap of 0: two views of the title's memory name the arena, share the scratch, and a dispatch through one reads zeros. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/d3d12_vulkan.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index e23985ecb..059353390 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -1617,7 +1617,11 @@ The copies:
1617- Any **other address in the title's memory** gets a window: the 64 KiB-aligned pages it covers, clipped to the 1617- Any **other address in the title's memory** gets a window: the 64 KiB-aligned pages it covers, clipped to the
1618 title's range, copied into the arena now and before every submission, through the same shadow refresh as slot 133 1618 title's range, copied into the arena now and before every submission, through the same shadow refresh as slot 133
1619 (so dirty-page tracking for that refresh applies to both). Windows stay until the device goes, up to 1619 (so dirty-page tracking for that refresh applies to both). Windows stay until the device goes, up to
1620 `LEONIDA_TITLE_WINDOWS_MB` (64 MiB by default). A window that 1620 `LEONIDA_TITLE_WINDOWS_MB` (64 MiB by default). Past the cap, or with no room for a window, the address names the
1621 **scratch window** instead: 16 MiB + 64 KiB of zero-filled arena reserved with the first window, shared by every
1622 such address and never refreshed, so a shader reads zeros (or what another such shader wrote) and the run goes on
1623 with a wrong result. The title's raw VA names nothing of the device's: on an RTX 5080 one read of it lost the
1624 device at the world start (#1537). Without arena room for the scratch the raw VA is kept (logged once). A window that
1621 cannot fit between the title's address reservations can use a separate mapped buffer. The buffer's device address 1625 cannot fit between the title's address reservations can use a separate mapped buffer. The buffer's device address
1622 must fit as a positive 47-bit offset from the arena base. The same window cap and dirty-page refresh apply. 1626 must fit as a positive 47-bit offset from the arena base. The same window cap and dirty-page refresh apply.
1623 `LEONIDA_STREAM_BUFFER_WINDOWS=0` requires the window to fit in the arena. 1627 `LEONIDA_STREAM_BUFFER_WINDOWS=0` requires the window to fit in the arena.