What: the push window is one value per device, `DeviceProfile::push_window`, the description's
maxPushConstantsSize up to 256 bytes, decided in the profile `Device::from_queries` derives
(device/profile.rs:115). Every window reads it: push placement (`lower::push::window`, `place`,
`spills` and `check_floor` take its bytes; lower/select.rs, lower/access/mod.rs and
lower/access/table.rs pass it), and in the runtime the one pipeline layout's push range
(device.rs:688), the kernel and render pipelines' push checks (pipeline.rs:2119, render.rs:1043)
and the encoder's push bound (encoder.rs:1759). With W that value, a kernel pushes in [0, W), a
vertex function in [base, W - 8) and a fragment function in [base, W); object and mesh functions
keep 0..32 and 32..64. A stage's fields past its window spill to its parameter block, whose
address the window holds, as they did past 256. `from_queries` refuses a maxPushConstantsSize
below 128, Vulkan's least, only (`Unsupported{PushWindow}`, required 128), and the runtime's
floor no longer lists maxPushConstantsSize (floor.rs: its row and PUSH_CONSTANT_BYTES go; the
layout's range was a constant 256). There is no constant 128 path, no switch and no environment
gate: the limit query is the only input. Ported from the held branch steelbrain/amdfloor-window
(d6880ca16b) onto today's development, every line reference confirmed against this tree.
Why: the owner's word choosing option B. A device reporting 128 bytes was refused by the floor;
it now runs with a window of 128.
AGENTS.md rule 2 takes the owner's authorized text: "for eight only" becomes "for nine only",
and the push window joins the list after run-time texel offsets.
Known gap (runtime README, Known gaps of indirect command buffers): in a window of 128 bytes a
command reaches 9 vertex slots, and 8 where the vertex function spills, against 25 and 24 at 256
((W - 8 - 16 - 28) / 8; from code: lower::push's
an_indirect_draw_s_vertex_function_pushes_25_or_9_slot_words). A kernel pushes 8 buffer
addresses beside its dispatch region at 128 bytes against 24 at 256, the rest from its ring.
Caches: a device of 128 and one of 256 share no cached artifact and no pipeline. The profile's
fingerprint hashes every ProfileFields field by Debug (device/profile.rs:312, :327), the limits
included (:346, maxPushConstantsSize at :625); `function_key` hashes the fingerprint
(pipeline/compile/key.rs:182, :189; passed at pipeline/compile.rs:2973), as does
`queried_render_descriptor_key` (key.rs:546); a cached artifact or pipeline loads only under an
equal fingerprint (cache/artifacts.rs:71, :204, :238; cache/envelope.rs:142); and the runtime's
enables digest, which the stage keys check, hashes it (metal2vulkan-runtime/src/device.rs:1533).
SEMANTICS_VERSION stays 2273: no module changes under an unchanged key. Every device
`from_queries` accepted before reports 256 bytes or more (it refused below 256), so its window is
256 as before and its modules are the same bytes; a device of fewer bytes was refused, so it
holds no artifact to go stale, and its modules are new under its own fingerprint. The golden
test at this tree found 0 cells changed under an unchanged key over the 15 committed profiles,
and 1855 under a changed profile fingerprint, runtime-floor's column alone (m3-max-68089; the rows
whose assembler Linux lacks are not observed there).
Golden table: runtime-floor.json and its generator drop the floor block's maxPushConstantsSize
of 256, so the profile reads Vulkan 1.3's least, 128, and its fingerprint moves. Its cells are
re-blessed on development (the bless needs macOS's assembler).
Validation: runtime-sources.sha256 is rewritten (d4a8dbf2...), since device/derive.rs and
device/profile.rs are runtime inputs the guard hashes.
Docs: the runtime README (the floor's limits note and table, compute Parameters, the render push
range, the indirect command buffers' known gaps), docs/API.md section 5 and the from_queries
paragraph, PushWindow's doc, reach.tsv and docs/REFUSALS.md (regenerated; the PushWindow row
only), the device profiles' README, and api_signatures.tsv (DeviceProfile::push_window). The
api_surface table is unchanged: no public type is added.
Tests: lower::push's placement at 256 and 128; from_queries (each committed profile's window is
its limit up to 256, runtime-floor's 128; 128 derives, 64 is refused with required 128); the
tessellation control range, the engine identity and spill tests in each profile's window; and
the runtime's push_window, patch and indirect token tests in two arms each, the device's own
limit and the limit held at 128 by the tests' device shim (tests/command.rs push_window_128,
DeviceOptions::described).
Verified:
- m3-max-68088 (this tree): fmt, the signatures table, the refusal surface, clippy -D warnings
plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings: each exit 0. The
runtime suite on lavapipe (--cfg m2v_cpu_icd): 647 passed, 3 skipped. Its push lines read
"push_window: the push window is 256 bytes", "push_window_128: the push window is 128 bytes",
"window 128, 12 buffers: 3 ring writes and 3 pushes over 3 dispatches", "icb_tokens: ... the
push window 256 bytes, 25 slot words", "icb_tokens_128: ... the push window 128 bytes, 9 slot
words", and draw_patches_full_range at 256 and _128 at 128.
- m3-max-68089 (this tree): the core crates 3881 of 3882 passed, 24 skipped; the one failure
is the golden table, stale under runtime-floor's moved fingerprint (1855 cells, one per row
observed on Linux, 0 new, 0 gone, 0 under a changed source, 0 changed under an unchanged key).
Validation 1314 passed, 3 skipped. The translator's push tests print each committed profile's
window: runtime-floor 128, the vertex function ending at 120, 9 inputs; the 14 others 256.
- m3-max-68067: the whole runtime suite on lavapipe at an earlier tree of this change
(a98af765ad, before the rebase onto 91fed9449c and the options alias) with a probe commit that
holds every device's limit at 128 in Device::open (steelbrain/amdfloorb-probe128, never landed):
647 passed, 3 skipped; the conformance replay exited 0; every push line read 128 bytes.
No card under 256 ran it; the 128 form ran on lavapipe with the limit held at 128.
9.1 KiB
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.
below-floor/ holds the Vulkan 1.2 minimum, below the runtime's floor: the input of the
translator's push window test alone (Device::from_queries derives it at its maxPushConstantsSize
of 128, the window's least, and refuses it at 64), read by no other test, census or venue. The
committed profiles are the files of this directory.
| File | Source | Device / definition | Driver | API |
|---|---|---|---|---|
runtime-floor |
derived from VP_LUNARG_minimum_requirements_1_3, plus m2v_runtime_floor |
the runtime's floor: Vulkan 1.3 required features and minimum limits, the unconditional Vulkan 1.2 Required Format Support entries, and what metal2vulkan-runtime requires of every device (crates/metal2vulkan-runtime/src/floor.rs) |
– | 1.3.204 |
below-floor/vk12-floor |
derived from VP_LUNARG_minimum_requirements_1_2 |
Vulkan 1.2 required features, minimum limits, and the unconditional Required Format Support entries only | – | 1.2.131 |
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-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 |
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.6 | 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.6 | 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.6 | 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_runtime_floorofruntime-flooris not from the base profile either: it states the device extensions, features and limitsmetal2vulkan-runtime's floor requires, each limit at the value the floor needs, and the blockm2v_required_featuresthe Vulkan 1.3 core features the base profile omits (provenance.added_features). A runtime test holds the former equal tofloor.rs. The floor's queue family, timestamp bits, memory types and time domains have no profiles-schema form. - 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_presentationof a requirements document (akhronossource of the generator; no committed file is one) 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_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. - A file states no deviation from the specifications, and the product reads none: its profile is
derived from the file's Vulkan queries alone (
Device::from_queries). 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.