What changes for the guest: newTextureWithDescriptor:offset:bytesPerRow: of
a texture buffer whose texels run past the buffer's length answers a texture
and posts TEXTURE_FROM_BUFFER, where the bundle answered nil and posted
nothing. Both x86 Macs make it (4 RGBA32Float texels at offset 4064 of a
4096-byte buffer, dgpu-oracle.md Q11), and so does the M3 Max
(metal2vulkan's probes/texture_buffer_past_length.m). The host's platform has
made it since metal2vulkan RUNTIME 1808 (pin 37), keeping the texels past the
length in a tail of the texture's own, so the refusal the nil stood in for is
gone. The 11-07 opengl lane hit that refusal.
It stays nil, posting nothing, where the texels end past an Apple GPU's
allocation of a buffer of 16 KiB or more (its length rounded up to 16 KiB).
The M3 answers nil there, and the runtime at ce54ad8b25 answers nil there on
every device, so the device cannot make it. The x86 Macs do make it there
(scratch probe tbpa, jobs m3-max-30900 to 30902): a class 2 divergence,
recorded in Q11.
The tests that held the old answer change with it.
test_buffer_texture_buffers now expects the texture made, with its create,
over 4096 bytes from 4064 and 12288 and over 20000 bytes from 19968, and nil
past the allocation. The new reims-vgpu-vulkan test
a_texture_buffer_past_its_buffers_length_is_made_as_metals makes the measured
shape over host memory and checks four things:
- a kernel's read and a blit read the buffer's bytes inside the length, and
zero past it;
- a CPU write of the buffer reaches the next read;
- a blit's write lands in the buffer inside the length and in the tail past
it, and changes no byte outside the buffer;
- one past a 16 KiB buffer's allocation is nil.