upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/d3d12_vulkan.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/d3d12_vulkan.md')
-rw-r--r--docs/d3d12_vulkan.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index d41fcc68a..b6df484bc 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -5004,6 +5004,27 @@ when it cannot sample the submission lock for that long. A progress warning leav
5004device state intact. The driver checkpoint and fault-info queries run after Vulkan reports device loss. This mode 5004device state intact. The driver checkpoint and fault-info queries run after Vulkan reports device loss. This mode
5005is off by default. 5005is off by default.
5006 5006
5007Each fault address is also looked up in this process (RT-FAULT-ADDRESS-OWNER). On Windows, `VirtualQuery` of the
5008same number gives the region's base, allocation base, state, protection and type. A GPU address isn't a CPU one,
5009but a host import, a range of the title's memory and a raw CPU pointer that reached a shader all share the
5010number. With `LEONIDA_ADDRESS_BINDINGS=1` as well, the device enables `VK_EXT_device_address_binding_report`, and
5011a debug messenger records the GPU virtual address range of every buffer, image and allocation the driver binds
5012and unbinds (`runtime/src/address_binding.h`). The fault report then lists, for each address:
5013- the live objects that contain the address ("containing"), and those that only share its reported page, whose
5014 size is the fault's `addressPrecision` ("on the page");
5015- the live objects that end nearest below it and start nearest above it;
5016- up to 16 recently unbound objects that held it, with their type, range, handle and the times they were bound
5017 and unbound.
5018
5019"Nothing live or recently unbound there" means that no object of this device had that GPU address. On an
5020RTX 5070 Ti the world-start loss of 1.0.2.1 reported write addresses far above every bound range, at about 50,000
5021binds. The record keeps the last 16,384 unbinds and costs one map entry per live binding.
5022
5023There is one record per process. A second Vulkan instance in the same process (a second device) is refused a
5024messenger, and its device doesn't enable the extension, so the two devices' GPU addresses aren't mixed. If
5025`LEONIDA_ADDRESS_BINDINGS=1` is set but no messenger records the device, the fault report says that the bindings
5026were not recorded, so this can't be mistaken for "nothing live or recently unbound there".
5027
5007Each dispatch line carries a `seq`: a number every recorded dispatch gets, across queues and submissions, in the 5028Each dispatch line carries a `seq`: a number every recorded dispatch gets, across queues and submissions, in the
5008order the submissions were recorded. The list keeps the last 64, so its numbers can have gaps where a submission 5029order the submissions were recorded. The list keeps the last 64, so its numbers can have gaps where a submission
5009recorded more than that. 5030recorded more than that.