diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-11-29 16:45:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-29 16:45:59 +0100 |
| commit | 0cedc3a625bfde8cb58bbcaaaa0c4ea19fa2ae6e (patch) | |
| tree | b998942ab27b8962d2382c6f4f250f392315dadf /docs/d3d12_vulkan.md | |
| parent | cec4182c2db2f171f8a2a1f61b0ffe90739ad556 (diff) | |
| parent | 767ce20cb9816acee7baad8526d996fa3dab41af (diff) | |
Merge pull request #1918 from kawaii-shakal/fault-address-owner
d3d12: the device-fault report names what the process and the driver had at each fault address (RT-FAULT-ADDRESS-OWNER)
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 21 |
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 | |||
| 5004 | device state intact. The driver checkpoint and fault-info queries run after Vulkan reports device loss. This mode | 5004 | device state intact. The driver checkpoint and fault-info queries run after Vulkan reports device loss. This mode |
| 5005 | is off by default. | 5005 | is off by default. |
| 5006 | 5006 | ||
| 5007 | Each fault address is also looked up in this process (RT-FAULT-ADDRESS-OWNER). On Windows, `VirtualQuery` of the | ||
| 5008 | same number gives the region's base, allocation base, state, protection and type. A GPU address isn't a CPU one, | ||
| 5009 | but a host import, a range of the title's memory and a raw CPU pointer that reached a shader all share the | ||
| 5010 | number. With `LEONIDA_ADDRESS_BINDINGS=1` as well, the device enables `VK_EXT_device_address_binding_report`, and | ||
| 5011 | a debug messenger records the GPU virtual address range of every buffer, image and allocation the driver binds | ||
| 5012 | and 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 | ||
| 5020 | RTX 5070 Ti the world-start loss of 1.0.2.1 reported write addresses far above every bound range, at about 50,000 | ||
| 5021 | binds. The record keeps the last 16,384 unbinds and costs one map entry per live binding. | ||
| 5022 | |||
| 5023 | There is one record per process. A second Vulkan instance in the same process (a second device) is refused a | ||
| 5024 | messenger, 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 | ||
| 5026 | were not recorded, so this can't be mistaken for "nothing live or recently unbound there". | ||
| 5027 | |||
| 5007 | Each dispatch line carries a `seq`: a number every recorded dispatch gets, across queues and submissions, in the | 5028 | Each dispatch line carries a `seq`: a number every recorded dispatch gets, across queues and submissions, in the |
| 5008 | order the submissions were recorded. The list keeps the last 64, so its numbers can have gaps where a submission | 5029 | order the submissions were recorded. The list keeps the last 64, so its numbers can have gaps where a submission |
| 5009 | recorded more than that. | 5030 | recorded more than that. |