Files
metal2vulkan/crates
Anees Iqbal 2a7579adc4 Test: icon_mips, an icon's levels after a storage form, a later-commit form or a recycled image
A window server samples a 128x128 icon at levels 1 and 2 when it draws
a small dock. If a storage form switch, a swapped-out image or a
recycled image carried only level 0, those levels would read zero or
another texture's texels.

The test writes a 128x128 RGBA16Float texture of every level, with its
left half one color and its right half another at each level. It writes
them four ways: rendered per level sampling the texture itself (in
place, or through the copy), generate_mipmaps after a render of level 0,
and replace_region per level of a Shared texture. Then one of four
events: none; a fetching pass over level 0 committed alone, so the M3
gives the texture its storage form at that commit; the same with the
switch riding a later commit; or, before the icons, textures of the
same making with the colors swapped, completed and dropped, so the icons
take their parked images. Levels 0 to 2 are then sampled through a draw
into a target of each level's size and read back by blits. Counts print
the storage forms taken, the images recycled, the swapped-out images
forgotten and the read forms.

Verified: run on the M3 and lavapipe in the jobs named in the report.
2026-11-11 23:20:46 -08:00
..