RenderCommandEncoder::set_line_width refused every width but 1 (AppleOnly::LineWidth). Measured on the Apple M3 Max under macOS 27.0.1 (probes/line_widths.m): each encoder starts at 1 and the width holds across draws and pipeline states; Metal draws w' = floor(16 w) / 16 clamped to [0, 16] (NaN and negatives as 0, infinity as 16); at w' = 1 its ordinary diamond-exit lines; at every other w' Vulkan's non-strict parallelogram (major axis the larger extent, x on a tie; minor-axis edges through the endpoints, w' long and centred; ends not extended; centres inside, top-left ties; the width not rounded); at 0 exactly the pixel centres on the segment; one parallelogram per strip segment with no joins; triangles in fill mode Lines draw their edges so; at 4 samples every width is the parallelogram at the sample positions. The runtime (render/line_width.rs) keeps the quantized width in the encoder state and routes each draw at w' != 1: - the device's own lines (lineWidth w', no Bresenham mode) where it enables wideLines and w' lies in lineWidthRange above 0: exact where strictLines is unset, nonStrictWideLinesUseParallelogram set, w' > 1 and on lineWidthGranularity; elsewhere announced device-wide-lines under the default DevicePolicy::wide_lines = WideLinePolicy::Device, and the band under WideLinePolicy::Exact (exact_answers() selects it); - the pipeline's band variant otherwise (no wideLines, MoltenVK among them; w' outside the range; w' = 0 at half a width of 2^-subPixelPrecisionBits): cull none, the band's front face, fill mode, a PATCH_LIST of two points, viewport 0's half extent pushed with the half width; strips and loops listed as their segments (ListGap::WideLines), flat inputs under the last provoking vertex read from the list led by the last vertex, which covers the same pixels. Refused: Unsupported(WideLines) needing tessellationShader where neither route draws a line; NotImplemented(RuntimeGap::WideLines) for a triangle's edges or a mesh draw's lines the device's lines do not draw, an amplified band, a rate-mapped pass and an execution's commands. Counted: WorkCounts::device_wide_line_draws, line_band_draws. The lane test runtime_lane::line_widths draws the probe's cases through owned fixtures and compares every pixel with Metal's answers (line_widths_m3_max.txt, the probe's output), checks each wide draw took a route, and that every fragment is front-facing; its site WIDE_LINES holds the new kind in the lane's degrade-notice closure. Docs: FAST-PATHS.md's row for wide_lines and a known-gap bullet (edges and mesh lines on devices without wideLines, near-plane cuts, band fragments' inputs uncompared, width 1 on multisampled targets off MoltenVK); API.md's policy bullet and degrade catalogue; the runtime README's Line widths; RUNTIME-PORTING's row; REFUSALS.md regenerated (reach rows for feature and gap WideLines, apple LineWidth gone). Validation: the line limits the device description gained describe execution and are not compared in a profile's subset check; the generator's CORE_PROPERTIES and roadmap-2022's m2v_layer_presentation state them at the reader's absent values; opened_chains reblessed (one member more, wide_lines, on every device with it); golden_hashes' profile fingerprints reblessed (no output cell moved); api_signatures and api_surface name WideLinePolicy and LineBandState. RUNTIME_VERSION 1712; the runtime-sources pin rewritten. Verified on the M3 Max under MoltenVK 1.4.2 through maclock with the validation layer: runtime_lane::line_widths, 4 tests pass. Default and exact policies each: 102 cases, 100 matched pixel for pixel, 2 refused (the two fill-mode Lines cases at width 4, NotImplemented(WideLines)), 0 announced; 46 draws took the band, 0 the device's lines (MoltenVK has no wideLines). a_band_needs_tessellation (tessellationShader withheld: width 0 refused needing it, width 2 refused, width 1 matches) and the_lane_s_maps_tell_the_widths_apart pass. Negative control: the band widened by 1/16 of a pixel fails both runs at LANE lines 0.5. Also cargo clippy --workspace --all-targets --all-features -D warnings, plain and with --cfg m2v_gpu; nextest of metal2vulkan, -air, -runtime and -devtools (4954 run, the one failure the missing lane site, now declared), of metal2vulkan-validation (the failures the profile rules, chains and pin fixed here, rerun green) and of metal2vulkan-conformance (1007 pass). Not run: lavapipe, RADV, ANV and NVIDIA lanes, which take the device route. (Carried to development from steelbrain/reims-graphics-kext b16d03150c.)
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_formatsnames 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:supportedDepthResolveModesandsupportedStencilResolveModes, which the base states empty and the specification requires to includeVK_RESOLVE_MODE_SAMPLE_ZERO_BIT, andmaxDrawIndexedIndexValue, which the base states as2^24and the Required Limits table as2^24 - 1. - The block
m2v_unrequired_propertiesof the derived profiles is not from the base profile either: it states the weakest value the specification permits for each property the product reads, andVK_LAYER_KHRONOS_profilessets, 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_presentationoflunarg-desktop-baseline-2023androadmap-2022is 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_presentationlists 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-m3statesrobustBufferAccessas 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'sdriverID,vendorIDanddriverVersion. The product refuses a file that holds the former top-levelm2v_deviationsobject. - The top-level object
m2v_color_attachment_sample_countsof a venue profile, keyed by profile name, states each color attachment format's own sample counts (VkSampleCountFlagBitsnames): thesampleCountsof a 2D, optimal-tiling image of the format withCOLOR_ATTACHMENTusage, which no profiles-schema structure holds (VkImageFormatProperties). The venue capture'scorpus-vulkan --capture-formatssupplement measures them. A file without it states no format's own counts, only the device-wideframebuffer*SampleCounts. provenance.unmappedlists report fields the converter could not represent (pointer members, flag bits outside the registry, extensions outside the registry; for avulkaninfocapture, a driver's unpublished extension and a pointer member vulkaninfo wrote asNULL). 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.withheldnames 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 (
maxTimelineSemaphoreValueDifferencecan be2^64 - 1), so parsers needu64.