Files
reims-vgpu/crates
Anees Iqbal 4585dc4e33 ✅ Retarget the surface-plane tests to the buffer creator
The tests of what a texture over a surface's plane does (its formats,
planes, usages, sampling, resolves, rotations, YCbCr reads and identifiers)
made their surfaces as host-OS IOSurfaces, which no production caller has
made since 110b53637. The live creator, new_texture_over_surface_plane, runs
the same machinery over a buffer and the plane's shape, so the tests now make
a stand-in: a buffer of the surface's bytes with its facts and planes
(resource.rs's StandIn), and keep their recorded Metal answers. The
device_lend tests make their out-of-order view of pages as the device's
views are made, with remap_runs_shared_overwrite.

The tests of the OS surfaces themselves go: buffers on surfaces, a
command buffer's retains and use counts of a surface, a texture's range
held until its command buffer completed, a released texture keeping its
surface's memory while imported, the pages a texture over a surface maps,
two buffers made over one surface at once, the creator's debug line
over a surface, an offset surface's base address, and the death of a write
the runtime refuses into a texture of 523 or 527, which only a texture over
an OS surface reached. The OS surfaces' own modules and their tests go
with them in the next commit.

Nothing the guest or host observes changes: only tests change.
2026-11-14 09:27:31 -08:00
..