Move the runtime from a759d0e88f to 0db5825a60, metal2vulkan's development
re-cut into one commit per work packet (tree 22aab1ece6, the same as its linear
history's d0f1b87e2e, which is the public repository's development; 0db5825a60
is not on it yet). Runtime version 1648 to 1681, semantics 1907, artifact format
475; its runtime sources pinned as 4314cee1. Every cached artifact and plan is
made again.
What changes for the guest:
- Answers come from one macOS release, 27.0.1, on every host. MoltenVK on a
macOS host of another release answers as 27.0.1 too. MetalLevel, the
metal_level of DeviceOptions and DeviceProperties, and the degradations
metal-level-below-host, metal-level-not-macos and mipmaps-as-apple-m4 are
gone, and so is our side of the levels: the OS's METAL_LEVEL, the
level-dependent answers of format_info, the deaths on a host whose release the
runtime did not measure, and Inexact::MetalLevel (the same adaptation as
development-performance's e47f89760).
- The device's own arithmetic and value answers are the contract, with a
precision note where they can differ from Metal's (the owner's
native-arithmetic rule): BC and sRGB texels, half precision, fast-math
grouping, maths functions, sampler details and pixel samplers, two-plane
YCbCr (the device's Y'CbCr sampler), clears and fills, multisample resolves,
mipmaps (the device's blit chain) and vertex conversions. The runtime's exact
emulations of these are deleted, so REIMS_VGPU_EXACT loses sampling,
ycbcr_filter, float_maths, texel_conversion, vertex_normalized, half_rounding,
nan_and_min_max, rounding_order, half_blend, half_texel_bits,
multisample_depth_twin, decoded_texels, tile_store and resolve: such a name
now writes the stderr line and changes nothing. It keeps batch_order and
host_page_textures and gains half_chains (each half operation of a fast-math
chain rounded on a device without shaderFloat16). docs/api.md and the
accuracy ledger say so; the ledger lists the deleted forms' bounds as the
device's own answers.
- Degradations: 17 kinds retired, which leave DIES, NATIVE_RELAYED and the
relayed lists. DevicePackConversion, DeviceVertexConversion and
DeviceAlphaCoverage, notes of the device's own maths, vertex input and
coverage, join DIES and NATIVE_RELAYED, as the other device-maths notes are
placed. DeviceFilteredMipmaps, announced on every device, MoltenVK included,
is relayed, never a death. None of them is in DIES_BY_DEFAULT, so by default
nothing new ends the process.
- The read-only store mask is gone: on macOS a read-only view drops the store,
as Metal does; off macOS, GPU writes into read-only memory land (the
runtime's known gap). set-past-layout-support is announced at every bind past
the driver's support.
Tests: the YCbCr comparisons and the resolve test run on the platform's own
device, as the exact-form devices are gone (device_with_policy and
device_with_ycbcr_filter with them); the mipmap tests no longer check the
retired tie kind.
Checked:
- on the M3 Max: rustfmt and the three clippy passes cargo xtask check makes
(all features, the tested features without the defaults, and
x86_64-unknown-linux-gnu), clean;
- the Vulkan crate on gem10's RX 7900 XTX and Radeon 780M, 432 of 432 each;
- reims-vgpu's and the C API's video and scaler tests on the XTX, the 780M and
msi's RTX 5080 Laptop GPU, 50 of 50 each.
Failing, not fixed, at the owner's word (strict mode is not a concern):
- the Vulkan crate on the RTX 5080, 429 of 432: three encode_render tests read a
channel one code off the byte they assert (0x7f where 0x80), the device's own
colour conversion;
- reims-vgpu-vulkan's and reims-vgpu's 898 tests on MoltenVK, 796 passing: 102
fail, 57 of them the YCbCr comparisons with Metal, most dying in strict mode
at the device notes MoltenVK now announces where the exact forms answered
before (device-nan-encoding, native-half-conversion), the rest comparing
Metal's exact bits.
Not run: the rest of cargo xtask check (core, the Metal, window and video
crates, the header) and the suite, which the runtime does not reach; no boot.