A new family, surface_textures: BGRA8Unorm over a 'BGRA' surface, RGBA16Float over 'RGhA', and
R8Unorm and RG8Unorm over a '420v' surface's two planes, R16Unorm and RG16Unorm over an 'x420'
surface's. Each case makes the texture with newTextureWithDescriptor:iosurface:plane:, writes
every texel with replaceRegion:, and reads them back with getBytes: and with a blit into a Shared
buffer. The suite's existing surface cases are all Apple-private forms (framebuffer-only rotated
targets, and Metal's two-plane YCbCr formats); these are the form a consumer's surfaces take,
textures of ordinary formats over one plane. The x420 planes take the 16-bit formats, whose texel
is the plane's element.
The sides: Side::surface_texture. Metal's side lays the surface as the case states and reads it
back before a texture lies over it (metal_surface's single-plane surface may now state its
OSType). The old runtime's side takes a buffer standing for the surface, as the runtime takes an
IOSurface. The new runtime's side makes an exported surface of the planes
(Device::new_exported_surface), in the first of a dma-buf, an opaque fd and an NT handle the
device exports, at VA-API's 256-byte multiples; the case's texture is its plane's. The rt replay
prints each case's surfaces_in_place and surfaces_copied, the evidence of the form a venue took.
The rt side's other surface answers name what it lacks: a rotated target's setRotation: (or
setFramebufferOnly: at rotation 0), and a two-plane YCbCr texture over a surface's plane.
Verified: built and tested in the jobs the landing message names; the cases are recorded on the
M3 in a later commit.