Files
metal2vulkan/crates/metal2vulkan-validation/profiles/README.md
T
Anees Iqbal c5978ed3d6 Delete LinearTilingFeaturesUninitialized: MoltenVK 1.4.2 reports linear tiling consistently
One work packet, landed as 3 commits (5522085593..cc22d95bf9 on archive/development-linear-2026-10-28), in order:

* Delete LinearTilingFeaturesUninitialized: MoltenVK 1.4.2 reports linear tiling consistently

MoltenVK 1.4.1 built its format table before it set renderLinearTextures,
so a format's linear-tiling attachment and blit-destination features
differed between instances of one process (2 of 40 on the M3 Max). The
driver fact made every description leave those features out, so on
MoltenVK a texture over a buffer that renders or that blits write was a
shadow. Homebrew's MoltenVK 1.4.2, the only release we track, reads
gpuCaps.supportsRenderLinearTextures in setFormatProperties: 500 of 500
instances made one after another in one process, with the freed heap
poisoned between them, reported 0x8000dd83 for R8G8B8A8_UNORM,
B8G8R8A8_UNORM, R16G16B16A16_SFLOAT and R32_SFLOAT on the M3 Max
(driver 0x28a2). The owner's decision: delete the fact.

Deleted: the variant and its MEASURED row and docs,
DriverFact::unreliable_linear_tiling, DeviceDescription::
unreliable_linear_tiling, the stripping in DeviceDescription::query,
the capture supplement's stripping and the venue test's MoltenVK
branch, the core test of the stripped features, the regeneration
script's UNRELIABLE_LINEAR_FEATURES and its unit test, and the
FAST-PATHS bullet on MoltenVK buffer textures keeping a shadow.

Recaptured moltenvk-m3 on the M3 Max (macOS 27.0.1, Homebrew molten-vk
1.4.2, vulkan-tools 1.4.363.0) by the documented flow, each capture
under the Mac GPU lock: vulkaninfo --json and corpus-vulkan
--capture-formats, pinned in the script's SOURCES. The profile's format
diff is the linear tiling alone: COLOR_ATTACHMENT and BLIT_DST added on
56 formats, COLOR_ATTACHMENT_BLEND on 34 of them, in VkFormatProperties
and VkFormatProperties3; no linear depth/stencil attachment; the
sample counts unchanged. Also moved since the 1.4.1 capture: the driver
(10401 -> 10402, "1.4.2"), API 1.4.334 -> 1.4.357, VK_KHR_shader_quad_
control and shaderQuadControl gone (1.4.2 stops advertising them, as
driver_facts.rs records), and shaderRoundingModeRTEFloat64 and
shaderSignedZeroInfNanPreserveFloat64 now false (the device has no
shaderFloat64). The venue's declared identity follows (c3-venues.json,
the profiles README), so MoltenVK venue rows of 1.4.1 read stale until
re-recorded.

The tests that removed the quad-control feature from the 1.4.1 profile
to stand for 1.4.2 now read the capture as it is: simd_after_discard and
fragment_group_operations_run_full_quads take a profile whose driver
runs Metal's helpers (MetalFullQuads) as one that compiles without the
mode. opened_chains.txt is re-blessed for moltenvk-m3's four contexts
(one member and one extension fewer each).

RUNTIME_VERSION 1665 -> 1666: on MoltenVK a texture over an ordinary
buffer that renders or that blits write is now its own linear image,
not a shadow, which changes announcements and submissions. The runtime
sources pin moves with driver_facts.rs and query.rs. The translator reads
no linear tiling, so SEMANTICS_VERSION stays; moltenvk-m3's keys move
with its fingerprint. golden_hashes.tsv is stale for 2757 moltenvk-m3
cells (fingerprint bea6f0f2c6d5374f -> e69acb7b2f990adb), to re-bless on
development.

Verified: clippy --workspace --all-targets --all-features -D warnings,
plain and --cfg m2v_gpu; rustdoc of metal2vulkan and validation;
check_device_profiles.py (0 findings) and the script's 40 unit tests;
the core, air, runtime and devtools suites (5057 tests: fails only the
four quad tests fixed here, then passing, and golden_hashes); the
validation suite (1362, fails only opened_chains, re-blessed and
passing). On MoltenVK 1.4.2 under the GPU lock and memcap, --cfg
m2v_gpu, debug: 158 validation device tests (buffer_texture_renders,
_blits, _order, buffer_textures, linear_attachments, host_memory,
tile_shadows, kept_buffer_bytes, view_attachments, no_copy_textures,
surface_aliases, in_place_textures, degrade_notices, detach_textures and
the_formats_capture_is_the_product_queried_formats_of_the_venue_device),
157 passed; 135 more texture lanes, 133 passed; 90 runtime device
tests, all passed. The three failures fail identically at a527df636f.
Against a527df636f on the same device, linear_attachments printed
"over a Shared buffer ... aliased false" and 10 shadowed-texture notices
"the linear tiling of VK_FORMAT_B8G8R8A8_UNORM lacks COLOR_ATTACHMENT |
COLOR_ATTACHMENT_BLEND"; now "aliased true" and no notice of a missing
linear feature in any of the 383 tests.

* Re-pin the runtime sources at the landing tip

The landed packet changed a runtime-sources input, so the committed digest no

longer described the sources and `the_runtime_sources_are_the_committed_ones`

would fail. Recomputed over the same inputs and committed by land-pkt.sh.

* Re-bless the golden table after moltenvk-m3's recapture from MoltenVK 1.4.2

The profile's linear tiling now holds MoltenVK 1.4.2's attachment and blit features, and the
capture's version and extension moves (quad control gone), so its fingerprint and cells moved.
bless_engine_inventory, bless_golden_hashes and bless_engine_goldens at 69e9622aff;
public_fixtures_engine, air_input and golden_hashes: 28 passed.
2026-10-28 17:24:21 +02:00

8.8 KiB
Raw Blame History

Committed device profiles

Khronos profiles-schema (0.8) JSON, one profile per file (VP_M2V_<file stem>), each with a top-level provenance object. Generated by scripts/regen-device-profiles/; do not hand edit (the lint rejects non-canonical files). The translator parses them into a DeviceDescription; validation uses them for per-profile checks.

File Source Device / definition Driver API
vk12-floor derived from VP_LUNARG_minimum_requirements_1_2 the floor: Vulkan 1.2 required features, minimum limits, and the unconditional Required Format Support entries only; F-class – 1.2.131
lunarg-desktop-baseline-2023 Vulkan-Profiles VP_LUNARG_desktop_baseline_2023 profile, plus m2v_layer_presentation – 1.2.148
roadmap-2022 Vulkan-Profiles VP_KHR_roadmap_2022 profile, plus the Vulkan 1.2 Required Format Support entries it implies, plus m2v_layer_presentation – 1.3.204
nvidia-rtx50-linux gpuinfo report 51770 NVIDIA GeForce RTX 5080, Linux 615.71.09 1.4.351
nvidia-pascal-linux gpuinfo report 52074 NVIDIA GeForce GTX 1060 6GB, Linux 580.178.04 1.4.312
amd-rdna3-radv gpuinfo report 51898 AMD Radeon RX 7800 XT (RADV NAVI32) Mesa 26.2.3 1.4.354
amd-rdna2-apu-radv gpuinfo report 51886 AMD Radeon 680M (RADV REMBRANDT) Mesa 26.2.3 1.4.354
intel-arl-anv gpuinfo report 52029 Intel(R) Graphics (ARL), ANV Mesa 26.2.3 1.4.354
intel-irisxe-anv gpuinfo report 51836 Intel(R) Iris(R) Xe Graphics (TGL GT2), ANV Mesa 26.2.2 1.4.354
moltenvk-m3 local vulkaninfo --json, portability-subset profile, plus its --capture-formats supplement Apple M3 Max, macOS 27.0.1 MoltenVK 1.4.2 1.4.357
lavapipe gpuinfo report 51983 llvmpipe (LLVM 23.1.1, 256 bits) Mesa 26.2.3 1.4.354
swiftshader gpuinfo report 38278 SwiftShader Device (Subzero), Linux 5.0.0 1.3.0
gate-lavapipe vulkaninfo --json capture in scripts/linux-gate --icd lavapipe (arm64 image), plus its supplement llvmpipe (LLVM 21.1.8, 128 bits): the gate's own CPU device, so a run restricted to it under VK_LAYER_KHRONOS_profiles reports the device itself Mesa 26.0.8 1.4.335
gate-lavapipe-x86_64 vulkaninfo --json capture in scripts/linux-gate --icd lavapipe (amd64 image), plus its supplement llvmpipe (LLVM 21.1.8, 256 bits) Mesa 26.0.8 1.4.335
amd-780m-radv local vulkaninfo --json, plus its supplement AMD Radeon 780M Graphics (RADV PHOENIX), CachyOS Mesa 26.2.4 1.4.354
amd-780m-hawkpoint-radv local vulkaninfo --json, plus its supplement AMD Radeon 780M Graphics (RADV PHOENIX) of a Hawk Point Ryzen 7 8845HS (deviceID 0x1900), CachyOS Mesa 26.2.4 1.4.354
intel-irisxe-rplp-anv local vulkaninfo --json, plus its supplement Intel(R) Iris(R) Xe Graphics (RPL-P), ANV, CachyOS Mesa 26.2.4 1.4.354
intel-uhd770-rpls-anv local vulkaninfo --json, plus its supplement Intel(R) Graphics (RPL-S), the UHD Graphics 770 of an i9-13900, ANV, CachyOS Mesa 26.2.4 1.4.354
nvidia-rtx5080-laptop local vulkaninfo --json, plus its supplement NVIDIA GeForce RTX 5080 Laptop GPU, CachyOS 615.71.09 1.4.351

Venue profiles. The profile a venue names (crates/metal2vulkan-validation/cutover/c3-venues.json), and the capture of each further device a venue allows, is a vulkaninfo capture of that device with its corpus-vulkan --capture-formats supplement: moltenvk-m3, gate-lavapipe, gate-lavapipe-x86_64, amd-780m-radv, intel-irisxe-rplp-anv (with intel-uhd770-rpls-anv, the venue's RPL-S device), nvidia-rtx5080-laptop. The venue list refuses a file that is not such a capture, whose device identity is not the one the venue declares for it, or that derives another translation key than the venue's profile. The gpuinfo files above are census profiles of devices in the wild; no venue names them. Nor does it name amd-780m-hawkpoint-radv, the Radeon 780M of Hawk Point: the GPU of amd-780m-radv under another deviceID (0x1900), whose capture under the same RADV build differs from amd-780m-radv's only there, so it takes the 780M's measured driver facts and derives the same translation key.

Reading notes for consumers of these files:

  • A capability the source does not report is absent. Treat absence as "not supported", never as a default.
  • Blocks named m2v_vulkan12_required_formats* are not from the profile's source: they are the Vulkan 1.2 specification's Required Format Support entries that a requirements profile stating no formats implies, generated from the pinned specification text (provenance.required_formats names it and lists the conditional requirements no single profile can state).
  • In the derived profiles, a member the base profile states at a value the Vulkan 1.2 specification contradicts takes the specification's value instead, each named in provenance.spec_corrections: supportedDepthResolveModes and supportedStencilResolveModes, which the base states empty and the specification requires to include VK_RESOLVE_MODE_SAMPLE_ZERO_BIT, and maxDrawIndexedIndexValue, which the base states as 2^24 and the Required Limits table as 2^24 - 1.
  • The block m2v_unrequired_properties of the derived profiles is not from the base profile either: it states the weakest value the specification permits for each property the product reads, and VK_LAYER_KHRONOS_profiles sets, that the base leaves without a requirement. That is the value a reader takes for the absent member; stated, the layer (which keeps the device's own value for a member a profile omits) reports it too.
  • The block m2v_layer_presentation of lunarg-desktop-baseline-2023 and roadmap-2022 is not from the profile's source either: it states each feature the profile's core version requires that the profile omits, and each member the product reads of the core property structures of its version and of the property structures of the extensions it lists that it omits, at the value the product's reader takes for the absent member (provenance.layer_presentation lists them). The product's reading does not change; the profiles layer, which reports the device's own value for an omitted member and an omitted feature as absent, then reports the profile as the product reads it. Validation refuses to restrict a device to a requirements document (khronos) without it.
  • A file states what its source reports, not what the driver honors. moltenvk-m3 states robustBufferAccess as MoltenVK reports it, but MoltenVK adds no bounds check for it: on the captured device out-of-bounds storage and uniform buffer accesses, buffer atomics, and vertex fetches read and wrote the next buffer's memory, while texel buffers were contained. Validation records it as a driver limitation (HostClass::robust_buffers_uncontained).
  • A file states no deviation from the specifications: where a driver's answer to what they leave open is Metal's (MoltenVK's lockstep, float functions, canonical NaN, sampler and cube-gradient route on Apple's GPUs), the product takes it from the release-keyed table of what each driver release is measured with (crates/metal2vulkan/src/device/driver_facts.rs), keyed on the file's driverID, vendorID and driverVersion. The product refuses a file that holds the former top-level m2v_deviations object.
  • The top-level object m2v_color_attachment_sample_counts of a venue profile, keyed by profile name, states each color attachment format's own sample counts (VkSampleCountFlagBits names): the sampleCounts of a 2D, optimal-tiling image of the format with COLOR_ATTACHMENT usage, which no profiles-schema structure holds (VkImageFormatProperties). The venue capture's corpus-vulkan --capture-formats supplement measures them. A file without it states no format's own counts, only the device-wide framebuffer*SampleCounts.
  • provenance.unmapped lists report fields the converter could not represent (pointer members, flag bits outside the registry, extensions outside the registry; for a vulkaninfo capture, a driver's unpublished extension and a pointer member vulkaninfo wrote as NULL). They are dropped, not guessed.
  • No file carries host identity: the device-property members that identify the reporting host or driver build (every UUID and LUID, the PCI address, the DRM node numbers) are withheld, and provenance.withheld names the ones the source reported. Their absence says nothing about what the device supports.
  • gpuinfo-derived files carry both the core VkPhysicalDeviceVulkan1x* structs and the extension structs the report lists, as reported; they are not reconciled.
  • Integers keep the report's full width (maxTimelineSemaphoreValueDifference can be 2^64 - 1), so parsers need u64.