Files
reims-vgpu/docs
Anees Iqbal c103f8fe03 🐛 Answer nil for a texture past an Apple GPU's buffer allocation
What changes for the guest: a texture over a buffer whose texels end past an
Apple GPU's allocation of a buffer of 16 KiB or more (its length rounded up to
16 KiB) answers nil and posts nothing. Before, the bundle answered a texture
and posted its create, which the host refused, so the guest held a refused
object whose uses were dropped. This covers a 2D texture by
newTextureWithDescriptor:offset:bytesPerRow:, and a 2D texture, 2D array or
texture buffer by the linear SPI; the public form's texture buffer already
answered this nil. All of them now take one rule, rgfxPastAllocation:.

Why nil: the M3 Max answers nil there (a texture buffer and a 2D texture over
16384 and 20000 bytes, scratch probe tbpa, job m3-max-30902;
metal2vulkan measured the arrays). The runtime at ce54ad8b25 answers nil there
on every device (BufferTextureProblem::PastAllocation), so the host's
platform cannot make one. The AMD 5300M and the Intel 630 make every one of
them (jobs m3-max-30900, 30901): a class 2 divergence, recorded in Q11, and
the runtime's to take. Short of the allocation, and past any buffer under
16 KiB, the textures are made as before.

No test held the old answer: none made such a texture. New tests:
- the bundle's test_textures_past_a_buffers_allocation_answer_nil checks both
  forms;
- reims-vgpu-vulkan's textures_past_their_buffers_allocation_are_nil_as_the_m3s
  holds the host's answer to the same rule, so a runtime that changes it
  fails here.
2026-11-14 19:13:43 -08:00
..