The table test asked for a displacement past 2^32 where the case's element
2^30 at stride 4 starts exactly at 2^32, which lies past the first 2^32
bytes as the module says (m3-max-13705).
(cherry picked from commit 5e0c5403999b91fb8690a3cadefead29ccf7c17c)
What. The debug-only check of add_draw (every use of a draw is held by
what the instance gathered) looked each use's key up by walking every
gathered buffer key and every gathered image key: O(R) a use, O(R^2) a
draw of R uses. Both lists are kept in key order (ranges_mut and gather
insert by binary search), so holds now finds the key by binary search:
O(R log R) a draw.
Why. A render bundle's frame of 5001 draws, each of about 5006 uses (every
buffer the encoder made resident), spent its time in holds in a debug
build, and runtime_lane::host_step_frames_bundle_both could not finish a
debug frame inside the lane's 60 s wait (5163 of 5800 profile samples in
holds). Builds without debug assertions run no such check.
Test. render::shadows::tests::an_instance_holds_what_it_gathered_among_many
holds the answers over 2000 keys of bytes and images, held and not. The
lane in debug is the measurement (evidence in the report).
(cherry picked from commit c4ffa023786c21048add67fda5b6822a67e97d01)
Does a vertex fetch whose displacement leaves 32 bits read what Metal
reads? attribute-stride-vertex-buffer answers it for the strides an
encoder binds (2^31 + 4: Metal reads zero past the buffer). This case asks
it of a layout's fixed stride, where the element is what the draw names
past 2^30: a vertex start, a base vertex, an index, or a base instance,
over a buffer of 64 bytes, at strides 4 and 12 (the device's
fixed-function input) and 6 (the pulled fetch), per vertex and per
instance, each beside an in-range control. A 32-bit displacement would
wrap each far element back inside the buffer.
The fixture is vertex_fetch_reach. The case is named in
every_case_carries_a_cost_recording's AFTER_THE_LAST_RUN until a whole-set
cost --write runs over it.
(cherry picked from commit 433266f2c471143ec2cb6bb51675a8e1ff4eb1d4)
scripts/regen-air-fixtures/regen-air-fixtures.sh vertex_fetch_reach on the
M3 Max (Apple metal 32023.922, macOS SDK 27.2, LLVM 21.1.8): the .ll and
.air.ll companions and the fixture's TOOLCHAIN line (job m3-max-13698).
(cherry picked from commit 806c9fc05ac1d3697f4bb8595c3c160701ab9498)
The owned MSL source of a rasterization-disabled vertex function whose
one uint attribute a draw fetches at a vertex start, base vertex, index
or base instance past 2^30, writing each vertex's attribute and id sum at
the sum's low two bits so any start writes four apart slots. Its AIR
companions follow from scripts/regen-air-fixtures on the Mac.
(cherry picked from commit ff0745e471ed7c663fdee52a9b030e8350f3b642)
Over-notes (3) (a3a35015b7, SEMANTICS_VERSION 2020): an argument buffer's half-write NaN note follows the families its heap can name, which changes notes in the golden rows of argument-buffer half writes; the bless at df3105c1dc (57172b5c65, b64d68efce) predates it.
Its product fingerprint follows development's versions at b64d68efce. Blessed on the
M3 (s37-pl.sh censusbless --bless).
(cherry picked from commit f228dbe3707f02552a859d16219720cb72ec17bb)
The owned fixture rgbx_sample_half (45e22bbf10, its AIR 4459efdfe7: a compute kernel's half sample through the runtime sampler at slot 0) is new to the engine inventory, the air_input printouts and the golden hashes; SEMANTICS_VERSION 2019 (199f9a99a2) drops the half-texel note of a 32-bit float sample where the profile takes MetalHalfConversion. Found by the Linux core suite at 199f9a99a2 (4 failures, each naming only this fixture).
Its product fingerprint follows development's versions at df3105c1dc. Blessed on the
M3 (s37-pl.sh censusbless --bless).
(cherry picked from commit b87c4aca305c9c4a969d787190c8771f3312eea9)
The owned fixture rgbx_sample_half (45e22bbf10, its AIR 4459efdfe7: a compute kernel's half sample through the runtime sampler at slot 0) is new to the engine inventory, the air_input printouts and the golden hashes; SEMANTICS_VERSION 2019 (199f9a99a2) drops the half-texel note of a 32-bit float sample where the profile takes MetalHalfConversion. Found by the Linux core suite at 199f9a99a2 (4 failures, each naming only this fixture).
Blessed on the M3 (s37-pl.sh bless: bless_engine_inventory, the air_input printouts,
bless_golden_hashes, then the check step).
(cherry picked from commit d6f2be6e8237c1ce0a505dc5b8008b9d0f5f7a10)
What: steelbrain/overnotes 8f6f240554, e4e3d069bd, 2ab67e989a (over-notes (3)): a half write through an
argument buffer notes DeviceNanEncoding only where the heap can name a texture family the device stores
its own way; the heap's NaN family bits and classifier live in bind/heap.rs (the runtime-sources guard).
ARTIFACT_FORMAT_VERSION 500 came with the stack; SEMANTICS 2019 -> 2020 and RUNTIME 2014 -> 2015 here.
Not in pin 36 (ef7af82fe4).
Why: on the M3 argument-buffer writes of 32-bit float and rg11b10f differed in 0 lanes yet announced.
Verified (agent): at 2ab67e989a (13759, gem10): the guard passes with its pin, translator and runtime
suites on lavapipe 5481/5481, half_write_nans and heap_extended_reads lanes 11/11 (lavapipe announces
16f 8, 32f 15, rg11b10f 0 differing), clippy plain / m2v_cpu_icd / m2v_gpu, rustdoc, api-docs. M3 at
f4fab8b4ec: 32f and rg11b10f 0 differ, no longer announced, 16f announced; RADV at bbbf5e6930: 16f 0 differ,
not announced. Here: pin-compute, generators, api-signatures --check clean.
The half write's heap key (SpecKey::HeapNanFamilies) took its value in bind/plan/slots.rs from
lower::texture::nan_family, and lower/texture/mod.rs reaches the translator's internals. As
with the raw-texture bits (6f983470cb), the runtime guard
(candidate::engine::artifact::tests::the_runtime_sources_are_the_committed_ones) requires the
binder's inputs to reach no file that is neither an input nor listed.
The four family bits (NAN_SIXTEEN, NAN_WIDE, NAN_SMALL, NAN_OTHER) and nan_family move to
bind/heap.rs. nan_family reads only metal::format, metal::bicubic, metal::texel_format and
pipeline::sym, which the binder already reaches. The half write's NAN_FAMILIES table (each
family's deviation and property) stays in the lowering and imports the bits. No value or
behaviour changes.
The runtime-sources pin moves with the plan's change; the orchestrator commits it at landing.
(cherry picked from commit 2ab67e989a6408f17fd1ef8548606ea1ca9ca228)
The heap half write now records its NaN note under the families the stage's handles can name
(SpecKey::HeapNanFamilies) and, as the slot path does, requires each family's property where the
profile takes its deviation. On MoltenVK's M3 Max identity that is MetalSmallFloatNans for a half
texel too, not only for a float one, so `a_heap_texel_write_is_the_devices_write` expected the
property only for a float texel and failed for the half one (gem10 m3-max-13561, f4fab8b4ec).
It now expects the property wherever the profile takes the deviation, for either texel.
Verified: the test failed at f4fab8b4ec (moltenvk-m3 float false); the run of the fixed test is
the next potluck job.
(cherry picked from commit e4e3d069bdeadaf72cd5893040019f7591b2f513)
What: a `half` texel's write to a heap element recorded `PrecisionNote::DeviceNanEncoding`
unconditionally ("a heap element may be any format"), so on MoltenVK on the M3 Max a write
through an argument buffer into an RGBA32Float or RG11B10Float texture announced the note
though the store is Metal's there (0 of 25 lanes differ, job 13458's lanes128.log). A new key,
`SpecKey::HeapNanFamilies(Stage)`, gives from the command's heap members the families whose
texels may hold a NaN a `half` write stores (`lower::texture::nan_family`, the same classes
the slot path tests of a bound format: 1 a 16-bit float format, 2 a 32-bit one, 4 a packed
small float one, 8 a float format of none of those; normalized, sRGB, extended-range,
integer and stencil formats none). `half_write_nans` now records the heap write's note under
one clause per family whose deviation the profile lacks (`MetalHalfTexelWrites`,
`MetalNanMoves`, `MetalSmallFloatNans`) and the no-family bit, requiring the property of each
family it takes, as a slot's write does.
Measured, before the change (`runtime_lane::half_write_nans`, argument-buffer writes):
- M3 Max, MoltenVK (job 13458): 16-bit float formats 15 of 25 lanes differ (signalling NaNs
stored 0x7e00); 32-bit float and RG11B10Float 0 differ. The note now holds there only where
the heap can name a 16-bit float texture (or one of no family).
- lavapipe (job 13553): 16-bit 8 differ, 32-bit 15 differ, RG11B10Float 0 differ. lavapipe
takes none of the three deviations, so its note keeps every family's clause.
Runtime: `degrade_bound_values` reads the clause at each draw or dispatch (generic; no
runtime code changed). The lane `half_write_nans` now holds argument-buffer writes to the
measured rule as it holds slot writes: on a device with the family's property, 0 lanes differ
and nothing is announced.
Public API: `SpecKey` gains `HeapNanFamilies(Stage)` (a `#[non_exhaustive]` enum; no
consumer breaks); api_signatures.tsv blessed.
Tests: heap::a_heap_half_write_s_nan_note_follows_the_families_its_command_can_name (the
clauses and required properties on every committed profile with a heap; plan values 1/2/4/0
for R16Float, RGBA32Float, RG11B10Float, RGBA8Unorm and R32Uint residents and the note held
under them).
SEMANTICS_VERSION 2019, ARTIFACT_FORMAT_VERSION 500 (a SpecKey tag; both renumbered at
landing).
(cherry picked from commit 8f6f24055459c9143f3473da8ab60e6532b30676)
What: rgbx_half_samples_are_metals took Metal's answer to be the float channel rounded to
nearest even; it is the channel rounded toward zero, as PrecisionNote::HalfTexelConversion's
docs state Metal rounds a 32-bit float sample. On a profile of MetalSampler and
MetalHalfConversion every lane must be that answer and no half-texel-conversion announced;
elsewhere a lane may be the device's nearest-even rounding too, and the note must be announced.
Why: the M3 run (m3-max-13801) of the fix found 234 of 256 RGBX32Float lanes and 236 of 256
RGBA32Float lanes 'differing', each channel one half ulp toward zero from the nearest-even
model (37344 for 37376, 776.0 for 776.5, -58624 for -58656), the same at the control and the
fix and for nearest and linear samples: the device's sample through Metal's own texture unit
answers Metal's rounding. The control announced half-texel-conversion, the fix none.
Verified: the M3 run of this commit follows.
(cherry picked from commit 72cbbce5f65dcd43908b15c0c3275e3683d164f6)
tests::error_kinds::no_refusal_documented_invalid_is_metal_s_nil failed at 814dea4a7e on every venue
(Linux core, lavapipe, Iris, M3 gpucfg): pipeline/tile.rs's module doc named
`InvalidDescriptor(ColorAttachment)` (from 83e5e06789, MetalAnswer) in a clause that says Metal answers
nil, which the check reads as a runtime `Invalid` refusal of a Metal nil. The clause now names the
translator's `DescriptorError::ColorAttachment` answering `MetalAnswer::NilWithError`, which it is; the
runtime refuses it as `Compile`. Doc only; the pin follows (hash-only, no behaviour change).
Verified: the check's clause rule replayed over the edited module doc finds nothing; the venues rerun.
The test named it through metal2vulkan::device, which does not export it (the M3 build,
m3-max-13785).
(cherry picked from commit c75024f07d762b7b72d1731f743cee44ec730737)
What: half_texels' clause for a sample of a 32-bit float texel (Bound & BicubicTexels::LINEAR,
'Metal rounds toward zero, saturating') is no longer added on a profile that takes
DriverDeviation::MetalHalfConversion; the module then requires VkProperty::MetalHalfConversion
(TexturePlan::storage_properties), as half_texel_nans' NaN clauses do since 782da3582b. Elsewhere
the clause stays. The unmeasured-class and 16-bit normalized clauses are unchanged.
Why: on MoltenVK over the M3 Max a half sample of RGBX32Float through a runtime sampler (the
consumer's rgbx_sample_half) announced half-texel-conversion ('where it binds texture 0 bound as
RGBX32Float') while every value was Metal's. The deviation's measurement covers the half result
of a read, sample and gather of every float word of RGBA32Float (half-texel-nans-rgba32f,
m3-max-13447: every value Metal's), and RGBX32Float is held in that twin.
Test: runtime_lane::rgbx_textures::rgbx_half_samples_are_metals (the previous commit): nearest and
linear runtime samplers, edge and border, shared and private, RGBX32Float and RGBA32Float; on a
profile of MetalSampler and MetalHalfConversion no half-texel-conversion may be announced.
Docs: the note's rustdoc and API.md's catalogue entry. SEMANTICS_VERSION 2019.
Verified: the M3 run of the control and of this commit follows.
(cherry picked from commit bb5662fd6d9bb512bc8d185c85a5d7098b1f2d9d)
What: runtime_lane::rgbx_textures::rgbx_half_samples_are_metals binds RGBX32Float and
RGBA32Float textures (shared and private) at rgbx_sample_half's texture 0 and runtime samplers
at slot 0, nearest and linear, clamped to the edge and to an opaque white border, each lane at
its texel's center (a linear filter weighs that texel alone). Each lane is compared with Metal's
half, the float channel rounded to nearest even (finite channels within half's range), alpha 1
for RGBX. On a profile that takes DriverDeviation::MetalSampler and MetalHalfConversion the
dispatches must announce no half-texel-conversion.
Why: the consumer's rgbx_sample_half (the same kernel shape) announces half-texel-conversion
naming texture 0 bound as RGBX32Float on the M3, where its values are Metal's.
Verified: the M3 run is next; this commit is the control (the note announced).
(cherry picked from commit 58b412336e9ec44b0bba115246c2a0f947a011ad)
What: steelbrain/nofill c11bf907bc: no pooled block of plain memory is filled through an exportable
allocation first; Memory's fill, its probe and backoff, and WorkCounts.plain_block_fills_saved /
_missed / _skipped are gone; DriverFact::PlainAllocationsHoldSubmissions stays as a fact.
Why: the consumer's 780M scroll gate (hard: no more >= 100 ms rAF gaps than pin 30). Its traces at
pin 35 put all 11 gaps inside one ready-thread making's direct compaction (46-164 ms); 6 of pin 35's 9
in a fill making (create exportable, free, create plain), most compaction between the free and the
create; fills mostly missed (saved/missed per scroll 1/7, 7/20, 2/7, 2/8). Its no-fill probe on pin 33:
0 gaps against pin 30's 6 and pin 33's 11.
Verified here: pin-compute, generators, api-signatures --check clean. The agent's clippy/rustdoc/
lavapipe memory tests and our pin legs follow on this tip. RUNTIME_VERSION 2013 -> 2014.
What: remove "Blocks filled exportable first". The device computes no fill types;
Memory::fill_plain_blocks and its state, Fills, the FILL_* constants, the fill branch of
BlockMaker::make_as and BlockMaker::fill_first, Block::filled and Fill go, with the
public counters WorkCounts::plain_block_fills_saved, plain_block_fills_missed and
plain_block_fills_skipped (api_signatures.tsv re-blessed), tests::block_fills, the Fills
unit test, the fill parts of memory/making_parts.rs and the reclaim bench's unfilled arms
and fill printouts. DriverFact::PlainAllocationsHoldSubmissions stays as a measured fact;
its docs say the runtime makes such blocks by their own allocation on every driver.
docs/FAST-PATHS.md drops the fill's row; the plain-makings-hold-submissions known gap says
the runtime does not fill first and why.
Why: on the Radeon 780M most fills miss under memory pressure (saved/missed per scroll
1/7, 7/20, 2/7, 2/8), so the kernel compacts order-9 pages for both the fill and the
block. The consumer's scroll gate traces: all 11 rAF gaps of 100 ms or more overlap one
ready-thread direct-compaction episode of 46-164 ms inside one block making; on pin 35, 6
of 9 gaps sit in a fill making (68M+68M makes, 134-162 ms of compaction), most of it
between the fill's free and the block's create. Their no-fill A/B (fill_plain_blocks(0)):
0 gaps of 100 ms or more, against pin 30's 6 and pin 33's 11.
Verified here: scripts/api-signatures/signatures.py --check passes after --bless (only the
three counters left the table); refusal_surface.py regenerated docs/REFUSALS.md unchanged;
cargo fmt --all. Builds, clippy, rustdoc and the runtime's memory tests run on potluck
after this commit.
(cherry picked from commit c11bf907bced149e81301c6319d3fab1d615061c)
What:
- metalanswer (steelbrain/metalanswer-dev cd17476e5a, three commits): DescriptorError::ColorAttachment
{ index, metal: MetalAnswer } with MetalAnswer { NilWithError, EndsProcess } (non_exhaustive), set at
all 17 sites from plain Metal measured on the M3 (probes/color_attachment_answers.m, job 13738):
EndsProcess for a blend into a bfloat attachment and alpha to coverage over an integer attachment 0;
NilWithError (code 3) for an output or color input of the wrong numeric class, fewer output components
than channels, a second-source blend missing an output, a color input with no attachment, a tile
imageblock member with no format. A compiled tile function under another attachment format has no
Metal counterpart and answers EndsProcess.
- unknowns (steelbrain/overnotes 0639597d96..4be5591242, the first three): HELD and FILTERED move to
bind/heap.rs so the binding plan reaches nothing outside the pin's inputs (the runtime-sources guard
failed at 7339729f27); the RADV heap sample lane takes a dispatch's own announcements; the 152 test
counts the pooled blocks less the buffers' own.
Why: reims's pin 35 Mac leg: its layer must end only where Metal ends the process; development's
runtime-sources guard and the RADV lane failed.
Verified: metalanswer at a3875e47d1 (same three commits on pin 35): msi clippy -D warnings, rustdoc
-D warnings, 224/224 touched metal2vulkan tests, validation builds (13752). unknowns at 4be5591242
(13709): the guard passes with the pin, translator tests 141/141, lavapipe heap_extended_reads 10/10,
the 152 test 2/2 and its control fails; clippy plain and m2v_cpu_icd. Here: refusal surface,
coverage generators, api-signatures --check clean. RUNTIME_VERSION 2012 -> 2013.
A layer that answers as Metal does needs to know, per refused pipeline, whether Metal returns nil
with an NSError or its descriptor validation asserts and ends the process. ColorAttachment now
carries `metal: MetalAnswer` (NilWithError | EndsProcess), set at each of its 17 sites from plain
Metal's answer on an Apple M3 Max under macOS 27.0.1 (probes/color_attachment_answers.m, no
MTL_DEBUG_LAYER, job m3-max-13738):
- EndsProcess (SIGABRT, "Render Pipeline Descriptor Validation"): blending on a bfloat attachment,
with a function, a fetching function or none ("... MTLPixelFormatRGBA16Bfloat for this render
target is not blendable."); alpha to coverage over an integer attachment 0, rasterizing or not
("... alphaToCoverageEnabled requires a float/unorm pixel format ..."). The link's doc said the
second was unmeasured with rasterization off; it is measured now.
- NilWithError (code 3, domain AGXMetalG15X_M1): an output of another numeric class (half4, float4
and int4 into RGBA8Uint; uint4 into RGBA8Unorm and RGBA8Sint; a fetching uint4 of RGBA8Unorm);
a color input of another class (uint4 of RGBA8Unorm, BGR10_XR, A8Unorm); fewer output components
than channels (with and without fetch); a blend of the second source without the second output,
or without the first (with and without fetch); a color input without an attachment; a tile
function's imageblock member without a format ("Invalid pixel format for render target 1").
- A `Compiled` tile function compiled under another format than the descriptor's has no Metal
counterpart (Metal compiles the function for its pipeline) and answers EndsProcess, the answer
of an unmeasured case; under no format it answers Metal's NilWithError.
Public API: the new `error::MetalAnswer` and the changed variant are in api_signatures.tsv and the
api_surface table. Refusals are not serialized in any cache, and translation output is unchanged,
so neither ARTIFACT_FORMAT_VERSION nor SEMANTICS_VERSION moves. docs/REFUSALS.md regenerates
unchanged (descriptor errors are not in it). docs/API.md states the two answers.
Tests: each existing test of a ColorAttachment refusal now names its answer (bfloat blends,
alpha to coverage, a tile function compiled for other formats: EndsProcess; output class and
components, the second source, unattached inputs, unformatted tile members: NilWithError), and a
new unit test holds the storage form's class refusal to NilWithError for reads and writes.
(cherry picked from commit cd17476e5a4ae2b9fbf8118453ad089691adaba2)
A fragment function that reads and writes one attachment reads it as its output's type (MSL
refuses otherwise), and the integer reads of a float, BGR10_XR and A8Unorm attachment 0 write
attachment 1. The first run on the M3 stopped at MSL for these four shapes.
Verified: clang -fsyntax-only here; the M3 run follows.
(cherry picked from commit b2d74a0fdc8adc606f7fb76e8329617f13f05395)
One shape a process (an assertion ends it): bfloat blends, a blend of the second source
without the second or first output, outputs and fetches of the wrong class or of fewer
components, alpha to coverage over an integer attachment, a color input without its attachment,
and tile functions whose imageblock reaches an unformatted or wrong-class attachment, with
controls. It prints CREATED, or NIL with the NSError's domain, code and text; a process that
ends shows its exit status and stderr to the caller.
Verified: clang -fsyntax-only here; the M3 run follows.
(cherry picked from commit a203a43dee2ed4fa257c1772e96935058ad6d655)
acfb2e8d70 counted, beside the buffers made, the runtime's pooled blocks live at the refusal that
were not live before the object (memory_blocks_live + empty_memory_blocks_live). On lavapipe
that read 2 though the device held only its limit of 5: 2 chunks, 1 dedicated block and 2 pooled
blocks, the pooled ones each holding one of the test's buffers (m3-max-13682 at acfb2e8d70:
pooled_memory_blocks_made 0 -> 2, dedicated_memory_blocks_live 0 -> 1, memory_blocks_live 0 -> 2,
3 buffers made). Lavapipe's pools take these buffers, where the M3 Max and the 780M give each a
dedicated block. So the count could hide up to two slots there.
The count is now the pooled blocks made from just before the object on and not freed since (one
vkAllocateMemory each), less one for each buffer made that lies in a pool rather than in a
dedicated block. That is at most the runtime's own blocks live at the refusal, never one of the
buffers'. From the counts already measured: lavapipe 2 - (3 - 1) = 0, the M3 Max 1 - (2 - 2) =
1, each with the room of 3 met. Without the give-back wait it is 0 with 0 buffers made.
Verified: the next potluck jobs (lavapipe, the M3 Max, the 780M, and the control).
(cherry picked from commit 4be5591242ccedb3023ae3ff8a65bf1ede1275e8)
bind/plan/slots.rs gives SpecKey::HeapRawTextures' value from the command's heap members, and
since the filter note's change it named lower::texture::heap_raw::HELD and FILTERED. heap_raw.rs
reaches the translator's internals (select, the SPIR-V builder, the arithmetic), so the runtime
guard found a runtime input reaching a file that is neither an input nor listed
(candidate::engine::artifact::tests::the_runtime_sources_are_the_committed_ones on development
at 7339729f27: [(metal2vulkan/src/lower/texture/heap_raw.rs, {metal2vulkan/src/bind/plan/slots.rs})]).
The two bits are the binder's key, so they move to bind/heap.rs beside heap_raw_form, which
decides what a heap holds by its raw texels. The plan (slots.rs), the decode's note
(lower/texture/heap_raw.rs) and the sample filter's note (lower/sampler/select.rs) import them
from there. No value or behaviour changes.
The runtime-sources pin moves (bind/heap.rs and bind/plan/slots.rs are inputs); the orchestrator
commits it at landing.
(cherry picked from commit 6f983470cb76231a636d3a15a775d87eb467dff9)
heap_extended_samples_are_the_slot_s failed on the Radeon 780M (RADV PHOENIX, m3-max-13620 at
bbbf5e6930): the "linear edge" constexpr sample of BGRA10XR and BGR10XR through a heap differed
from the slot's in 95 and 115 of 196 lanes, unexplained, while "linear repeat" was explained.
Since the heap sample's filter note follows the textures the command's heap can name
(SpecKey::HeapRawTextures' FILTERED bit), a constexpr linear sample's note is announced at the
dispatch that binds such a texture, no longer as the pipeline is made. The lane gathered the
announcements only after each case's pipelines were made, so the first linear case's own
dispatches had not been seen when its lanes were classified; later cases saw them. The M3 and
lavapipe passed because their heap and slot samples agree in every lane there.
The lane now takes the notices of each heap dispatch before it classifies that dispatch's
lanes, and decides the narrowing and the blend from them.
Verified: the 780M lane run on this tip is the next potluck job.
(cherry picked from commit fad1282cc623d4c9e980c0d75b8b63b0de8e7387)
What: anvpasses (steelbrain/anvpasses 67f1d8710d, the eight commits before this one).
- A render pass beside a depth/stencil attachment (Load/Clear and Store, not memoryless, not
resolved, single-sample, one layer, GENERAL; no separate, stand-in, over-buffer or NaN-clear
form) records its first instance inline in the encoder's primary: one Vulkan command buffer
a pass, not a primary and a secondary.
- Encoders past the first PLANNED_BARRIERS (2,048) of a command buffer begin their own command
buffer with a barrier from everything before, and submit_batch records no barrier command
buffer for them. New WorkCounts::encoders_barriered_at_open.
- docs/FAST-PATHS.md's ANV binding-table gap rewritten with the numbers.
RUNTIME_VERSION 2011 -> 2012; the pin follows.
Why: on ANV below Xe-HP each command buffer that records a binding table holds a 64 KiB
block of a 1 GiB pool (16,384 at once); one Metal command buffer of passes beside a cleared
depth failed OutOfMemory at pass 8,087, and with the inline change alone segfaulted in ANV at
submission (the per-encoder barrier command buffers took blocks too).
Verified (anvpasses, release, ms01 Iris, Mesa 26.2.6): tests::many_passes 10,000 passes:
base OutOfMemory at pass 8,087 (13643), inline only segfault at submit (13663), full fix
passes (13726: 12,049 command buffers, 7,953 encoders barriered at open). Per-pass median,
1,000-pass command buffers, base -> fix: Iris CPU 28.5 -> 21.9 us, GPU 12.6 -> 10.1 us
(side 64); 780M CPU 27.1 -> 25.1, GPU 17.3 -> 15.3; M3 within noise. 780M and M3 pass the
regression test (base fails on the 780M). Linux lint clean at 86c19980e4 (13707). Suites at the
tip still running on the branch. Here: pin-compute, generators unchanged, api-signatures
--check clean. Owed: cost records move (inline passes, barrier command buffers).
The known gap now counts command buffers begun (barrier command buffers took blocks too), names
the passes that still take a secondary, the 2,048 planned barrier command buffers a batch begins
at most, and what ms01's Iris Xe (Mesa 26.2.6) measured: 10,000 passes beside a cleared depth in
one command buffer run in 12,049 command buffers (tests::many_passes); passes inline encode to
16,173; passes with a secondary fail at the end of the 8,087th; with the targets' first clears in
the submission 14,000 passes ran and 14,300 crashed in the driver, recorded as the open part.
Verified: the numbers are the probe runs' (jobs m3-max-13726, -13731, -13643).
(cherry picked from commit 67f1d8710d78adf21768002c82a86e739721e271)
Fix forward of ad3eae9796, which did not compile: PLANNED_BARRIERS sat between SpareCores and
its #[derive(Default)], and the resource state encoder's Recorded lacked the barriered field
(None: it opens no EncoderCore).
Verified: cargo fmt; the gem10 build follows.
(cherry picked from commit 86c19980e4c630b9929193eda0eb1f558fafa770)
On ANV below Xe-HP each Vulkan command buffer begun holds a 64 KiB block of the device's 1 GiB
binding-table pool until it is begun again, reset or freed: 16,384 at most. With the passes
inline (one command buffer a pass), a batch still began a command buffer of barriers before
each encoder that needed one, two a pass: on ms01's Iris Xe (Mesa 26.2.6) one command buffer
of 8,000 passes beside a cleared depth ran, and one of 8,300 encoded and crashed in the driver
at its submission, recording the targets' first clears past the pool (a blorp binding table
written through no block; backtrace from the core: texture::first_move::Taken::record from
submit_batch on the scheduler thread). With the targets' first moves taken earlier, 10,000 and
16,000 passes ran, each begun 15,872 barrier command buffers past the pool: barrier command
buffers do take blocks, and a clear recorded past them crashes.
So the encoders past the first PLANNED_BARRIERS (2,048) of a command buffer begin their own
VkCommandBuffer with Barrier::everything() at the open (not marked recorded, so a pass may
still hold that command buffer), and Recorded carries that command buffer; submit_batch skips
the command buffer of barriers it planned before a part whose first VkCommandBuffer is still
that one, unless that slot also carries the completed work's barrier, the start timestamp or a
held depth's move. The barrier from everything holds any barrier the tracker plans before the
encoder (all commands before it on the queue, all memory writes, to all after), and the
tracker's state stays as if its plan were recorded. A batch begins at most 2,048 command
buffers for barriers; past 2,048 encoders in one command buffer each encoder is ordered after
all before it, where the tracker might have let independent ones overlap. 2,048 keeps twice the
706 passes of linear_runs' split frame planned.
New WorkCounts field: encoders_barriered_at_open (api_signatures.tsv blessed).
tests::many_passes asserts 7,953 of its 10,001 encoders barriered at the open and at most
PASSES + 2,048 + 64 command buffers begun.
Verified: cargo fmt; device runs follow.
(cherry picked from commit ad3eae979696613a7c71e39c3092c58b0fb19f1e)
A depth/stencil texture over a buffer's bytes (a texture buffer, or a heap's depth or stencil
texture held as a shadow of the heap's bytes, texture/heap.rs) has copies the end records
around the pass, so its first instance is not recorded inline: the pass counts under
passes_not_inline_attachments, as the other depth/stencil kinds the end changes. Docs of the
reason and the module say so.
Verified: cargo fmt; compiled in the suite builds that follow.
(cherry picked from commit e997a4fa59855872f153b3aa69eda6d1eefd9cc2)
Device tests under the validation layer of the runtime's depth/stencil rule for a pass's first
instance recorded inline (render/inline_first.rs, depth_stencil_opens):
- a_pass_beside_a_depth_or_stencil_records_inline_where_its_attachment_allows: a Depth32Float
cleared or loaded and stored, beside a color or alone, and the depth of a Depth32Float_Stencil8
named alone (its stencil kept) record inline; a depth loaded DontCare and one stored DontCare
count their actions (a DontCare load, a store), a memoryless depth its memoryless, a depth and a
stencil of separate textures its attachments.
- a_pass_recorded_inline_beside_its_depth_tests_and_writes_it: over a depth cleared to 0.5 under
Less with writes, of draws at 0.75, 0.25 and 0.4 only the one at 0.25 draws; the depth is left
at 0.25, the color at that draw's.
Run in the commits after this one.
(cherry picked from commit 35aaff580688f5306ace207c102e92dcb3330e4b)
A command buffer of passes that each write the same attachments takes a barrier before each
encoder, which the scheduler records into a command buffer of barriers as the batch is submitted
(kept_barriers.rs keeps at most 128 of one list): on the M3 Max at the base, 10,000 such passes
began 30,003 command buffers, 10,001 of them secondaries and about 10,000 of barriers. The test
now holds the command buffers its encoders began (encoder_command_buffers_begun) to one a pass,
and prints the barriers' apart.
(cherry picked from commit 11bea6de133f07ead27b75c1e53995f3ff959c34)
A render pass with a depth or stencil attachment recorded its draws into a secondary command
buffer that its primary executed at its end, whatever the attachment: a pass held two Vulkan
command buffers until its command buffer completed. On ANV below Xe-HP each command buffer that
records a binding table holds a 64 KiB block of the device's 1 GiB binding-table pool until it
is begun again, reset or freed, so one Metal command buffer of passes each beside a cleared depth
failed with OutOfMemory(Device) at the end of its 8,087th pass on ms01's Iris Xe, where Metal runs
it; and a secondary costs GPU time and recording CPU per pass on every driver measured.
opens_inline now lets a pass with a depth/stencil attachment record its first instance inline
in the encoder's own primary (render/inline_first.rs) where nothing the pass's end decides can
change that instance's depth/stencil attachment, its operations or its clear values
(depth_stencil_opens): the texture's own image (no separate depth and stencil textures' scratch,
no stand-in, not the hidden depth), held in GENERAL (render_target::depth_layout; a
single-sampled one is), no memoryless aspect, no resolve, each named aspect loaded Load or Clear
over the reach the instance renders over and stored Store (not late), no NaN depth clear written
apart, and a kept aspect (a combined format's unnamed one, loaded and stored unchanged) only
where the instance renders over the render area alone. A pass of no color but memoryless ones
takes its reach from its depth/stencil attachment's first aspect where it clears it. The first
draw's checks stand as before: no shader-side stencil or depth test, depth stand-in, feedback,
stand-in arriving with it.
No new count: the depth/stencil reasons count under the existing passes_not_inline_layouts,
_memoryless, _actions (and kin) and _attachments, whose docs now name them.
Verified in the commits after this one.
(cherry picked from commit 2f363278957226c5cb5a41636698cf8504a3da17)
One Metal command buffer of render passes, each loading and storing a color target and blending
a rectangle over it beside a Depth32Float depth attachment it clears and stores (the consumer's
checked frames' shape), failed with OutOfMemory(Device) at the end of its 8,087th pass on ms01's
Iris Xe: on ANV below Xe-HP each Vulkan command buffer that records a binding table holds a
64 KiB block of the device's 1 GiB binding-table pool until it is begun again, reset or freed,
and each such pass took two (its primary and the secondary of its draws). Metal runs it.
tests::many_passes::one_command_buffer_of_ten_thousand_passes_beside_a_cleared_depth_runs runs
one command buffer of a clear and 10,000 such passes, and holds it to the texels the same passes
leave across command buffers of 500, to no secondary begun, every pass inline, and at most one
command buffer begun a pass (64 of slack). It fails at this commit on every device (the passes
record their draws in secondaries) and, on the Iris Xe, with the OutOfMemory. The fix follows.
(cherry picked from commit 934970484d4e5087f674c6a6dc3f49293eddc68c)
What: triage-b (steelbrain/triage-b 5ad6c3afa0, the nine commits before this one).
- Pipeline budget (row 399): a pool piece that lends its turn for a wait took it back at the
rank it was given, and a commit's hasten while it ran was dropped (Place::hasten finds no
started piece), so it waited ranked Ahead behind program makings until AGE (4 s). The place
and the queued entry now share an Asked cell; Again takes the turn back at the more urgent
rank and Turn::drop gives back the kind now held.
- Queue sharing (row 143): a batch whose VkQueue waits on the GPU for another VkQueue's
pending work records its submission time, and its command buffer marks the queue long past
2 ms from then to its GPU end. The FAST-PATHS row, the QueueSharing notice and API.md follow.
- Cost tooling: a lone measurement takes a held ceiling again, so a stale one comes down; a
release build's cost runs name their venue apart; the two magnified render-then-sample
records read 2 made, 2 taken, and WASTED 593 / the draws ceiling 29.
- Tests: the bundle_first_use stream, the events lane's per-round times, the queue-sharing
device test with a plain event.
RUNTIME_VERSION 2010 -> 2011; the pin follows.
Verified (triage-b): on gem10 clippy -D warnings plain / m2v_gpu / m2v_cpu_icd and rustdoc;
runtime tests 62 (budget, pool, event_timeline, degradation_catalogue, queue_share),
fast_paths 23, conformance 1040. 5080 (t entry): before the fix the compositor's p99 41.06 ms
with 3776 of 3925 samples over 10 ms and the waiter never going long; after, p99 2.24 ms, 0 of
9603 over 10 ms, the waiter long at its second command buffer; the budget unit test
a_piece_hastened_while_it_lends_its_turn_takes_one_again_at_its_new_rank. The 4 s bundle wait
was not reproduced on the 780M or the 5080 (cause from the code). Here: pin-compute,
generators unchanged, api-signatures --check clean.
Re-measured alone on the M3 Max with the fixed lone fold (2e01ecf956), debug binary as the records
are blessed, 8 runs each (potluck job m3-max-13597 at e455eed9ac): render-then-sample-magnified-
nearest and -linear now record creation_pipelines_made and variant_pipelines_made at bound and
ceiling 2 (were 3, the stale ceiling of a lone run before smallfix2's ab281552db), and
addressable_buffers_made at 1 (was 2, the same stale-ceiling shape). No other field moved.
The census over the committed recordings now reads 1,483 made, 958 taken, 525 by none; the draws
class 892 made, 863 taken, 29 by none (96.7%). So WASTED goes from 595 to 593 and the draws class's
ceiling from 31 to 29, and the paragraph that held the ceiling at 31 until these bounds came down
is replaced by what the two rows read now. The figures in the module's census paragraphs follow
(260 rows take every pipeline they make, 21 some).
Verified: the census figures by a script over the recordings directory, which reproduces the
other three classes' committed figures exactly; the conformance unit tests run on gem10 next.
(cherry picked from commit 5ad6c3afa0cde95a3b6aec5582ad5a24f75bd072)
A pool's piece that waits holding no turn (its twin's making in the air, flight.rs; another's
making of a library it links, libraries.rs) gives its turn back and takes one again after the wait
(budget::without_turn, Again). It took it again at the rank the turn was given at. A commit that
came to wait for the piece meanwhile hastens it through its place (Place::hasten), but a started
piece is no longer in its pool's queue, so the rise was dropped: the piece, still ranked Ahead,
waited for an ahead turn behind every program's making until it aged, AGE = 4 s, with the
committed command buffer waiting for it. That is the shape of the 4.1 to 4.3 s a bundles frame's
first command buffer waited on the consumer's host (expected cause; the 780M run of the bundle
streams, which have no competing makings, waited for nothing).
Now a piece's place and its queued entry share an Asked cell: Place::hasten raises it whether the
piece waits or runs, the pool hands it with the piece to the turn's Held, and Again takes the turn
again at the more urgent of the given rank and the asked one, keeping the cell for a later lend. A
turn taken again at a risen rank may be of the other kind (a turn past the ahead ones where an
ahead turn was lent), so Turn::drop gives back the kind the thread's note says it holds.
Test: budget::tests::a_piece_hastened_while_it_lends_its_turn_takes_one_again_at_its_new_rank (a
2-turn budget, one ahead, a 600 s age: the lending piece, hastened to Committed while a piece
nothing waits for holds the ahead turn, finishes within 30 s; before this change it waited for that
ahead turn), and the ahead turn comes back as one.
(cherry picked from commit c2148eac09006c84ea4d746330f176a5d5b2dc76)
The Adaptive long mark read a command buffer's own GPU timestamps alone. A batch that waits on the
GPU for another VkQueue's work (an MTLEvent's signal pending there, the tracker's wait for another
VkQueue's writes, new resources' first work there) writes its start timestamp only once that wait
is met, so a queue of short command buffers, each waiting for another queue's 30 ms one, never went
long: it kept sharing its VkQueue, and every command buffer the queues sharing it committed behind
each wait waited for the other queue's whole long command buffer.
Now submit_batch notes, at the first batch whose VkQueue it hands such a wait (an event wait whose
signal is pending on another VkQueue or is the caller's, EventTimeline::waits_across; a tracker or
first-work wait on another VkQueue), the host time its submission was called (Times::waited_across).
place_gpu_times marks the queue long also where more than LONG_HEAD ran from then to the command
buffer's GPU end, placed in the host's time. A command buffer with no such wait is timed as before,
by its own timestamps, so the host-view false marks the module docs describe stay out.
The device test a_compositor_beside_a_queue_waiting_on_the_gpu_for_long_work_keeps_its_latency now
also asserts that the waiting queue goes long (WorkCounts::queues_gone_long >= 2). The QueueSharing
notice's cost, docs/API.md's catalogue entry and the FAST-PATHS row name the wait.
Verified: cargo fmt; unit test a_wait_crosses_queues_where_its_signal_is_pending_on_another; the
build, clippy and the 5080 device run are dispatched.
(cherry picked from commit 6391625634472fb158b6477dfad36340956ae2dd)
The test of a compositor beside a queue waiting on the GPU used a shared event, whose wait the
scheduler holds on the host until the value is reached (event_timeline.rs): no VkQueue ever held
that wait, so the test could not show what it is for. A plain MTLEvent's wait is submitted once
its signal is, chained on the waiter's VkQueue, which is the GPU-side wait the long mark has to
see.
Verified: cargo fmt; the device run is queued on the 5080.
(cherry picked from commit 4e1a4124242b3a64eee4e1acc2514605f7249c13)
What: cost::venue names the venue a cost run is held to and writes: the device's name in a
build with debug assertions, '<device>, release build' otherwise. replay's cost gate and
cost_on_under take it. A release run is so Unmeasured against the committed records (no record
of its venue), and a release --write keeps a record of its own beside the debug one. The
README's cost section says so.
Why: the records did not say which build measured them, and the two builds' counts differ: a
debug build takes the whole check at a kept draw's first and every second rebound hit
(render/draw_again.rs, render/draw_again/rebound.rs), so a release replay of
point-viewport-coverage read 3 rebinds against the debug record's 1 and failed as Over (the
11-07 M3 'regression' that was the profile). Every committed record was measured by the debug
binary (each stack's rebless runs target/debug/conformance cost --write), so the debug name
keeps them valid unchanged and no recording file moves.
Verified: a_release_build_s_cost_runs_name_their_venue_apart (both names, and a debug record
judging the debug venue Over and the release venue Unmeasured). Runs on Linux follow.
(cherry picked from commit e455eed9ac8894efb6ac9609d8fd24058874b124)
What: fold_alone_into re-takes each monotone count's ceiling from the lone run: where the held
record carries a ceiling its bound does not exceed (the whole-set write raised the bound to it,
carrying_the_contrast_of), the set read at most it and, by the count's MONOTONE direction, at
most the lone reading. The ceiling and its bound come down to the lone reading (no lower than a
set reading the bound shows above the ceiling), and apart_from no longer calls such a count
composed. A lone run reading above the ceiling raises it as before.
Why: the re-bless at 24ae90feb3 (development 85612a40d0) kept
render-then-sample-magnified-nearest's and -linear's creation_pipelines_made and
variant_pipelines_made at bounds and ceilings of 3, though both shapes read 2 since
ab281552db (the predicted plain half arm in the general form). Not a path difference: the
whole-set write read 2 and carried the earlier lone run's ceiling of 3 into the bound, and the
lone fold only ever raised a ceiling, so it compared the lone 2 against the carried 3 and wrote
it to composed as a disagreement. The ceiling could never come down.
Verified: the new test a_lone_run_reading_below_a_held_ceiling_lowers_it replays that order
(set 2 / lone 3, then set 2 carried, then lone 2) and fails at the parent (bound 3, composed 2);
the existing ceiling and round-trip tests are untouched. Runs on Linux follow.
(cherry picked from commit 2e01ecf956bc3959af0c2b3cc8089179a14a7999)
What: isolation() takes a waiting mode: the application's long command buffers each signal a
shared event's next value, and a third queue commits a small fill waiting for that value once
each long one is committed. The new device test asserts the compositor's latency beside it
(p99 under 5 ms, at most one stall over 10 ms), as beside a long queue alone.
Why: under Adaptive sharing the long mark reads a command buffer's own GPU span. The scheduler
submits an event wait once its signal is submitted, so the wait runs on the GPU and holds every
later batch of its VkQueue until the long work ends, yet its own span is short: a queue sharing
that VkQueue may stall as long, unmarked (the 11-03 triage reasoned it; never measured).
Verified: build only here; the 5080 run decides it.
(cherry picked from commit dbdfc7d8fc1f911ee1d936ed661e926fc62fc52e)
What: a_device_dropped_after_a_wait_is_gone_when_the_drop_returns prints DEVICE-MAKE-DROP per
round: the first device's making, its case run, its drop, and the next device's making and
drop, in ms.
Why: on the RTX 5080 the test took 60 to 360 s (11-08), and device making and dropping there
were measured load-sensitive (11-05: 21.8-26.1 s wall on 1.3-1.8 s CPU under load). The
per-step times say which step holds it, quiet and under load.
Verified: build only here; the runs follow.
(cherry picked from commit 3fd3dc5cf04f7c8cee306a3f819dd8155acf90bb)
What: a stream of the render-bundle frames whose commands name, each frame, a state of their
own made before the first frame and drawn by no earlier command, so every frame's command
buffer is the first to draw with its state and the commit settles its pipelines; each frame
also prints its commit to its completion.
Why: the consumer's renderBundles page saw each frame's first command buffer wait 4.1-4.3 s
(5080, pin 14), which fits the making budget's AGE of 4 s: a making something waits for that
nothing hastened. This is the runtime shape of that page's frames, to decide it on the 5080
and the 780M with METAL2VULKAN_LOG_PIPELINES=1.
Verified: build only here; the runs follow.
(cherry picked from commit bdbc19757f0c0cd58ca0b853c5ba797ec73e8b98)
scheduler/mod.rs gains Scheduler::asleep under cfg(test) (346f32bad3, triage-a row 748), so
scheduler_wakes' tests wait for the scheduler's thread to sleep rather than sleeping 5 ms.
No runtime behaviour: RUNTIME_VERSION stays 2010; the pin follows the file.
Verified by triage-a on the 780M PHOENIX (13644): with a scratch hold of 10 ms after each
pass, the old 5 ms wait failed 5/5 and the new wait passed 5/5; without it both passed 5/5;
the module alone 10/10. Here: pin-compute over the tree.
Three scheduler_wakes tests need the scheduler's thread asleep before a
commit: each burst's commits, each commit_and_submit, and the commit under the
held lock. Each slept 5 ms and assumed the thread was asleep by then. The
thread can outlast that, because the last commit's waking and pass run on a
thread that load beside the test can hold off the CPU.
- A commit_and_submit that finds the thread making a pass leaves its batch to
the thread, so batches submitted at commit fall short of the commits.
- One that finds the thread awake between passes wakes nothing, because the
notify is spared, so the commit wakings fall short.
The PHOENIX sighting (bug 748, "scheduler_wakes 9/10") has the first shape.
Scheduler::asleep, compiled only under the device-test cfgs, reads the thread's
sleep state under the lock of its sleep. It is true when the thread sleeps on
its condition variable or on the GPU and no waker has woken it since. The tests
wait for it, bounded by BOUND, before each commit that needs a sleeping thread.
No runtime behaviour changes. The runtime-sources pin moves because
scheduler/mod.rs gains the test-only accessor. RUNTIME_VERSION is left to the
pin cut.
Verified on the Radeon 780M PHOENIX (RADV, Mesa 26.2.6), potluck job 13644, with
this commit carried on the scratch branch at fbfb62949e. A scratch switch there
holds the thread 10 ms after each pass before it sleeps, holding no lock.
- With that delay and the 5 ms wait, a_commit_and_submit_wakes... failed 5 of 5
runs. Run 1: "0 wakings by a commit, 9 batches submitted at commit, 10
commits". Runs 2-5: 0 wakings, 10 at commit.
- With the delay and this wait: 5 of 5 passed, each with 10 wakings and 10 at
commit.
- Without the delay: both waits passed 5 of 5.
- The whole module with this wait, run alone: 10 of 10.
- Before the change, full suites on the 780M (jobs 13609, 13631) passed all
four tests, 2 of 2.
(cherry picked from commit 346f32bad36fb752caee2a991efe1b670a59b112)
The pass-open check failed once in 13 whole Iris lane runs under the loader's default manifests
(6.06 allocations an open against 4.5; 4.00 at every open in the six runs that listed them). Its
warm-up was 20 plain frames, which leave the device as many command pools as those frames held
at once. Where the GPU fell further behind in the counted frame, each open past that count made a
pool there: its primary (the Vec ash returns) and the pool's first list entry, 2 allocations
more, and on every fourth pass (4 samples, not recorded inline) its secondary and that list too,
4 more. A queue holds at most 64 uncompleted command buffers; with 9 pools left by the warm-up,
opens 9 to 63 make one, 55 of them, 14 of those 4-sample: 138 more, the failure's 6.06 exactly
(a fit; that run listed no open).
Workload::warm now ends with a frame that fills its queue (Workload::frame_full): its first
command buffer waits on the GPU for an event the CPU signals once 64 of its command buffers are
committed, so none completes before and the device holds a pool for every command buffer the
queue holds at once. It is the warm-up's last frame, so no pool idles the 10 s after which the
spares free its command buffers before the frames that count. Every check that warmed up
with plain frames takes it. counted() also returns the pools the counted frame and the next one
made. The new a_full_queue_s_pass_opens_allocate_within_their_bound counts the opens of a full
queue's frame after the warm-up, and checks that it and a full frame after it make at most one
pool between them: a command buffer that opens as the one that gave its slot back begins a
primary ahead in its pool, out of the spares meanwhile, may find no spare and make one, once
(spares.rs). Seen once, on the 780M (1 pool, 4.03 an open).
Verified (debug test builds, --cfg m2v_gpu unless named, frame_costs' five `a_` checks):
- Iris Xe (ANV, the loader's default manifests): 6/6 runs pass; 4.00 an open, plain and full,
0 pools made in the counted frame and in the next.
- Radeon 780M (RADV): 9/9 pass; 4.00 an open plain; full 4.00, once 4.03 with 1 pool made.
- lavapipe (--cfg m2v_cpu_icd, its manifest alone): 5/5 pass.
- Negative control, the warm-up's last frame plain: the full-queue check fails on the Iris (6.30,
61 pools made; opens 3 to 63 allocate 6, the 4-sample ones 8, the rest 4) and on the 780M 2/2
(6.33, 62 pools; opens 2 to 63 likewise).
- cargo clippy -p metal2vulkan-validation --all-targets --all-features -- -D warnings under
--cfg m2v_gpu: clean on both hosts.
(cherry picked from commit aeab74617de9575aaaced0c92ccc79ffc3f82e35)