A failed submission's and a failed recording's warning end in their id name

reims's sink writes a runtime message's text alone, without its id, so a metal2vulkan-submit-failed
or metal2vulkan-recording-failed line could not be found by id in qemu.log. submit_failure::warn
now appends " [<id name>]" to the text, as degrade notices end in theirs, for both warnings.
The device test asserts the submit-failed line ends in " [metal2vulkan-submit-failed]".
docs/API.md says so. Log text only: no version bump.

Verified: expected, by the check job dispatched at this commit (clippy plain and m2v_cpu_icd on the
runtime, the submit_failure unit tests, the lavapipe device test).
This commit is contained in:
Anees Iqbal committed 2026-11-13 11:19:29 -08:00
1 parent 8a81350e13
commit 523d32a10a
3 files changed
+7 -3

No files matched your search

+3 -2
View File
@@ -2055,8 +2055,9 @@ detached now. It names at most 8 infos, 8 waits and 8 signals of each, 32 `VkCom
command buffers and 32 resources, and counts the rest; state another thread holds at that moment
reads as busy, and a submission that succeeds does none of it. A command buffer whose recording
fails with a Vulkan result or the runtime's own error (`CommandBufferError::Internal` for both) logs
that error (id name `metal2vulkan-recording-failed`, `Warning` severity). That text is for people,
not a contract.
that error (id name `metal2vulkan-recording-failed`, `Warning` severity). Each of the two lines ends
in its id name in brackets, as a degrade notice does, so a consumer that writes the text alone still
leaves it findable by id. That text is for people, not a contract.
Each entry below gives the code, its category, the `Degradation` kind (or the `PrecisionNote`) and
what triggers it; a runtime kind's cost follows. The kind's rustdoc states the trigger, cost and