sampler-r-address-modes (3 rows) and sampler-border-colours (6 rows)
differ on RADV at one lane: r = -2^-149, which Metal reads as layer 0
and the device reads below it. The rows left open whether the module
hands the sampler that coordinate unchanged. The module was read to
settle it. msf_slot3d_linear_repeat, translated by the metal2vulkan
command for crates/metal2vulkan-validation/profiles/amd-rdna3-radv.json
(m3-max-4251, spirv-val PASS), loads the coordinate's words, bitcasts
them to float and shuffles out xyz. The constexpr sampler's
OpImageSampleExplicitLod takes that value directly. The runtime
sampler's takes OpSelect(SamplerState bit 0, floor-and-divide,
coordinate), and bit 0 is SamplerWord::PIXEL_COORDINATES, which is
clear for these normalized samplers, so it too takes the coordinate as
loaded. No arithmetic touches it, so the subnormal reaches the device's
sampler unchanged, and the layer the device reads is its sampler's own
answer (device-sampling, rule 1). The rows now say so; what stays open
is device-sampling's bound for a 3D texture.
(cherry picked from commit 609cb23f1e6861bc9adc1b4f81482a52269f8e54)
rows3 (e1ff50ac33) made two product fixes:
- GPU writes into read-only no-copy memory are now dropped off macOS.
- pass-sequence-color-actions' DontCare attachments are kept under the
exact policy the replay runs.
The RADV rows for both families recorded the old answers, and the whole
RADV replays at development c418a1f55b read every one of the 8 as stale
("no longer diverges ... and the known-gaps ledger still lists it"), on
the Radeon 780M (m3-max-4236) and on the RX 7900 XTX (m3-max-4237) alike:
- host-page-writes-kernel-store-read-only and
host-page-writes-visibility-read-only, each at
case/bytes-in-a-later-command-buffer-bytes and
case/bytes-the-cpu-reads-bytes;
- pass-sequence-color-actions at its four MTLStoreActionDontCare cells.
No venue's row is left for either family. docs/CONFORMANCE-COVERAGE.md
re-derived. Besides these, each replay held one unlisted line,
pass-bytes-srgb-decode-all-bytes, which amdperf owns.
(cherry picked from commit 0017a2c76ddad7a214127e4b700e5740fe3b6917)
PrecisionNote::DeviceTexelConversion's recorded bound named NVIDIA's
gathers, which flush a 32-bit float texel's denormal to a zero of its
sign, and answered Metal's value for every other class. On RADV (Mesa
26.2.6, both the RX 7900 XTX and the Radeon 780M on 2026-11-07),
denormal-word-fetches differed at its four nearest-sample sites alone:
each differing word is a denormal against the zero of its sign (largest
difference 0x7FFFFF, a whole mantissa), and none of its gather sites
differs. So the device's samples flush and its gathers keep. That is
the device's native answer (rule 1), announced for the case as
device-texel-conversion, and the note's documentation now says so, in
artifact.rs and in docs/API.md's catalogue entry. The case's module doc
records the RADV reading beside its runtime_lane one.
Doc comments only: no product path changes. artifact.rs is outside the
runtime sources pin, and degradation.rs is not touched. Verified: the
replays m3-max-4102 and 4108 (the four lines, identical on both GPUs),
and the driver version read with vulkaninfo (m3-max-4201).
(cherry picked from commit 7fc262b99f7ab4b080e9efb506021908fa9121e4)
The rest of the RADV ledger round: every line the whole RADV replays
read as unlisted, on the RX 7900 XTX (m3-max-4102, 306 lines) and the
Radeon 780M (m3-max-4108, 281 lines, each identical to an XTX line),
except the 10 lines the case declarations of b5c45c23cf settle and
pass-bytes-srgb-decode-all-bytes' one line, which amdperf owns.
Each row names the native note the RADV run announced for its case at
that site (the case block's "the device's native notes this case
announced" line, or a case-declared notice that fired), and states the
device's own answer with RADV's first differing element and largest
difference:
- 275 rows read "RADV": the 780M holds each of them with the same
answer, so a RADV row holds on both of the consumer's AMD GPUs.
- 20 rows read "NAVI31": ycbcr-gathers-* and ycbcr-minify-band-*,
where the XTX's memory is not the host's and the slot binds a
converted image. The 780M, which reads the planes in place, does not
diverge there.
Families with a text of their own:
- sampler-r-address-modes and sampler-border-colours: one lane, r the
negative smallest subnormal, which Metal reads as layer 0 and the
device reads below it.
- sampler-axis-mode-triples: the device's weight in whole 1/256 steps.
- denormal-word-fetches: the device's nearest samples flush a denormal
and its gathers keep it.
- BC1 to BC3 sRGB: the sRGB decode moves, since the 780M's block decode
is measured to be Metal's. BC4 and BC5: the device's decode.
- a2c-*: the device's coverage at alpha 0.5 is samples 0 and 2, and its
resolve rounds a tie down, as device-rounded-resolve records for RADV.
- texture-fills, nearest-sample-positions, sample-positions-default-*,
math-frexp-ilogb-half, the pass-bytes tanh and encode sites, and
blend-interaction-format-*.
The other rows take another venue's venue-neutral text, after the first
differing element and the largest difference were substituted and the
text was read against RADV's answer.
docs/CONFORMANCE-COVERAGE.md re-derived (scripts/conformance-coverage).
Proof: the whole RADV replay on both GPUs at this branch's tip.
(cherry picked from commit 2e0f7f2baf5f72200580b2092005e49645eca4be)
Three case families announced a notice on RADV that they did not declare,
so the RADV replay read each one's notices site as a new gap.
command-buffer-facts and empty-command-buffers: the RX 7900 XTX (RADV
NAVI31) announces uncalibrated-gpu-times. Its calibrated timestamps placed
every timed command buffer of the two cases outside the command buffer's
life: WorkCounts::calibration_disagreements read 2 and 1 in each of three
`cost --show` runs (job m3-max-4156). So the runtime placed their times as
it does on an uncalibrated device (gpu_time.rs). The Radeon 780M (RADV
PHOENIX) in the same machine read 0 and announced nothing (m3-max-4154).
command_buffer_facts.rs left the notice out on purpose until a venue
announced it ("the moment to look at it"). Both cases compare orderings
that hold for any placement, and every value compared exactly on the
XTX, so each now takes the notice at its notices site alone.
pass-start-barrier-over-buffer-*: RADV (the XTX and the 780M alike)
announces shadowed-texture for the five small rows whose 32x32 BGRA8
target lies over a buffer's 128-byte rows. No linear image of RADV's
aliases those bytes, so the runtime renders and reads the target through
a shadow image (texture.rs), and every texel still compared exactly. The
rows now declare it beside linear-attachment-clear-copies, which the RTX
5080 announces for the same rows.
Verified so far: the two probes above, and the whole RADV replays 4102
(XTX) and 4108 (780M), where these 10 lines were the only differences
in these cases. The build, tests and replay proof follow in the batch's
check.
(cherry picked from commit b5c45c23cfa7c3aafe5a08b68efe12eb3222203a)
steelbrain/amdperf-5 (ec4b802fce, 4da8cc36e1): on Linux with glibc the
runtime's exit hook now waits for the sections in progress, as on macOS: up
to 2 s, or up to 60 s while a pipeline's making is in progress (with its
notice). It then returns, so the program's earlier exit handlers run. It ends
the process at once (notice, flush, _exit with the status) only past the
bound. The runtime-sources pin is recomputed.
Verified by its author: reims's exit repro on the Radeon 780M (job
m3-max-4106, N=50): tip 50/50 handlers ran, 0 at-once notices; base 7/50, 43
notices. lavapipe (4085, N=20): tip 20/20, base 0/20. Both new exit_guard
tests fail with the wait set back to zero (4085). exit_guard 43/43 three
times (4187), runtime_lane::exits 9/9 three times, Linux clippy in three
configurations and rustdoc pass (4085). At this landing, the signature table
check passes and the refusal surface and conformance coverage re-derive with
no change.
The check looked for " 60 s" where the notice says "(60 s while", so it failed on Linux
(ms01 job 4085, 3 of 3). It now reads each bound where the notice names it.
Verified: the wording matched against AT_ONCE_NOTICE by hand; the Linux run follows.
(cherry picked from commit 4da8cc36e157e307d6c179a1ba9087c11c2ca887)
On Linux with glibc the exit hook waited for nothing: with another thread's section or a CPU
device's work in flight it wrote the at-once notice and called _exit, so every exit handler
registered before the runtime's last registration was skipped. QEMU registers its exit notifiers
(usb-host's re-attach of host USB devices to their drivers, tap's downscript, the pidfile unlink)
and its terminal restore before the device exists; a quit in that window left a user's host USB
devices detached. Metal's exit runs those handlers.
The hook now waits there as on macOS: for the sections in progress at most BOUND (2 s), at most
MAKING_BOUND (60 s, with its notice) while a pipeline's making is in progress, then for a CPU
device's work within what is left; once they ended it returns and the earlier handlers run. Only
past the bound does it end the process at once with the exit's status (the notice now names the
bounds), which keeps a driver deadlocked inside a submission (the GPU-assisted validation layer's)
from holding the exit and keeps destructors from running beside the driver's work.
After the hook returns no call of the runtime's is in flight: a section publishes its calls'
results before it ends, and none starts once the guard closed. What may still call the driver is
the program's own threads (their race, as before) and the driver's own threads (Mesa's thread
queues, which its own exit handler joins after the hook): the module docs say so.
Tests: an_exit_runs_the_handlers_before_the_hook_once_the_work_ended (a section, and a CPU
device's work, ending 100 ms into the exit: the handler registered before the hook runs, no
notice), which fails where the hook waits for nothing; a_busy_exit_past_the_bound_ends_at_once_
with_its_status (stuck section or CPU work: the exit's status, the notice, after 2 s and within
3 s); the_at_once_notice_names_the_bounds. The exits lane expects the wait on Linux as on macOS.
Docs: exit_guard.rs, pool.rs, shader_cache/worker.rs, docs/API.md's accepted difference.
(cherry picked from commit ec4b802fce26f18920ba0586eeadf32fe694816e)
steelbrain/rows3 changes what the runtime does with two families from the
conformance ledger:
- A DontCare colour store follows the new DevicePolicy::dont_care_colors:
Driver (the default) stores as the driver's DONT_CARE and announces
dont-care-store; Kept (exact_answers()) keeps the attachment's earlier
texels through a pooled backing, as the M3 Max leaves them.
- Off macOS, the GPU's writes into bit-24 (read-only) no-copy memory go to a
copy and are dropped, as Metal drops them (owner 10-23).
The runtime-sources pin is recomputed. No translation changes, so
SEMANTICS_VERSION stays 1983.
Verified at the branch tip by its author on gem10 (job m3-max-4183): 48 of
48 touched lane tests pass on lavapipe; clippy in three configurations and
rustdoc -D warnings pass. At this landing, the signature table check passes
and the refusal surface and conformance coverage re-derive with no change.
The ledger now holds 2998 rows (16 removed).
The lane's devices take DevicePolicy::exact_answers() (validated_options),
which now selects DontCareColorPolicy::Kept. So the two default-policy tests
rendered their DontCare colours through the backing. On lavapipe
(m3-max-4139) the keep test counted backed passes, and the barrier cases
announced no dont-care-store. Both tests now make their lane with the
default form, Driver, set over the lane's exact policy, as compressed_blits
sets ExtendedRangeBlitPolicy::Kept. The exact-policy test keeps Kept.
Verified: cargo fmt only. The rerun follows on gem10.
(cherry picked from commit 56b9ea0fc99eb2410dd9d343946c93422f83f5fb)
The owner's rule 1 keeps the fast form of every speed-for-accuracy choice the
default. A colour attachment of a texture's own image stored DontCare now
stores as the driver stores it by default (DONT_CARE where the driver is
measured to keep one of Metal's answers or to store as Metal's own, else
STORE), announced dont-care-store, and renders through the pooled backing
that keeps its earlier texels only under the new opt-in switch
DevicePolicy::dont_care_colors = DontCareColorPolicy::Kept, which
DevicePolicy::exact_answers() selects.
- metal2vulkan: the new public field DevicePolicy::dont_care_colors and enum
DontCareColorPolicy { Driver (default), Kept }. Its docs give each form,
its cost and Metal's documentation ("You need to assume that GPU discarded
the texture's contents"). The runtime alone reads it, so no profile carries
it (tests::fast_paths checks that no fingerprint moves).
- runtime: kept_bytes::settle takes the backing only under Kept. The docs of
kept_bytes, render_target, attachment_stand_in, degradation and
WorkCounts::kept_texels_passes, which counts only the Kept form's passes,
now say which policy they describe.
- docs/FAST-PATHS.md: the choice moves from "Costs of matching Metal" into the
table, as a row with its default, its switch, its bound and its measured
cost. docs/API.md's dont-care-store entry and the Render passes accepted
difference name the policy.
- Tests of both settings. dont_care_stores' default-policy tests are back to
their earlier form (each texel one of Metal's two answers, announced where
the driver does not store as Metal's own) and assert that no pass took a
backing. The new exact_answers_keep_a_dont_care_color_s_earlier_texels_on_
every_driver runs under Kept: the single-sample cases, both barriers and the
two 4x colours keep their texels exactly and are counted.
deferred_calls's refused-end test is back to its DontCare form.
clear_reach gains lane_with.
- conformance: the Policy::Exact doc lists queue_sharing and dont_care_colors.
The colour case's dont-care-store comment says what each policy gives.
- The known-gaps ledger keeps the eight pass-sequence-color-actions rows
removed. It is held against `conformance replay`, which takes the exact
policy, as the BGRA10_XR compressed-blit rows already are.
- The API signatures are blessed and docs/CONFORMANCE-COVERAGE.md is
re-derived (its ledger table had kept the rows that both families removed).
REFUSALS.md does not change.
Verified: cargo fmt only. The Linux clippy, rustdoc, suites and lavapipe
replays under both policies follow as potluck jobs.
(cherry picked from commit ec3479464c0f72ab5443223a28e23e84ec23e78d)
On the RTX 5080 Laptop GPU, commit to completion, median of 300 (the
scratch example rows3_cost, b5080 entry rows3-t2 in batch m3-max-3848):
beside a live 16 MiB copy whose pages carry no log, a 256-byte fill into
a writable 16 MiB no-copy buffer took 1.5 ms (49 us beside a 64 KiB
copy), and the same fill into the copy 2.6 ms; into a 64 KiB copy 53 us.
Before the page-at-a-time restore (rows3-t1, same batch) the fill into
the 16 MiB copy took 13.1 ms. The known gap in docs/FAST-PATHS.md now
says so; one code span there is rewrapped onto one line.
(cherry picked from commit 3c595e52ada9f9088a86e8077ab6a536c43c204f)
Family A's change came in be0b42bc67/568dd0d59b (a DontCare colour of a
texture's own image keeps its texels through a pooled backing) and
18b42a54bc/e3b68145f3 (drop the pass-sequence-color-actions rows). Their
subjects say WIP and they have no body, so this is their body:
What: kept_bytes::settle now also renders a colour attachment of a
texture's own image stored DontCare (not memoryless, resolving nothing,
not over a buffer) through a backing its queue keeps for the
attachment's shape (attachment_stand_in::pooled_backing, which now takes
whether it copies, Cause::KeptTexels), into which a Load copies the
texels first; the backing is stored DONT_CARE and nothing is copied back.
Not where the pass hands the store to a driver whose DONT_CARE is
Metal's own (MoltenVK), nor the viewed/executes/taken passes, nor where
a format makes no stand-in. No dont-care-store is announced for it, as
the texture keeps Metal's answer; WorkCounts::kept_texels_passes counts
each such pass.
Why: Metal's documentation leaves a DontCare store's contents open ("You
need to assume that GPU discarded the texture's contents"); what the M3
Max leaves, measured by pass-sequence-color-actions over eight runs, is
the attachment's texels from before the pass. Vulkan's DONT_CARE leaves
them undefined, and llvmpipe and the RTX 5080 left the pass's clear and
draw (8 ledger rows). STORE_OP_NONE does not keep the texels of a pass
that writes, so no store op alone matches; the backing does at the cost
below.
Verified:
- lavapipe: pass-sequence-color-actions every plane equal to Metal's
(m3-max-3621, m3-max-3768, m3-max-3807 at the rebased tip); the whole
lavapipe set matches the ledger exactly (3768: 1156 rows; 3807: 1137);
the touched lane tests pass under m2v_cpu_icd (48 at the tip, 3807),
among them dont_care_stores'
a_dont_care_color_keeps_its_earlier_texels_on_every_driver, which
counts kept_texels_passes.
- MoltenVK on the M3 Max: the case announced, its planes exact
(m3-max-3743, m3-max-3822); 46 lane tests pass under m2v_gpu.
- Negative control (keeps_texels forced false, steelbrain/rows3-negctl,
m3-max-3729): the 4 llvmpipe rows come back.
- Costs (this commit, docs/FAST-PATHS.md): the scratch example
rows3_cost on the RTX 5080 (b5080 t entries rows3-t1, rows3-t2, batch
m3-max-3848) and lavapipe (m3-max-3765, m3-max-3782).
(cherry picked from commit b0197dcf1103f2794723a2cf520f20d698a7b2fd)
A copy whose GPU writes are dropped (pages the process maps read-only,
and now bit-24 memory off macOS) is restored at each batch completion
that may have written it: every byte the GPU changed takes back the
snapshot's. restore() read and compared the copy 8 bytes at a time,
which on lavapipe's host (gem10) cost about 19 ms per completion for a
16 MiB copy: a fill of 256 bytes into a bit-24 no-copy buffer took a
median 23.5 ms per command buffer against 2.3 ms for its writable twin
(job m3-max-3765, the scratch example rows3_cost).
It now reads a block of SYNC_BLOCK bytes at a time and compares it whole
with the snapshot's, as sync() does, and looks into a block only where it
differs (merge_block), so no byte the comparison found equal is written,
as before.
Verified: copied_restore_by_pages_answers_as_byte_by_byte holds the new
restore to a byte-at-a-time reference over 200 rounds of lengths that end
inside a block, inside an 8-byte span and on either edge; timings in the
branch report.
(cherry picked from commit bc82d3a9ddf7e262b89971ee1780b31c23ea7b8a)
Metal drops what a shader or the blit engine writes into no-copy memory
made with its private option bit 24: the write completes with no error,
a later command of the same command buffer may read it back, and neither
a later command buffer nor the CPU sees it (probes/readonly_gpu_writes.m,
an M3 Max under macOS 27.0.1; the owner's ruling of 10-23: drop, never
refuse, on every driver). macOS imports the pages through a read-only
view of them. Elsewhere the import was of the caller's own pages, so the
GPU's writes reached the pages, the CPU and later command buffers
(host-page-writes-kernel-store-read-only and
host-page-writes-visibility-read-only diverged on llvmpipe and the RTX
5080), announced as private-resource-option. No import can keep the
writes out there: Linux drivers pin imported pages for writing, and ANV
lost the device and RADV failed every submission over read-only imported
pages.
So off macOS such a buffer, heap or rebind is made over a copy of the
pages whose GPU writes are dropped, the mechanism copied.rs already has
for pages the process maps read-only: each commit copies in what the CPU
changed, later commands of the batch read the GPU's writes, and the
batch's completion puts every byte the GPU changed back, writing nothing
to the pages. The gate is not asked (nothing is imported), the copy joins
no other buffer over the bytes, and a rebind whose bytes moved in their
page is now a copy laid out at the old offset rather than refused.
- buffer_descriptor.rs: buffer_over_host_memory makes the copy
(CopiedFor::ReadOnly) where drops_writes and the system maps no
read-only view; the rebind path copies the same way (read_only_copy);
copied_buffer takes why it copies, and passes read_only to
CopiedBuffers::add and drops_writes to the buffer's HostCell.
no_copy_options moves here from degradation.rs and no longer
announces private-resource-option off macOS (that notice stays for a
heap of the runtime's memory and an indirect command buffer).
- copied.rs: add() takes read_only, which drops the copy's GPU writes
whatever the pages' protection.
- buffer.rs: BufferParts carries drops_writes into host_lie.
- New: CopiedBecause::ReadOnly, WorkCounts::copied_read_only_memory.
- Docs: read_only_view.rs, copied.rs, capabilities.rs (the answer stays
no off macOS), values.rs, host_backing.rs, interop.rs, host_aliases.rs,
error.rs (RebindTextures is macOS-only now), degradation.rs, docs/API.md
(private-resource-option, copied-host-pages), docs/HOWTO.md and the
docs/FAST-PATHS.md known gap: off macOS a command buffer committed while
the writer is in flight still reads its writes, and a render pass's
store-out into the copy completes where Metal's faults.
- Tests: degrade_notices' bit-24 lane tests assert the writes are
dropped on every driver and count the copies (3 and 1 off macOS, 0 on
it) and the kinds (copied-host-pages off macOS, none on it);
copied_surfaces' dropping buffer is a copy of its own off macOS.
- host-page-writes read-only rows declare copied-host-pages in place of
private-resource-option; their 8 ledger rows are removed.
- api_signatures.tsv blessed for the new field.
Verified: see the replay and lane-test jobs named in the branch report
(lavapipe, the RTX 5080 through b5080, MoltenVK on the M3).
(cherry picked from commit 1f24b1f035d61f093ecf2c76fae4b9c2e4b541d9)
The new public field of the kept-texels backing (a DontCare colour of a
texture's own image keeps its earlier texels). Blessed with
python3 scripts/api-signatures/signatures.py --bless.
(cherry picked from commit 6c1948b57749795da523c79d6ec9678f7e6da61c)
kept_bytes::settle now matches NotImplemented(Render) from the pooled
backing of a DontCare colour (it keeps the pass in place there), which the
refusal surface reads as a second site of gap::Render. Regenerated with
python3 scripts/refusal-surface/refusal_surface.py; no refusal changed.
(cherry picked from commit 8ca3ed766dc2d022ace03a294694d78b03faf7a9)
A colour stored DontCare keeps its earlier texels through a backing of its
queue's and announces nothing, so in pass-sequence-color-actions the
dont-care-store allowance fires only where no backing could be made; the
aspect case's depth and stencil DontCare stores still announce on a
device whose DontCare store is not Metal's. The allowance stays, and its
comment now says this.
Verified: the lavapipe replay of pass-sequence-color-actions (job
m3-max-3621, ms01) reads the allowance as named and not fired, with every
plane equal to Metal's.
(cherry picked from commit 2c197f7d2a960f1774716a31a330aedbb7887141)
binary-archive-mesh-adder's cost record held only "a call did not answer,
at program": the case could not make its mesh pipeline until adadb73f7c
gave BinaryArchive add_mesh_render_pipeline_functions. It now
translates the mesh stages, and the M3 cost gate at 7470a49e6d
(orchestrator, m3-max-4060) read linked_use_questions_asked 4,
pipeline_layouts_made 1, shader_modules_made 4, stage_entries_shared 4
and stage_entries_specialized 2 as "now gated, none in the record".
mesh-pipeline-reflection-object-stage runs after it in the case set and
uses the same mesh stages. Before adadb73f7c it was the first case to
translate them; now binary-archive-mesh-adder translates them first, so
this case shares what it made before. The gate (and the whole M3 replay,
m3-max-4082) read the result: pipeline_layouts_made, shader_modules_made
and stage_entries_specialized went to none, and stage_entries_shared went
from 22 to 24 (the two specialized entries are now shared hits). This is
the selection's order and not redundant work: the second case reuses what
the first one made.
Job m3-max-4146 on the M3 Max (MoltenVK), at c0d0511d68, for the two
cases:
conformance cost --runs 8 --show A B (before writing)
conformance cost --runs 8 --alone --show A B (before writing)
conformance cost --runs 8 --write A B
conformance cost --runs 8 --alone --write A B
each exit 0, both cases measured. In the pair's order,
mesh-pipeline-reflection-object-stage read stage_entries_shared 24 and
made no layout, module or specialized entry, which is what the gate saw.
Alone it made pipeline_layouts_made 1, shader_modules_made 4 and
stage_entries_specialized 2, with stage_entries_shared 22, which is its
old record. The contrast writes stage_entries_shared and
stage_entries_specialized into the case's composed counts, as the
selection decides them, and pipeline_layouts_made and shader_modules_made
into its ceilings. binary-archive-mesh-adder reads the same in both shapes.
A replay of the two cases in the same job was exact. A replay of a
selection judges no cost, so the whole-set gate on development is the
check for that part.
(cherry picked from commit 7af8be21f11e441aeb3ad4677c0429b80ced4a43)
09d6a0a9f3 (the submission checks record their command buffers through the
driver's own commands) added a pub(super) fn real(index, command) to the
recorder's commands! macro. The signature table records the macro's template,
so the_public_signatures_are_the_committed_table failed on development's
Linux suites (job m3-max-4004 at 7470a49e6d). The new item is pub(super), so
no consumer-visible surface changed and nothing breaks for a consumer.
Verified: scripts/api-signatures/signatures.py --check passes after the bless
(it failed before with this one template change); the runtime-sources pin is
unchanged.
From the same whole RADV replay (m3-max-4016 at 7470a49e6d). Each
family's notes are announced for its cases on RADV (the case's own
native-note line, or every declaration fired: none of these cases is
among those whose declarations did not all fire, save the MoltenVK-only
set-past-layout one), and each row states RADV's own answer:
- half-output-blends (63): the device's fixed-function blend where
Metal's compiler folds blend and conversion under fast math, under
half-output-fast-math-blend; the rows say whether a site is within
that note's bound is not established, as llvmpipe's do.
- pixel-downscales (42): a normalized downscale differs by 0.031 of a
code at most, inside device-sampling's RADV bound (0.548); a pixel
sampler's by up to 0.876, inside pixel-sampler-scaling's 2/255; the
digest sites point at the head and tail rows.
- half-texel-nans, half-read-nans, half-write-nans (38): each a NaN
whose sign and payload are the device's, under native-nan-encoding
and the case's announced conversion note, with RADV's first
differing element.
- pixel-samplers (38): digests of the device's own sampler and
conversion; the subnormal arg and slot sites hold the digest
MoltenVK and lavapipe answer, the device's floor of a negative
subnormal, under device-denormals.
- vertex-format (20): a narrow float attribute's NaN widened with its
payload, under device-nan-encoding; a float read as half keeps the
NaN's sign, under native-nan-encoding.
All are scoped to RADV. CONFORMANCE-COVERAGE.md re-derived.
(cherry picked from commit 8e309cbacd31cdf61ecc74bbad8876225ae7a299)
The whole RADV replay (RX 7900 XTX, RADV NAVI31, Mesa 26.2.6; potluck
job m3-max-4016 at 7470a49e6d) read 704 lines not in known-gaps.tsv;
193 of them are the extended-swizzles family (extended-range,
padded 10-bit, packed 16-bit, bfloat and sRGB-twin formats under
every swizzle and op). Each is a site the case's M3 Max, NVIDIA and
llvmpipe rows already hold, and each is the same answer:
- 124 sites read exactly the count and largest difference another
venue's row holds, and 15 more (the sRGB twins' gathers and reads)
differ from it only in the largest word difference (91309 here
against 91311-91315), the same one-step code; their row texts state
the module's own decode and encode arithmetic and the device's
conversions, venue-neutral, under device-pack-conversion, which
every one of these cases announced on RADV, so they are reused as
they stand;
- 20 extended-range linear samples (sl) blend their taps by the
device's FMix, under bicubic-filter-arithmetic, which these cases
declare and which fired on RADV (none of them is among the cases
whose declarations did not all fire); each row now names RADV's
own first mismatch and how far apart it is in value;
- 14 bfloat NaN sites keep the NaN's sign and payload where Metal
answers 0x7fc00000 (RADV's first: ours 0xFFEF0000), under
device-pack-conversion;
- 20 packed 16-bit linear samples are the device's own filter and
widening, under device-sampling and device-texel-conversion
(announced); each row names RADV's first differing element and
that device-sampling's RADV bound (0.548 of a code) is measured on
unpacked formats only.
All are scoped to RADV. CONFORMANCE-COVERAGE.md re-derived.
(cherry picked from commit b255f138531068fea5f2d4edc2be7f2084d24c09)
The whole RADV replay (AMD Radeon RX 7900 XTX, RADV NAVI31, Mesa
26.2.6; potluck job m3-max-4016 at 7470a49e6d) read four lines not in
known-gaps.tsv at the 8-bit sRGB `beyond` sites of
read-write-tier-round-trip-float (768 elements, largest 67649) and
read-write-tier-held (192 elements, largest 64922), for BGRA8 and
RGBA8 alike. They are the device's native sRGB decode, the same
answer the case's llvmpipe and NVIDIA rows hold at the same sites:
- both cases announce srgb-texel-decode on RADV;
- the U32 difference is between f32 bit patterns, not codes: the
round trip's first element is Metal 0x3C840841 (66 / 4095) against
our 0x3C830000; the held read's are Metal 0x3D080881 (136 / 4095)
against our 0x3D0798DA, the transfer of code 51, and 0x3BB80B81
(23 / 4095) against 0x3BB7AD6B, the transfer of code 17;
- RADV stores no sRGB format (its optimal tiling of B8G8R8A8_SRGB and
R8G8B8A8_SRGB lists no STORAGE_IMAGE, read with vulkaninfo, job
m3-max-4052), so the held texture is read through its UNORM alias
and decoded through the device's Pow, as on the other two venues.
The rows are scoped to RADV: the decode is the driver's compiler's,
not one Mesa build's. CONFORMANCE-COVERAGE.md re-derived (2600 rows).
(cherry picked from commit 6efa9157436862f6e6d990f298f53fd84ab11b06)
The 5080 replay of the two-plane YCbCr cases (potluck b5080 entry
replay-replay-nv-ycbcr-072438 at 394b4db3f6) read twenty lines not in
known-gaps.tsv: ycbcr-gathers-{edge,zero,white,repeat} at
case/samples/{420v,x420}/{float,half} and ycbcr-minify-band-{x,y} at
case/samples and case/samples/ends, each a digest Metal's and ours
differ at. The digests are the ones the 5080 answered at 10012a618f.
They are the device's native answers. The 5080's memory is not the
host's, so the runtime binds the texture's image of converted texels
rather than reading the planes in place (lavapipe and MoltenVK read
them in place and match Metal at every one of these sites):
- the 8-bit 420v surface: the device converts the format itself
(ycbcr_device.rs; NVIDIA 615.71.09 enables samplerYcbcrConversion
and its optimal tiling of G8_B8R8_2PLANE_420_UNORM reports
SAMPLED_IMAGE, TRANSFER_DST and MIDPOINT_CHROMA_SAMPLES, read with
vulkaninfo, potluck job m3-max-3911), and samples are its own
filter: announced as ycbcr-filter-not-exact and device-sampling;
- the 10-bit x420 surface and the minify bands: the device does not
convert it (RuntimeDriverDefect::TenBitCodesReadAsWords names
NVIDIA), so the texels are Metal's fixed-point conversion and only
the filter is the device's: announced as device-sampling.
Both notes are suite native notes, which loosen no value
(replay::NATIVE_NOTES), so each site is a row naming its note. The
sites compare by digest, so which lanes moved is not separated, and
the rows say so. CONFORMANCE-COVERAGE.md re-derived.
(cherry picked from commit 05a4e4d3994ef83845ca55417f480aa0aab3606d)
Its product fingerprint follows RUNTIME 1795 (the F2 landing). Blessed on
the M3 (s37-pl.sh censusbless --bless, dv-m3 at 7470a49e6d).
(cherry picked from commit 952421304691dd151fa059ce24a095a9a5132270)
The lvpfix landing (wake option b) narrows the wake at the end of
Scheduler::submit_at_commit to the arm where the committing thread
submitted alone a batch the old path would have left to the scheduler
thread (the buffer groups and goes alone at commit), so every driver keeps
the old path's wake cadence: RADV keeps its plain-commit figures, lavapipe
loses the extra wake. The runtime-sources pin is re-derived.
The wake that ends a committing thread's pass (ff870f6403) came after every such pass. Before the
alone path (4d4e103471), a commit_and_submit's batch of a VkQueue whose batches may wait in a group
was left to the scheduler's thread, which the commit woke; every other batch it submitted itself,
waking nothing. So on a driver whose check finds no merge (lavapipe) the base never woke the thread
for a commit_and_submit, and the unconditional wake added one there: on lavapipe the "seen handler
alone" shape's commit to watch went to p50 14.7-15.0 us, p90 21.9-22.6, against the base's
13.7-13.9 and 16.0-17.3, while the same binary with the wake switched off was at the base
(m3-max-3884, gem10 exclusive).
Now `submit_plain_ready` counts the batches it submitted whose `VkQueue`'s batches may wait in a
group (`Plain::alone`: for a committing thread, those `plain` lets go alone where the group would go
at once, `goes_alone_at_commit`), and a committing pass that left nothing wakes the thread
(`Woken::Commit`) only where that count is above zero: the wake the batch's hand-off to the thread
would have made. Every driver keeps the base's cadence by construction: RADV its wake per such
commit, lavapipe and any driver whose check finds no merge none. Docs: the scheduler module,
`submit_at_commit`, `Plain`, `Woken::Commit`, `CommandBuffer::commit_and_submit`,
`WorkCounts::scheduler_wakes_commit`, the runtime README's item, FAST-PATHS row 37's figures. The
scheduler_wakes test is now
`a_commit_and_submit_wakes_the_sleeping_thread_only_for_a_batch_that_may_group`: once the
submission checks answered, ten commit wakings of ten where the batches may group, none elsewhere.
Verified (m3-max-3922, gem10 exclusive, one job, this diff on 7e57099fa3; base = the three
scheduler files before 4d4e103471; two alternating rounds of both lanes on each driver):
- lavapipe (Mesa 26.2.6): the thread's counts over the lane as the base's, sleeps 4000 and
commit wakings 4000 at both, 2000 submitted at commit; "seen handler alone" commit to watch
p50 13.8-14.1 us, p90 16.9-17.5, against this run's base 12.9-13.2 and 15.9-16.9 (3884's base
13.7-13.9 and 16.0-17.3), the unconditional wake's p90 21.9-22.6 gone; a checked fill's commit to
submission handler p50 12.5-13.4 us against 12.4-13.4.
- RADV (RX 7900 XTX): sleeps 6000 at both, the commit_and_submit batches' wakes counted as a
commit's (commit 6000, host 0) where the base counted them as a host signal's (4000 and 2000);
the plain shapes' commit to watch p50 32.1-47.3 us against 38.9-46.7, the thread's wake p50
4.0-4.5 against 4.1; commit_and_submit's gain kept: a checked fill's commit to submission
handler p50 30.4-32.8 us, p99 48.8-57.8, against 36.2-55.7 and 112.1-198.5, 520 of 520
submitted at commit; another queue's head waiting, p50 24.7-25.0 against 32.7-39.2; the shape in
turn with the plain ones, commit to watch p50 31.9-36.1 against 39.2-50.1.
- Tests alone (commit_and_submit, deferred_calls, scheduler_wakes, each --exact on one thread):
31 of 31 on RADV (the new test: batches grouping, 10 commit wakings of 10) and on lavapipe (not
grouping, 0 of 10). Negative controls: on RADV with 3e9230adf2's scheduler (no wake) the new test
fails with 0 of 10; on lavapipe with 7e57099fa3's (the wake after every pass) it fails with 10.
- Clippy (plain, m2v_gpu, m2v_cpu_icd) and rustdoc with -D warnings pass (m3-max-3923, ms01).
(cherry picked from commit 9184d15a5707ff4e89c00f32af225b66ec40875e)
The replay landing (binary-archive-sources re-record) changes only doc
comments in the runtime (new_binary_archive, the binary archive module,
container::read): a metallib loaded as an archive holds no pipeline of its
functions, as the M3 Max measured (m3-max-3980). No behaviour changes, so
RUNTIME_VERSION stays; the pin follows the sources.
Taken on the oracle (Apple M3 Max, macOS 27.0.1, potluck job
m3-max-3980) at 77bd9d5a0a. Metal makes the archive from the
compute library's own metallib, and a compute pipeline of the
library's kernel listing it with MTLPipelineOptionFailOnBinaryArchiveMiss
is refused; without the bit it is created. So Metal's archive of a
metallib holds no pipeline of the functions in it, which is the
runtime's answer (it loads such a file as an archive holding nothing):
the replay on MoltenVK on the same Mac reads the case exact. Every
other site of the recording is unchanged; the input fingerprint moved
with the two new steps.
The runtime's docs (new_binary_archive, the module's Files bullet,
container::read) now state Metal's measured answer in place of "not
measured". CONFORMANCE-COVERAGE.md re-derives unchanged.
(cherry picked from commit 4d75f740e377f90f0ddc011c9e26efbf5b66a59c)
The case made an archive from a metallib of the compute library and
compared only whether Metal made it. The runtime now loads such a file
as an archive holding nothing (adadb73f7c), an answer no measurement
of Metal's backed. Two creations of the library's own kernel now list
that archive, with MTLPipelineOptionFailOnBinaryArchiveMiss set
(created only if the archive holds the pipeline) and without it.
The recording is re-taken on the M3 Max in the next commit.
(cherry picked from commit 77bd9d5a0a75588c1666d90b44c7ebd0444e65f5)
The amdperf landing (the F2 regressions) changes runtime behaviour: the
submission checks' relay marks and command buffers count apart from the
program's (By::Checks, recorder::unrouted), a per-device DeviceWord lock
guards every loader-served call against MoltenVK's overwrite of the
device's loader word, the checks hold it across whole steps where the word
was found overwritten, the queue-switch and in-place checks' submissions
take it, and the in-place check runs no round on such a device. The
runtime-sources pin is re-derived.
Each round now commits two command buffers on a new queue and waits for them
(a queue waiter then allocates the pool's secondary through the loader), then
makes 64 loads through Device::device_proc_addr, until every check answered.
Verified on the M3 Max at a6bf568281 with this same code as a job-local patch
(job 3969): no fault in ten runs of five devices; with DeviceWord::held taking
no lock, SIGSEGV at 0x1cdc0de in the queue waiter's vkAllocateCommandBuffers in
four runs of five. The loads-only form passed with the lock off too (job 3946).
(cherry picked from commit 2b9ea69531859cf5649ef5d7820f32b4e1668f3a)
On MoltenVK with each activity logged at once, a queue waiter's
vkAllocateCommandBuffers faulted on the magic beside the in-place check (M3 Max,
one run of three, job 3935), where the caller's same work with no check
running did not in 30 000 rounds (job 3946). The check's rounds make their
buffers and textures through the product's paths, which take locks that the
program's threads hold while they make calls the loader serves, so the word
cannot be held across a round as the submission and queue-switch checks hold
it across their steps. On such a device the check now runs no further round:
each class it has not answered is unchecked for the device's life, so its
textures over host pages take the shadow, and nothing is recorded, so a later
device of the driver without the logging checks again.
(cherry picked from commit a6bf568281f7151263b81625aace98070ee0454d)
The first form committed two command buffers a round on a new queue, and on the
M3 Max at cd1a42d6ee its device 2 of one run faulted in a queue waiter's
vkAllocateCommandBuffers (a pool given back as the caller's own command buffer
completed): a race of the caller's own work with MoltenVK's completion handler,
which the checks do not take part in. The caller's thread now makes only
vkGetDeviceProcAddr loads through Device::device_proc_addr, 64 between looks at
the checks, and no GPU work.
(cherry picked from commit 5001edb39e665dfaa8c35de3a9a10e9197c49e97)
The device's other checks that run beside the program on threads of their own
also make MoltenVK name the device, at their submissions and as their work
completes. The queue-switch check now takes the device's loader word inside
each batch's queue lock across the submission and the relay's mark, and, where
the word was found overwritten, across its objects' making and release, its
timestamp read, and from the gate's signal through the wait for the round (no
batch runs before the gate, so none completes while the word is let go between
the round's two submissions). The in-place check's rounds submit through
Device::submit_internal_naming: on the check's thread (in_place::checking) the
word is taken inside the queue lock across the submission and kept through the
wait for its fence where the word was found overwritten. Lock order stays
queue slot, then word.
A new lane test (device_commands) makes five devices with MoltenVK's
activities logged at once and the in-place policy, each over a cache of its own
so that every check runs, and makes the caller's loader-served calls (two
committed command buffers, a device_proc_addr) until all checks answered.
Verification pending on the M3: the test repeated, and a control with the
holds reverted.
(cherry picked from commit cd1a42d6eeb58fdc78e0d4ea50e4e685e52c9b32)
The checks' step hold read only the flag a restore set, so a step that started
before any of the device's own loader-served calls found the word changed went
unheld. DeviceWord::overwritten now also compares the word as a step starts
(a fact of this device, never of its driver), and DeviceWord::step_hold counts
the steps it held under cfg(test). A new device test makes two devices that
each run the checks, one as ever and one with MoltenVK's activities logged at
once, and asserts the word is found overwritten, and steps held, only on the
second on MoltenVK.
in_place_textures' fresh class read fresh_page_buffers_made, which a long
buffer taken from the parked ones does not raise: the device's in-place check
makes and drops a 40 MiB Shared buffer in fresh pages, the class's own length,
so on the M3 Max (import tax Fails) the class's buffer was that parked one and
the test failed (job 3771). The class now skips only where the device's verdict
(Device::fresh_pages_pay) places no long buffer in fresh pages, and asserts that
holds only where held imports tax its submissions or it imports no host memory;
otherwise the texture path check holds the buffer to fresh pages as before.
Verification pending on the M3 (MoltenVK) and lavapipe.
(cherry picked from commit aa7385ade16d8adb671f3a921527528e02d0d783)
On MoltenVK with each activity logged at once, device_commands still faulted in
the scheduler's vkAllocateCommandBuffers with every runtime call that the loader
serves under the word's lock (M3 job 3771): MoltenVK also names the device as a
Metal command buffer completes, and at the checks' import and object calls, not
only at their submissions. A device whose restore found the word changed now
records that (DeviceWord::overwritten), and there the checks hold the lock
across each whole step: making and releasing their objects and imports, and each
submission through the wait for its fence. Lock order stays queue slot then
word: a step that takes the word first takes no queue, and a submission takes
the word inside the slot and keeps it past the slot's release. On every other
driver the word never changes and nothing waits.
The cost half no longer reads the submit_check* fields of WorkCounts: they count
the device's own submission checks, which ran inside pass-bytes-srgb-decode-all-bytes
on the M3 in a fresh workspace (162 calls, one run) and are never a case's work.
The checks' relay marks already count apart from queue_submissions (By::Checks).
Verification pending: M3 device_commands repeated, the lane set as-is, and
cost --check for that case in a fresh workspace.
(cherry picked from commit 5477dcb5a45a96cf93a8fb6748630e70d0cdbc31)
The test holds a device whose in-place check ran with the Metal space held
to the verdicts of one whose check ran with it empty. The Fresh class
checks only where a long buffer takes fresh pages, which follows the
device's submission checks' import tax: where load split all of a
device's tries it is unknown for the device's life, its Fresh class
unchecked, while the other device's answered. Each device is now one
whose checks answered (made again over the same cache, up to 3, where the
tries split; nothing is recorded then), printed with their report.
Suspected cause of development's lavapipe failure at 82360d7175 (um870);
the panic message is still to come.
(cherry picked from commit c7aad8bc1f7164d01f01a91073faed086fccb3e9)
- exits::an_exit_runs_no_handler_beside_a_cpu_device_s_work failed 1 of 3
on um790 lavapipe at 1733ba86c5 (base 57c0e50bbe 3 of 3; job
m3-max-3627): release_the_gate printed hook_ran=1, the hook having run
before it, so the scheduler ended with the work unsubmitted, the marker
stayed unwritten and read_the_marker waited out its 10 s. The case
registers release_the_gate after every runtime call of its own, so that
the hook's last registration comes first; the checks' thread, still
running, made sections that register the hook again (exit_guard.rs,
'Registered again') after it. The case now settles the checks first.
- in_place_textures' sampled test now makes the condition its Fresh class
needs instead of printing past it: its device is one whose submission
checks answered (made again, up to 3 devices, where load split the
import tax's tries, which leaves it unknown and unrecorded), and the
class is skipped only where the device cannot place a long buffer in
fresh pages: its held imports cost its submissions (import tax Holds) or
it imports no host memory. Anywhere else a long buffer outside fresh
pages fails the test.
- device/mod.rs: the host image copy table's loader moves out of the
unsafe block around DeviceWord::restored (clippy: unnecessary unsafe,
macOS job m3-max-3723).
(cherry picked from commit 0358ff7fe4c93009635ff51455be02aa666236c4)
compressed_blits::extended_range_blits_write_metal_s_encoding_under_the_canonical_policy
failed on lavapipe (um790, ebf00511f0) with 3 vkCmdCopyBuffer between its
counts around a blit, which it reads as zeros written. lvpfix's probe
(m3-max-3592) printed for that blit 3 copies, 0 zero fills and 0 fresh-page
buffers, only while the submission checks had not answered, and none once
they had. WorkCounts::commands_recorded counts every command recorded on the
device, whatever the command buffer and thread, and the follows check
(Linux) records exactly three copies of its own, one a submission, through
the device's routed functions: those were the copies, not a zero fill.
The checks now record through the driver's own entry points
(recorder::unrouted, the inverse of recorder::through: the command the
device's slot stored, or the device's command where it took no slot), so
their begin, end, copy and barrier count among none of the device's
commands_recorded or copy sites, as their submissions count among none of
its submissions.
Test: submit_check_device's recall test holds a device that ran the checks
to the cmd_copy_buffer count of the one that recalled them (the follows
check's three made it differ on Linux before). Not yet built.
(cherry picked from commit 35435ee82de9c26b2c031284db21e8e8a13a870b)
At 14e55e0c6c on MoltenVK 1.4.2 (M3 Max) the device_commands lane test,
which logs each MoltenVK activity at once so that MoltenVK names the device
and writes ICD_LOADER_MAGIC over its first word, faulted at 0x1cdc0de in the
loader's vkAllocateCommandBuffers on the scheduler's thread (submit_batch,
hand_out) while the submission checks submitted beside it; it passes at
57c0e50bbe, before the checks (job m3-max-3626). Putting the word back just
before the call is not enough while another of the runtime's threads makes
the driver write it again between the restore and the loader's read.
The device's word is now a DeviceWord: each of the runtime's loader-served
calls (and Device::with_loader_word's call) runs under its lock through
DeviceWord::restored, and the checks' thread holds it across its
vkQueueSubmit calls and the relay's mark after them, taken inside the
queue's lock and let go before the wait for the GPU. The lock is reentrant
for its thread (a caller's device_proc_addr inside its with_loader_word);
with_loader_word's docs now say its call uses none of the runtime's
queues. A driver thread that writes the word on its own (MoltenVK's
completion handlers) stays unguarded, as documented.
in_place_textures: the Fresh class needs a buffer in fresh pages, which
the device's long buffers take only where its submission checks answered
that a held import adds nothing; under the lane's load at 14e55e0c6c they
did not answer, the 40 MiB buffer was a plain one, and its texture read as
inconsistent. The class is now a printed gap where no fresh-page buffer was
made (WorkCounts::fresh_page_buffers_made), with the checks' report.
Not yet built; the M3 lane and the Linux gates come next.
(cherry picked from commit 48c69cf106776d13cf43726cb5d89a5467a31d89)
The M3 lane through MoltenVK at 14e55e0c6c failed 17 tests that pass at the
base before the submission checks (57c0e50bbe: 17 of 17; job m3-max-3626).
Two of the causes are the relay's:
- The checks' uses of the first VkQueue went through the relay as the
runtime's (By::Runtime), so each made a mark counted among the device's
submissions: commit_work and first_use counted 13 to 21 submissions the
program never made. A new By::Checks counts the mark with the checks'
calls (WorkCounts::submit_check_calls), and a failure attributed to it
loses the device as the runtime's own does.
- A use pushed its mark into the log before its vkQueueSubmit, and another
thread's use read the front mark's fence (done_marks), found it signaled,
reset it and gave it back while the call still ran: the layer's
UNASSIGNED-Threading-MultipleThreads-Read for vkWaitForFences and
vkResetFences against m2v-submit-check's vkQueueSubmit, in 12 tests.
A flight is now made once its call returns (Flights::made, for the
batches too): done_marks takes no flight before that, and first_pending
holds an unmade flight pending without reading its fence.
Tests: relay_facts gains a test that each use's mark is counted as its
user's, and one that a logged mark with a signaled fence is taken by no use
until it is made (both fail without the change on a relaying device). Not
yet run; the loader-word crash and the in_place_textures premise come next.
(cherry picked from commit 9627ced1ef673f10febb9f9bef20c5b9a5584cae)
The replay landing (group 11) changes runtime behaviour: a binary archive
keeps a mesh render pipeline's key (BinaryArchive::add_mesh_render_pipeline_functions,
new), a mesh state made fail-on-miss looks it up, and a metallib file loads
as an archive holding nothing. The runtime-sources pin is re-derived.
The test's change closures called a closure local, so they were not
promoted and dropped while the loop still borrowed them (E0716 on
x86 Linux). A fn item lets them stay constant.
Verified: the runtime unit run of binary_archive tests compiles and passes (potluck).
(cherry picked from commit b83f7e220c6aaacad30651fc4117e3e07453e13c)
Two of the conformance ledger's every-venue rows, both of the runtime's
archive surface.
binary-archive-mesh-adder: BinaryArchive had three of Metal's four
pipeline adders. add_mesh_render_pipeline_functions
(addMeshRenderPipelineFunctionsWithDescriptor:error:) makes the state as
new_mesh_render_pipeline_state does with the default options, answering
its error, and keeps the descriptor's archive key (metal_key::mesh). A
mesh creation compiles its pipeline whole and looks in no archive, so
the add keeps no compiled artifact. Under FAIL_ON_BINARY_ARCHIVE_MISS a
mesh creation, which every listed archive missed before, now hits an
archive holding its key (binary_archive::mesh_missing). Which fields
Metal keys a mesh pipeline by is not measured, so the key holds every
field of the descriptor: a creation hits only an add of an equal
descriptor, where Metal's hits too, and one differing in a field Metal
does not key misses here where Metal's may hit, as the add's and
new_mesh_render_pipeline_state's docs say.
binary-archive-sources: Metal takes a metallib as an archive (the case's
M3 Max recording); container::read refused it as no archive of ours. A
file that parses as a metallib (Library::from_metallib, container tags
alone) now loads as an archive holding nothing: its lookups miss and it
serializes as one nothing was added to. What Metal's archive of a
metallib holds is not measured; new_binary_archive's doc says so.
The suite's runtime side answers the mesh add through the new call. The
ledger's two rows go; api_signatures.tsv gains the method, and
METAL-COVERAGE (coverage.tsv) marks the call implemented. Tests: unit
tests the_mesh_key_holds_every_field_and_a_lookup_names_the_mesh_function
and a_metallib_loads_as_an_archive_holding_nothing; lane test
a_mesh_add_is_found_by_its_own_descriptor_and_a_metallib_loads_as_an_
empty_archive (hit, miss before the add and for another color format,
the add's error, serialize and reload, the metallib's miss and nothing
to serialize). Verified by those tests and a whole lavapipe conformance
replay (see the tip report).
(cherry picked from commit adadb73f7c2063341e1dbe54fe887a5ceddf86b7)
Its product fingerprint follows SEMANTICS 1981 and RUNTIME 1787.
Blessed on the M3 (s37-pl.sh censusbless --bless).
(cherry picked from commit 0ad7d2c117882a1f5e1c13eb03d9814339f78423)
Since the input-form shadow (1d1678f459 to d0cc0da26f), a pass that fetches through input
attachments holds an extended-range color's `half` shadow where its functions read and write it
beside them in the pixel interlock (the runtime's `framebuffer_fetch::holds_extended_shadows`:
the interlock, fragment stores, `R16G16B16A16_SFLOAT` as a storage image), which lavapipe has.
Three runtime-lane tests still read "fetches through input attachments" as "holds no shadow",
and failed on lavapipe at 82360d7175 and on: the clear test expected the stored-codes notice at
the one-draw pass between two codes and got none; the earlier-draw test expected the split pass
quiet and it announced; the unblended fetch test held lavapipe to the rule through the codes,
which 1204 of 8192 texels missed (805 of them on the unrounded decode).
The lane now asks the runtime's single-sample rule (`framebuffer_fetch::holds_extended_shadows`)
and keys the three tests' shadow branch on it, so on lavapipe they assert what a shadowed pass
gives: no stored-codes notice at the pass of two draws or onto the clear, one at the split pass
naming the color, and every texel of the unblended fetch on Metal's rule through the shadow. The
unrounded-decode allowance stays for a device that holds no shadow; lavapipe's shadowed pass
needs none. The three tests' docs say so.
Verified (m3-max-3884, gem10, lavapipe, Mesa 26.2.6, one job): at this tree the
extended_range_blends, moved_writers and framebuffer_fetch modules pass 71 of 71, the unblended
fetch with 0 of 8192 texels off Metal's rule and 0 held by the allowance; with the two files from
394b4db3f6 the three tests fail as above (7 of 10 pass). The same at the first cut of this change
(m3-max-3870, ms01).
(cherry picked from commit 9236c928d5d39559915355a6b282c1e83b051ba9)