From b34b80832bf91872e25feef1ff223013ad5a5dae Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 19 Nov 2026 18:33:41 -0800 Subject: [PATCH] rt README: a lost device is not recovered The owner decided (relayed by the planner, 11-19) that the new runtime ships with no recovery after a device loss. The README described what happens at a loss but not, in its known gaps, that nothing is recovered and nothing carries over to a new device. One known-gaps bullet says so, with the Vulkan rule that keeps an imported allocation from taking a chosen address (VUID-VkMemoryAllocateInfo-opaqueCaptureAddress-03333, quoted from the 1.4.366 spec on disk). Docs only. --- crates/metal2vulkan-rt/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index c89e9ec2e..2c7d54377 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -1501,6 +1501,13 @@ while the driver's exit handler waited on a lock, with every runtime thread alre ### Known gaps +- A lost device is not recovered. After a loss, the device and everything made on it stay dead: + its buffers, textures, heaps, pipeline states, queues and events, and every device address and + resource ID it handed out. Every later commit ends `DeviceLost`. The consumer may make a new device + on the same instance and make its resources again there; nothing carries over, and an address or + resource ID from the lost device names nothing on the new one. Vulkan gives an imported allocation + no way to take a chosen device address (`VUID-VkMemoryAllocateInfo-opaqueCaptureAddress-03333`), + so a guest's addresses cannot be kept across a new device. - Command buffers committed while an earlier one of their queue runs are reported complete together, at the last one's end, where Metal reports each at its own. Measured with the harness row `long_4cb` (four command buffers committed together, two runs in flight): on an RTX 2080,