Files
metal2vulkan/crates
Anees Iqbal a80176d2e1 Hold creation_refuses_what_metal_refuses' slot-limit refusal to as many commands as pass the device's limit
The refusal of 2^32 - 1 buffer slots a command named the device's
max_buffer_length for two commands. Their slots take 2 x (2^32 - 32) x 16
bytes, about 128 GiB: past the M3's and lavapipe's limits, but within the
NVIDIA RTX 5080 Laptop's 2^40 (min(maxBufferSize, maxMemoryAllocationSize)),
so the runtime laid them out and the device's memory refused them,
OutOfMemory(Device), as new_indirect_command_buffer documents. Metal makes
no defined storage at that count (its creation ends the process at 2^32 - 1
slots of 8 commands), so neither answer is a refusal Metal gives; the
runtime's contract stands and the test was wrong about the limit.

The test now asks for limit / (2^32 - 1) + 1 commands, whose slots pass
the limit on every device, and expects the gap naming it.

Verified: expected on the 5080 and the M3 (runs pending).
(cherry picked from commit 5aaa1525227b257199e2712dca56a4d495f3f86e)
2026-11-05 05:10:39 -08:00
..