Files
reims-vgpu/docs
Anees Iqbal 916494dc3e 🐛 Fail only the command buffer whose completion was refused
A command buffer whose completion the platform refused on its own thread
(a death in its read that no Metal answer matches) failed its whole context.
The host then refused the context's later command buffers, creates, queue
creates, library lookups and heap-size and argument-layout queries until the
context closed. When this hit WindowServer's context, every later frame
failed and the display froze.

What the guest sees now: only that buffer fails, with an internal error
(MTLCommandBufferErrorInternal). The context's later command buffers
complete, and its creates, queue creates and queries are answered as any
context's. This matches a Mac, where a GPU error fails the command buffers it
strikes, WindowServer's among them, and their processes' later buffers run
(docs/lessons.md, measured on macOS 27.0.1).

No context is marked failed any more. The decoder keeps only the closed
contexts and the reset count (ClosedContexts). reims-graphics'
Host::context_refused hook has no caller left, so it goes, along with its
test.

Test: at the base, a_completion_the_platform_refuses_fails_its_context
asserted the refusals. Its replacement,
a_completion_the_platform_refuses_fails_that_command_buffer_alone, asserts
that the context's later buffer, sampler create and queue create are carried
out.
2026-11-05 21:59:31 -08:00
..