A device refused for want of resources takes its least plan whatever the code: too many objects and host memory too

vkCreateDevice's answer where the device-specific resources a logical
device needs run out is VK_ERROR_TOO_MANY_OBJECTS (the Vulkan spec,
vkCreateDevice), and a driver short of host memory for the plan's
VkQueues may make a device of fewer: both now take the least plan, as
VK_ERROR_INITIALIZATION_FAILED (NVIDIA's channels) and
VK_ERROR_OUT_OF_DEVICE_MEMORY did. A device refused with both plans
is refused naming each attempt, as before.

Asked for by a device test on an RTX 2080 under parallel test load
(job m3-max-18589) that got OutOfMemory(Host) from
Device::system_default_with, where the least plan's three queues would
have fit: the 2080 held 10 devices of the plan's 18 VkQueues at once,
and 68 of the least plan's 3 (job m3-max-18774).

The pure test of made_within_resources takes each of the four codes.
This commit is contained in:
Anees Iqbal committed 2026-11-11 21:51:22 -08:00
1 parent 65c06e2e4c
commit 3aa410e2ab
6 files changed
+33 -18

No files matched your search

+2 -1
View File
@@ -3542,7 +3542,8 @@ bound.
pipelines made are the same.
- `metal2vulkan-degrade-least-queue-plan` (performance). `LeastQueuePlan`: A device the driver
refused to make for want of its resources with the `VkQueue`s of its queue plan (`vkCreateDevice`
answering `VK_ERROR_INITIALIZATION_FAILED` or `VK_ERROR_OUT_OF_DEVICE_MEMORY`; on NVIDIA's driver,
answering `VK_ERROR_TOO_MANY_OBJECTS`, `VK_ERROR_INITIALIZATION_FAILED`,
`VK_ERROR_OUT_OF_DEVICE_MEMORY` or `VK_ERROR_OUT_OF_HOST_MEMORY`; on NVIDIA's driver,
other devices of the GPU holding what it needs, such as its channels), made with those of its
least plan: a round robin of one `VkQueue` and none reserved for presenting, beside the reserved,
extra, staging and fill queues. Announced once, as the device is made, naming the `VkQueue`s of