Files
metal2vulkan/crates/metal2vulkan-validation/profiles
Anees Iqbal 02e3c4825e State strictLines false in the Vulkan 1.2 floor profile's unrequired properties
VP_LUNARG_minimum_requirements_1_2 states no strictLines, and vk.xml gives
it limittype max, so VK_LAYER_KHRONOS_profiles kept the device's own value
for a run restricted to vk12-floor, while the product's reader takes false
for the absent member. On the NVIDIA RTX 5080 Laptop (strictLines true) the
restriction check refused both vk12-floor runtime lanes (absent_reads and
barycentric_weights: "limits.strict_lines: expected false, queried true").
The M3 (MoltenVK, false) never saw it.

strictLines is the property the generator's m2v_unrequired_properties block
exists for: one the product reads and the layer sets, that the base leaves
open, at the weakest value the specification permits. The block now states
it, and the generator's check that the base does not state a block member
reads VkPhysicalDeviceProperties' nested limits (before, any base limit
would have read as a restatement of limits itself). The product's reading
of vk12-floor is unchanged (false either way).

Verified: python3 -m unittest test_device_profiles (34 tests OK; with the
flattening reverted, the new test_a_limit_is_told_apart_from_the_limits_a_base_states
errors), check_device_profiles.py 19 profiles 0 findings. The 5080 lanes:
expected (run pending).

(cherry picked from commit 47d84ac2719daedeef2cf74751334d826d6fb905)
2026-11-05 05:10:39 -08:00
..

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.