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:
authoraslan2142 <jan.trencansky@protonmail.com>2026-11-25 15:38:52 +0100
committerGitHub <noreply@github.com>2026-11-25 15:38:52 +0100
commitc3b58ef03dba482eef1b0d5a7dda5fec07ad382f (patch)
tree89284ceb01dc763e80cf7e312a9b9239b49ebf1c /docs
parent24a29f8b4e17e186882d08d2aa0cc71f8eb5c388 (diff)
parenta607b779c4342436ca7d408630733223fac49246 (diff)
Merge pull request #1732 from kawaii-shakal/arena-rebar-cap
d3d12: keep a Resizable BAR arena in VRAM when the driver excludes it from a very large buffer (RT-ARENA-REBAR-FIT)
Diffstat (limited to 'docs')
-rw-r--r--docs/d3d12_vulkan.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index c66c424b0..aa7913060 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -1743,6 +1743,15 @@ The runtime allocates image keys from `0x100000000` (4 GiB) in 256-byte steps, a
1743 heap of 256 MiB or less (214 MiB on an RTX 3090 with driver 616.56), so the 256 MiB default arena lands in 1743 heap of 256 MiB or less (214 MiB on an RTX 3090 with driver 616.56), so the 256 MiB default arena lands in
1744 system memory there. Asking that heap for it broke VUID-vkAllocateMemory-pAllocateInfo-01713 even though the 1744 system memory there. Asking that heap for it broke VUID-vkAllocateMemory-pAllocateInfo-01713 even though the
1745 driver returned `VK_SUCCESS` (reported by CharlyRien). 1745 driver returned `VK_SUCCESS` (reported by CharlyRien).
1746 - With Resizable BAR a driver can still leave the `DEVICE_LOCAL | HOST_VISIBLE` type out of a large buffer's
1747 `memoryTypeBits`. On an RTX 5070 Ti (NVIDIA 617.42, Windows 11) an arena-shaped buffer of 4,090 MiB may use
1748 it and one of 4,092 MiB may not, so `LEONIDA_ARENA_MB=4096` (4,095 MiB) put the whole arena in system memory.
1749 `create_arena` tries smaller sizes in 16 MiB steps, by at most an eighth, and keeps the largest whose
1750 requirements allow that type and fit its heap. Placing the arena in ReBAR does not guarantee a reduction in
1751 host commit. An [RTX 4080 comparison](https://github.com/ubiquitarianism/leonida/pull/1732#issuecomment-7159574385)
1752 confirmed ReBAR placement and measured higher process private bytes. The runtime logs the size cap:
1753 `GPU address arena: 4080 MiB of the 4095 MiB asked for, capped by the device's Resizable BAR memory types`.
1754 Without Resizable BAR nothing changes.
1746- M4+: allocate the arena `DEVICE_LOCAL` and stage CPU writes (descriptor heaps, shader blobs, buffer uploads) 1755- M4+: allocate the arena `DEVICE_LOCAL` and stage CPU writes (descriptor heaps, shader blobs, buffer uploads)
1747 through a host-visible staging buffer, copied before the commands that use them. The hash table is not in the 1756 through a host-visible staging buffer, copied before the commands that use them. The hash table is not in the
1748 arena either: it is a normal storage buffer in `DEVICE_LOCAL` memory, uploaded from a mapped staging copy before 1757 arena either: it is a normal storage buffer in `DEVICE_LOCAL` memory, uploaded from a mapped staging copy before