Commit Graph
12 Commits
Author SHA1 Message Date
Anees Iqbal 2a44c53833 Recapture the Hawk Point 780M's profile at Mesa 26.2.6
amd-780m-hawkpoint-radv (no venue names it) documents itself as the 780M of
Phoenix under another deviceID, captured under the same RADV build; with
amd-780m-radv now captured at 26.2.6 that held only after recapturing it too.
Captured on the cluster's Hawk Point 780M (1002:1900, radeon ICD,
MESA_VK_DEVICE_SELECT=1002:1900!): vulkaninfo reports "AMD Radeon 780M
Graphics (RADV PHOENIX)", driverInfo "Mesa 26.2.6-arch3.1", deviceID 0x1900;
packages mesa and vulkan-radeon 26.2.6, vulkan-icd-loader and vulkan-tools
1.4.363.0.

Regenerated with regen_device_profiles.py --offline from that capture and its
corpus-vulkan --capture-formats supplement (sources pinned in SOURCES). The
document changes only in its identity, provenance and the two fragment
shading rate limits the 780M's own recapture moved
(maxFragmentShadingRateCoverageSamples 32 -> 16, ...RasterizationSamples 8 ->
4), which no translation reads. Against the 26.2.6 capture of the Phoenix
780M, the Hawk Point capture differs in deviceID, the DRM minors, the PCI bus
and deviceUUID only; its formats supplement in device_id only.
2026-11-11 05:50:37 -08:00
Anees Iqbal 4db0484a9d Recapture the Iris Xe venue's profile at Mesa 26.2.6 and declare its identity
The cluster's Iris Xe (RPL-P, 8086:a7a0, homelab ms01) runs Mesa 26.2.6-arch3.1 now, so every
intel-irisxe-rplp-anv run was refused as a venue mismatch against the 26.2.4 profile and
identity.

intel-irisxe-rplp-anv.json is regenerated from a vulkaninfo --json capture and its
corpus-vulkan --capture-formats supplement taken on the venue's device (intel ICD; vulkaninfo
printed deviceName "Intel(R) Iris(R) Xe Graphics (RPL-P)", driverInfo "Mesa 26.2.6-arch3.1",
apiVersion 1.4.354; mesa and vulkan-intel 26.2.6, vulkan-icd-loader and vulkan-tools
1.4.363.0), and c3-venues.json declares the RPL-P's identity at driverVersion 109060102 and that
driverInfo. Against the 26.2.4 capture only the driver version and info and
maxMemoryAllocationSize (24955668480 -> 24950464512, sized from the host's memory, no profile
field) differ; the formats supplement is unchanged in content.

The venue's second device, the UHD Graphics 770 of RPL-S (intel-uhd770-rpls-anv), stays as
captured under ANV 26.2.4: no cluster host has that GPU, so it cannot be recaptured here. Its
capture still derives the venue's translation key (the only difference from the RPL-P's
description is still maxMemoryAllocationSize). The regen script's comment and the two-device
test's doc say which build each capture is of. c3::tests' driver-drift case declares a driver
the profile does not state (now 26.2.7 against the profile's 26.2.6).

Verified: check_device_profiles.py (19 profiles, 0 findings).
2026-11-11 05:50:37 -08:00
Anees Iqbal 6caa5a3924 Recapture the 780M venue's profile at Mesa 26.2.6 and declare its identity
The cluster's Radeon 780M (PHOENIX, 1002:15bf) nodes run Mesa 26.2.6-arch3.1 now, so
every amd-780m-radv run was refused as a venue mismatch against the 26.2.4 profile and
identity, and no row of the venue could be recorded.

amd-780m-radv.json is regenerated from a vulkaninfo --json capture and its
corpus-vulkan --capture-formats supplement taken on the venue's device (homelab
um790's 780M, radeon ICD, MESA_VK_DEVICE_SELECT=1002:15bf!; vulkaninfo printed
deviceName "AMD Radeon 780M Graphics (RADV PHOENIX)", driverInfo
"Mesa 26.2.6-arch3.1", apiVersion 1.4.354), and c3-venues.json declares the venue's
identity at driverVersion 109060102 and that driverInfo. Against the 26.2.4 capture
the profile differs in the driver version and info and in two fragment shading rate
limits (maxFragmentShadingRateCoverageSamples 32 -> 16,
maxFragmentShadingRateRasterizationSamples 8 -> 4 samples), which no translation
reads; the formats supplement is unchanged in content (240 queried, 169 stated).

The venue's rows of 26.2.4 now read stale_device; they are re-recorded on the device
in the commits that follow.

Verified: check_device_profiles.py (19 profiles, 0 findings), the regen script's 41
unit tests.
2026-11-11 05:50:37 -08:00
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
Anees Iqbal bbc7866fa0 Read nonStrictWideLinesUseParallelogram from the maintenance5 properties
The profile reader took VkPhysicalDeviceMaintenance5Properties' members
only through VkPhysicalDeviceVulkan14Properties, so a capture of a
Vulkan 1.3 device exposing VK_KHR_maintenance5, which carries only the
extension's structure, read nonStrictWideLinesUseParallelogram as false,
and the runtime would announce or band wide lines its device draws as
Metal's parallelogram. PROPERTY_STRUCTS now lists
VkPhysicalDeviceMaintenance5Properties and its KHR name; the member is
still read only where maintenance5 is exposed (the extension or 1.4).
The profile generator's EXTENSION_PROPERTIES states the member at the
value the reader takes when a requirements document lists the extension
and omits it (false).

Nothing moves: every committed capture that carries the extension
structure also carries the Vulkan 1.4 one, with the same value
(golden_hashes passes unblessed). The runtime-sources pin, which hashes
this file, is rewritten in the next commit.

Verified: nextest device::tests::description (23 pass), among them the
new wide_line_parallelograms_read_the_maintenance5_structure (a 1.3
document with the extension and either structure name reads true,
without the extension false, a 1.4 document's Vulkan 1.4 block true);
negative control: with the two names left out of PROPERTY_STRUCTS the
test fails; golden_hashes and fast_paths pass; scripts/regen-device-
profiles test_device_profiles.py and check_device_profiles.py clean.

(Carried to development from steelbrain/reims-graphics-kext 5651992284.)
2026-11-01 21:26:21 -08:00
Anees Iqbal eb41a55e82 Draw every width Apple's setLineWidth: takes, as Metal draws it
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.)
2026-11-01 21:26:20 -08:00
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
Anees Iqbal 00f7c18aab Drop the Apple M4's device profile
The owner asked for the M4 profile to go: no venue runs an M4 (the M4
venue was dropped on 2026-10-11), and its capture differed from the M3
Max's only in the identity and the allocation sizes, so every test that
named it repeated the M3 Max's case.

- crates/metal2vulkan-validation/profiles/moltenvk-m4.json is gone, with
  its regen-device-profiles source, its README row and paragraph, and its
  four opened_chains.txt rows.
- MOLTENVK_CAPTURES holds the M3 Max alone. Tests that looped over both
  captures take the M3 Max's; loops over that one capture are unrolled
  (clippy's single-element rule). Tests that took the M4 as a device of
  the pixel interlock, of fragment stores, or of the family audit take
  the M3 Max's capture, which has the same features.
- validation: a_run_on_the_m4_at_the_m3_max_venue_stops_on_its_name_alone
  is gone; the C3 venue test builds its second GPU's device from the M3
  Max's capture under another name.
- Docs and a probe comment no longer name the capture.

Left red here, fixed in the next commit (which removes the per-release
driver table these tests pin): driver_facts tests that measure the M4's
identity (an_unmeasured_identity_takes_its_drivers_defects_alone,
moltenvk_1_4_2_is_measured_on_the_m3_max_alone,
moltenvks_linear_attachment_features_are_left_out,
the_profile_takes_the_deviations_its_driver_release_is_measured_with) and
two arith tests whose measured device was the M4
(half_arithmetic_on_the_device_follows_the_profile,
the_fused_multiply_add_route_follows_the_profile). The golden tables'
M4 columns are re-blessed after the change.

Verified: cargo clippy --workspace --all-targets --all-features
-D warnings is clean; the core suites ran (failures above, the run
continuing against this tree).

Originally bfdfe81d37 (archive/development-linear-2026-10-28).
2026-10-28 17:24:20 +02:00
Anees Iqbal e841dd6b4a Read the Radeon 780M of Hawk Point as the measured Phoenix 780M, with its own device profile
The Radeon 780M of Hawk Point (PCI device 0x1900) takes the driver facts measured on the Phoenix
780M (0x15bf), the same GPU, and gets its own committed device profile.

Folds in:
- Read the Radeon 780M of Hawk Point (0x1900) as the measured Phoenix 780M (0x15bf)

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal 0175289314 Batch the development-fast round: tessellation without tessellationShader, primitive ids, mesh tooling, color groups, the vk12 floor, runtime timing and teardown fixes
One commit of the 247 on development-fast (720ef1ce9a..9f46fdf80d), squashed at the user's request.

Translator:
- Tessellation on a device without tessellationShader: Metal's tessellator emitted as SPIR-V, a
  one-workgroup scan placing each patch's triangles in Metal's order, and the post-tessellation
  function as a plain vertex stage (EmulatedTessellationDraws; SEMANTICS 1739, ARTIFACT_FORMAT 419).
- [[primitive_id]] on a device without geometry or tessellation shaders, as a flat varying the
  vertex function writes; indexed lists, lines and points drawn de-indexed (RuntimeGap::PrimitiveIdIndices).
- Fragment functions of more colors than the device draws at once, compiled in color groups
  (PrecisionNote::ColorAttachmentGroups).
- Object functions' threadgroup memory from the render encoder; a kernel's mesh draws from an
  indirect command buffer; mesh payload sizing.
- The Vulkan 1.2 floor profile (vk12-floor) and the gates it needs; Metal 27.0.1 answers as the M3 Max.
- Overflow tests in the runtime-built modules by the product's high word (NVIDIA's compiler fails
  the division form), guarded crate-wide by tests::owned_divisions.

Runtime:
- Color-group passes replayed per group over twin depth/stencil; snapshot and copy-back cost cuts.
- Command buffers finish on the queue waiter that saw them; the waiter holds no device handle, so
  a program's drop after its wait is the device's last.
- Every object an encoder was handed held until its command buffer completes; deallocator order
  and announcements.
- Driver defects recorded and announced: ANV counts a visibility sample once per color output
  (visibility-count-per-color); MoltenVK fails pending work when memory that held a device-address
  buffer is freed, so freed memory waits for the work in flight (host-deallocator-delayed).
- RenderCommandEncoder::set_object_threadgroup_memory_length; Visibility::counting().

Validation: mesh tooling (object, mesh and ICB-mesh cases on both executors), the authoring
census closed, the queue storm judged in Metal's unit, load-robust exits and indirect-census
bounds, and the golden hashes, printouts, fixture inventory and authored compile census blessed.

Docs: FAST-PATHS.md trimmed to a ledger of what is true now; API.md's catalogue and accepted
differences, REFUSALS.md and METAL-COVERAGE.md current.

Verified on development-fast before the squash: the full suites on the RTX 5080, RTX 3090,
RX 7900 XTX, Radeon 780M, Iris Xe, lavapipe and the M3 (MoltenVK and the Metal oracle), lint in
every configuration, rustdoc, doc tests, packaging and public case qualification; the timing and
teardown lanes x5 on every venue; the authoring-capability census 16656/16656 with 0 unresolved,
the vk12-floor translation census at 6139 translated with the slowest row 794 ms and peak 126 MiB.
The tree is development-fast's at 9f46fdf80d.
2026-10-16 11:12:03 +03:00
Anees Iqbal c05c380139 Match the M3 Max under macOS 27.0.1: measurements, profile, Metal rows and MoltenVK venue
The macOS 27 work packet: the M3 Max moved to macOS 27.0.1, where MoltenVK gives it the M4's
deviceID. Its measurements, its MoltenVK profile, its Metal rows (now the C3 reference) and its
MoltenVK venue rows are taken again, and the tests follow.

Read Metal's NotMipmapped anisotropic footprint through MoltenVK at level 0:
On macOS 27 Metal's anisotropic filter reads a sampler without a mip filter
differently once its level clamp reaches 1/64: the runtime's NotMipmapped form
(nearest mip, lod [0, 0.25]) handed MoltenVK an anisotropic footprint that
was not Metal's NotMipmapped one, and the anisotropic lane failed on the M3
Max under macOS 27.0.1. Through Metal's own sampler (VkProperty::MetalSampler)
with anisotropy and equal min and mag filters the sampler now clamps to
[0, 0]: with equal filters the level has no filter left to choose, and Metal
answers that sampler as NotMipmapped bit for bit. With filters that differ no
clamp reads Metal's answer at maxAnisotropy 2 to 16; that stays a known gap in
docs/FAST-PATHS.md.

RUNTIME_VERSION moves (renumbered once for the composed batch): a run of an unchanged
artifact samples differently.

Verified: metal::sampler unit tests (24, including the new
metals_own_anisotropic_sampler_reads_not_mipmapped_at_level_zero) at a release
build; runtime_lane::anisotropic_filter::anisotropic_samples_answer_within_
their_bounds_of_metals passes on the M3 Max, macOS 27.0.1, MoltenVK 1.4.1
(it failed at the round's first composed tree and at 61a2efc7d3).

Take the M3 Max's macOS 27 measurements on MoltenVK's shared Apple identity:
MoltenVK's deviceID on an Apple GPU is the macOS release and the GPU's
highest families (MVKPhysicalDevice::getHighestGPUCapability), so under
macOS 27.0.1 the M3 Max reports 0x1B000209, the M4's identity, and takes the
M4's driver facts. The owner's rule: an answer fact holds on the shared
identity only where measured on both GPUs; a cost fact follows the M3 Max.

- MetalNormStorageWrites and DepthTestKeepsDenormals, measured on the M4:
  re-measured on the M3 Max under macOS 27.0.1 with the fact taken, every
  channel and texel Metal's; kept, the evidence in their docs.
- GraphicsCubeGradientRoute stays measured on the macOS 26.7 identity alone;
  the shared identity's graphics route stays unmeasured.
- The interlocked pass: on the M3 Max under macOS 27.0.1 split ran about a
  quarter faster than whole (wall 721-769 us against 974-1045, GPU 671-719
  against 914-964, two runs of three rounds of 30 frames at 1920x1080
  RGBA16Float), so the shared identity's row moves from
  InterlockedPassWholeFaster to InterlockedPassSplitNoSlower. The M4's own
  measurement (whole faster) is in the row's doc and in docs/FAST-PATHS.md's
  known gaps. RUNTIME_VERSION 1190 on this branch covers it.
- APPLE_M3_MAX and APPLE_M4 say what the deviceID is.

Verified: the facts and timings on the M3 Max (macOS 27.0.1, MoltenVK 1.4.1)
through runtime-lane tests at the round's first composed tree with these facts; the
device::tests::driver_facts unit tests run at the rebased tip before landing.

Hold the degrade-notice lane to the resolves the device actually makes:
passes_degrade_once_per_kind expected the exact resolve and the device's
rounded one to be announced wherever the driver's RGBA8Unorm average at 4
samples is measured as Metal's, assuming a texture of 8 samples exists. The
M3 Max (macOS 27.0.1, MoltenVK 1.4.1) makes none at 8 samples, so neither
is announced there, and the lane failed. The filter now expects those two
where the average is not measured as Metal's or where the device makes an
8-sample texture.

Verified: runtime_lane::degrade_notices::passes_degrade_once_per_kind passes
on the M3 Max (it failed at 61a2efc7d3 and the round's first composed tree).

Write the tessellation test's vertex output as Metal's compiler does:
authored_tessellation_executes_native_patch_inputs hand-writes its AIR, and
its post-tessellation output carried metadata Metal's compiler does not
write (Xcode 27, every macOS target 13 to 27 checked): air.location_index on
a vertex output. Our AIR reader refused it (Abi(UnknownKey) for
air.location_index on a vertex output), as it should for a key the compiler
never writes there. The output now carries air.vertex_output with its
user(locn0) name, its type name and its argument name, as the compiler emits
it.

Verified: metal::tests::graphics::authored_tessellation_executes_native_
patch_inputs passes on the M3 Max, macOS 27.0.1 (it failed at 61a2efc7d3 and
the round's first composed tree).

Wrap the driver-facts claims test's doc at the line width:
The interlocked-pass sentence the shared-identity commit rewrote ran past
the 100-column doc width. No other change.

Hold the unmeasured-identity test to the macOS 27 identity's split form:
an_unmeasured_identity_takes_its_drivers_defects_alone still expected the
moltenvk-m4 capture to take InterlockedPassWholeFaster, which the shared
macOS 27 identity no longer does (it takes InterlockedPassSplitNoSlower, the
M3 Max's measurement). Found by the device::tests::driver_facts run at the
rebased tip.

Name the format where the formats capture and the product's query differ:
the_formats_capture_is_the_product_queried_formats_of_the_venue_device
compared every format's masks without naming the format, so a failure on
the M3 Max showed two masks and no format. Each assert now names it.
Test-only.

Capture the M3 Max's MoltenVK profile under macOS 27.0.1:
The reference Mac runs macOS 27.0.1 (26A434) now. Its moltenvk-m3 capture
(vulkaninfo --json and corpus-vulkan --capture-formats, Homebrew MoltenVK
1.4.1, vulkan-tools 1.4.350.1) is regenerated through
scripts/regen-device-profiles. Only the identity moved: MoltenVK's deviceID
on an Apple GPU is the macOS release and the GPU family, so the M3 Max now
reports 0x1B000209 (452985353), the M4's identity, and every capability,
limit and format mask is as before. c3-venues.json declares the new
identity.

The two captures now differ only in allocation sizes, which no translation
reads, so they derive one translation key:
- candidate::platform::profiles: a run on the M4 held to the M3 Max venue
  stops on the device name alone (the venue's identity guard, not product
  behaviour), and proceeds where the venue allows the M4.
- c3::tests: the M4's capture passes check_profiles as a second device of
  the venue; the list still refuses it for naming the M3 Max's Metal
  environment.
- device::tests::driver_facts: moltenvk-m3 takes the shared identity's facts;
  the macOS 26.7 identity (APPLE_M3_MAX), measured but with no committed
  capture now, moves to MEASURED_WITHOUT_PROFILE and keeps its coverage
  through a description at that deviceID, graphics cube route included.
- tests::engine_sampler_unk: the graphics cube route's test builds the
  M3 Max under macOS 26.7 the same way.
Docs: API.md and profiles/README.md say what MoltenVK's deviceID is.

Golden hashes and expectation rows that hold moltenvk-m3's translation key
are left for the round's bless. Verified: the capture on the M3 Max
(regen_device_profiles.py --only moltenvk-m3, check_device_profiles.py);
the unit tests above run at a build of this branch before landing.

Record the Metal rows of the M3 Max under macOS 27.0.1:
The reference Mac's Metal answers, apple-m3-max-macos27.0.1 (Apple M3 Max,
40 GPU cores, macOS 27.0.1 26A434, Xcode 27A266a, Metal toolchain 32023.921,
ORACLE_ABI metal-literal-resources-v48): corpus-metal --batch over every
case the 26.7 environment holds, in three maclock holds of about 6.5
minutes, then --batch-install. 2227 cases ran: 2223 qualified, 4 reference
gaps (the simdgroup_matrix 16x16 cases, GPUFamily10, as on 26.7), no
failure. The 26.7 rows stay.

Against the 26.7 rows: no status changed and 8 outputs moved, every one a
cube-gradient case with identical AIR and inputs (a54af728, 315ca8b0,
391fac4d, 6ce71712, ae7aa91b, b3e5b4ef, dd39e2e5, 649c204a). Those 8 ran a
second time identically. Every other case answers as on 26.7.

Expect the M3 Max's and the M4's MoltenVK captures to share a fingerprint:
fingerprints_distinguish_committed_profiles listed only the two Intel
captures as sharing a fingerprint, kept apart for the Apple GPUs by the
graphics cube route measured on the M3 Max's macOS 26.7 deviceID. Under
macOS 27 MoltenVK gives the M3 Max and the M4 one deviceID, and the captures
differ only in allocation sizes, so moltenvk-m3 and moltenvk-m4 now derive
one fingerprint; the test lists the pair.

Found by device::tests at a build of this branch; device:: (104) and
tests::engine_sampler_unk (8) pass with it on the release build.

Make the M3 Max under macOS 27.0.1 the C3 reference Metal environment:
The reference Mac runs macOS 27.0.1 (26A434), and its Metal rows are
committed (apple-m3-max-macos27.0.1). The switch:
- c3-references.json: the primary is apple-m3-max-macos27.0.1 (Apple M3 Max,
  40 cores, 27.0.1, 26A434, Xcode 27A266a, Metal toolchain 32023.921).
- c3-venues.json: the MoltenVK venue's device compares with it.
- runtime_lane::METAL_ENVIRONMENT, the reference and venue tests, and
  scripts/rerecord-venue's default name it.
- The parity lines: record_metal and the sequences' record_metal on the M3
  Max under macOS 27.0.1. The four scenarios recorded 68, 240, 95 and 36
  records; the 64 sequence seeds 8534 records, 0 differences from the model
  and no Metal-side gap (seeds 32, 51 and 62 crashed Metal's driver under
  26.7; they run under 27.0.1). The 26.7 lines and rows stay.

Verified on the M3 Max (release, --cfg m2v_gpu, the validation layer on):
runtime_lane::driver_deviations::cube_gradients_through_an_anisotropic_
sampler_answer_as_metal passes against the 27 rows (MoltenVK answers Metal
27's cube gradients; it failed against the 26.7 rows); parity::tests::
committed_records_are_current and the 14 parity and sequence lanes pass (their
2 recorders are ignored); the
c3::, candidate::platform::profiles::, candidate::engine::guards:: and
parity::tests:: modules pass (98 tests).

Record the M3 Max's MoltenVK venue under macOS 27.0.1 at product 15b6df4e2bd0:
Rows and refusals recorded by one build (executor vulkan-engine-v181, product
15b6df4e2bd0cb440724ffe07ba95f1ccf6d0a5dd7fb5055598e70c877596734, semantics 1698, oracle
metal-literal-resources-v48) at this commit's product, on the Apple M3 Max under macOS 27.0.1 (MoltenVK
1.4.1, deviceID 0x1B000209). They are judged against the apple-m3-max-macos27.0.1 Metal rows and
were installed by scripts/rerecord-commit --no-commit. No later commit changes the product, so every row installed here stays current.

- apple-m3-max-moltenvk (moltenvk): 4389 rows, 56 refusals, over 2223 cases in two legs
- stated: 2168 match, 23 mismatch, 31 refused, 1 failed
- robustness-off: 2175 match, 23 mismatch, 25 refused

Against the macOS 26.7 rows, per case and leg:
- Of the earlier matches, 2965 still match, none mismatches, and 1 failed (below).
- 13 earlier mismatches and 13 earlier refusals now match; 38 mismatches and 42 refusals remain.
- 1374 runs had no 26.7 row: 1352 match, 14 refused, 8 mismatch. The 8 are the robustness-off
  leg of four linked-single radix13 and radix15 zero-write cases whose stated leg was already a
  mismatch, and both legs of the two new cases quad-broadcast-first-in-an-arm-metal-speculates
  and quad-broadcast-first-in-a-fragment-arm-metal-speculates.

The failed run is authored-four-iteration-loop (3cf0a3f024a5), stated leg. Metal's compiler
connection was interrupted while it compiled the compute pipeline (XPC_ERROR_CONNECTION_INTERRUPTED
after MoltenVK's retries), on both the first try and the --retry-failed run. Its robustness-off leg
matches, and under 26.7 it matched in both legs. Its stated slot keeps the 26.7 row, which C3 reads
as stale. Two msl-4-1 cases the venue's selection did not include also keep 26.7 rows that read
stale.

Verified:
- corpus-moltenvk --batch-report reads this_build=yes for the out directory at the recording tree and at the round's
  final tree (the table bless after this commit), which adds only tests, test tables and docs.
- corpus-status --c3 prints the same report at both trees. The MoltenVK slots (stated, then
  robustness-off) read: match 2168 and 2175, reviewed 10 and 10, mismatch 13 and 13, refused 25
  and 19, ray tracing out of scope 6 and 6, stale 3 and 1.

Versions: RUNTIME_VERSION 1205 -> 1211. RUNTIME_VERSION moves: MoltenVK's NotMipmapped anisotropic
footprint is read at level 0, and the macOS 27 Apple identity takes InterlockedPassSplitNoSlower.
crates/metal2vulkan-validation/runtime-sources.sha256 holds
e74792b15fd66114fb4efcc8e281318bfe1e16a3b8532e90d737834ea5a2add3, the hash of this tree's runtime
inputs (runtime-pin.py, which reproduces build.rs's). Version numbers quoted above are the values
the work's branch built with. Each part's Verified lines name the tree it ran at.
2026-10-14 20:17:42 +03:00
Anees Iqbal 13b279df1b Squash 11203 commits of translator, runtime, and validation work
Rolls up everything since 43c46ac8 into a single commit. Its tree is
identical to the tree of private master at
b3c77f2d2b20a432be10591a2129547c10b1c24b.

- A Cargo workspace of five crates under crates/: metal2vulkan (the
  translator and the metal2vulkan command), metal2vulkan-runtime (the
  Metal API on Vulkan), metal2vulkan-air (the AIR front end),
  metal2vulkan-validation and metal2vulkan-devtools.
- Dual license: GPL-2.0-or-later OR LGPL-3.0-or-later.
- docs/: API, architecture, fast paths, how-to, Metal coverage,
  refusals, runtime porting and validation guides.

Private-Commit: b3c77f2d2b20a432be10591a2129547c10b1c24b
2026-10-11 20:09:13 +03:00