The planner's condition on the display sidecar: every play states which
display library it ran. The report's display library line now gives the
sidecar's length, its SHA-256, and its git blob id (the SHA-1 of
"blob LENGTH\0" and the bytes). The blob id names the file in the host's tree:
every stream so far holds blob b1aea1f0, 47,426 bytes. The doc also says the
sidecar holds the host's display shaders alone, and that a player makes only
the device's library from source of no arguments from it.
The validation crate takes sha1 0.11 (RustCrypto, MIT OR Apache-2.0; the same
digest family as sha2 0.11) for the blob id.
Test: the integration test expects the 5-byte sidecar's SHA-256 and the blob
id `git hash-object` gives for the same bytes (8d7ffd7e). Verified by the lane
check named in the hand-over.
webdiv-780m-3's record 11498, newLibraryWithSource:options:error: on the
device with no arguments, is reims's host loading its own display shaders.
The players skipped every library from source, and with it the host's 773
present draws, so both plays of webdiv-780m-3 ended as no verdict. A
program's own libraries reach the stream as data, never as source.
The decided form is a sidecar beside the stream, NAME.display.metallib, like
NAME.range:
- command-replay reads the sidecar (replay::display_library) and gives it to
either backend (with_display_library).
- The report says so in the line after `range`: `display library the
stream's sidecar, N bytes`, or `display library none: the host's library
from source is skipped`.
- Both players make a library from source of no arguments from the sidecar,
as from data. Any other library from source, or one without a sidecar,
stays skipped and counted.
docs/REPLAY-STREAM.md sections 1 and 10 state the sidecar and the line.
Tests:
- An integration test reads the line without the sidecar and with a 5-byte
one; the range test's line positions follow the new line.
- A device test makes a function of the host's library with the display
library and skips both without it.
Verified by the lane check named in the hand-over.
A placement whose index is owed to a command buffer that no record played so far lets
complete (its event wait is signalled only by a later record) stopped the play with
PlayError::Held. In the recording that order proves the recording device gave the index to the
new object before that command buffer completed: that is its index policy. The player now plays
what the device did: it takes the index without waiting and counts the placement on its own
report line ('indices given while a commit they owe is held N: ...'). The index stays owed to
the held commit. Where the owed commit is not held, the player still waits for it.
PlayError::Held, held_error and HeldBuffer's queue and unmet waits are deleted: nothing reads
them now. Backend::held takes the held command buffers' stream ids.
The rt_replay test that pinned the stop now expects the index taken (16) and the count of 1.
Verified by the check job named in the hand-over.
The landed packet changed a runtime-sources input, so the committed digest no
longer described the sources and `the_runtime_sources_are_the_committed_ones`
would fail. Recomputed over the same inputs and committed by land-pkt.sh.
They are generated from the whole case set, and the set grew on `development`
while this branch was in flight, so the copy committed here counted a smaller
one.
Verified: regenerating at this tip leaves no change beyond the `Generated at`
stamp.
The clamp device test of e75e9e7f4b passed the device's name by value where finished takes a
borrow (a compile error under --cfg m2v_gpu, job 49121), and lod_clamps_read_alike's doc linked
the private LAST_WORD_LEVEL (rustdoc's private-intra-doc-links, same job). Verified in the job
named in the landing message.
glbench's streams call setStageInRegion: 158,349 times (780M) and 300,832 times (3090), every call
on an encoder whose kernel has no stage-in argument; neither stream makes a compute state with one
(replay's census over 204 and 148 states). Metal's region is what a kernel's [[stage_in]] argument
fetches by, and rt refuses a kernel with one at its state's creation (Gap::KernelInput,
pipeline.rs), so no state the encoder dispatches reads the region: `set_stage_in_region` accepts
it and changes nothing, as a kernel without the argument ignores it on Metal. No stage-in fetch is
built; the refusal stays.
Test: the sampling device test sets a stage-in region before its dispatch and checks the samples
as before. README and the signature table updated. Verified in the job named in the landing
message.
The replay streams bind sampler states with Metal's bind-time LOD clamps
(`setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:`): web3d on the 780M makes 2,635
such calls and on the 3090 2,627, every one over a state made with clamps (0, FLT_MAX), half of
them binding (0, FLT_MAX) and half (0, 1000); glbench makes none (replay's census). rt had no
such form, so the player skipped and counted the second kind.
A sample's level is clamped into the clamps and then to the texture's levels, at most 14 (Metal's
largest textures have 15 levels), and a level below 0 is level 0. So two clamps read alike where
each bound held to [0, 15] (the translator's LAST_WORD_LEVEL) is equal: in Metal's sampler, in
the device sampler `vk_sampler` makes (Vulkan clamps into [minLod, maxLod] and then to the view's
levels) and in the sampler word. The translator states the rule
(`metal::sampler::lod_clamps_read_alike`); rt's compute encoder (`set_sampler_state_with_lod_clamps`)
and render encoder (`set_vertex_sampler_state_with_lod_clamps`,
`set_fragment_sampler_state_with_lod_clamps`) bind the state as it is where the clamps read as
its own, which covers every call the streams make at no cost, and refuse others as the new
`Gap::LodClamps`, binding nothing (no stream makes one; a variant or a shader clamp is built when
one does). Each range form is a loop of its single form.
Tests: the translator's unit test pins the rule (1000 and infinity over FLT_MAX, -1 over 0 alike;
14, a raised lower bound and NaN not) and that every alike pair gives the descriptor's word, query
level and device lods; a device test binds on the three forms and gets the gap on each; the
sampling test binds its state with (0, 1000) and checks its samples as before. REFUSALS.md
regenerated; the signature and surface tables take the new items. Verified in the job named in the
landing message.
The landed packet changed a runtime-sources input, so the committed digest no
longer described the sources and `the_runtime_sources_are_the_committed_ones`
would fail. Recomputed over the same inputs and committed by land-pkt.sh.
The gap was found from the slot's hazard access, which the translator gives by use: a
read_write slot the function only reads is a read there, so a swizzled view bound to it
passed the check and its read answered the texel unswizzled. The device test caught it on
lavapipe (49090: the read_write read of the view returned no gap).
The translator now states the declared side: TextureSlot::storage, true where the function
declares the slot write or read_write and so reaches a storage image, whose view maps each
channel to itself. rt keeps the slots read through one (storage with a read) for kernels
and for draws, and the gap is found from that list. The cache encoding carries the field
(ARTIFACT_FORMAT_VERSION 540); api_signatures gains the field; REFUSALS regenerated.
Verified: to follow in the build, tests and touched stages.
Main asked what the changing arm's extra is made of. A fourth arm calls
set_depth_stencil_state and set_depth_bias as often with no draw between, so
the changing arm less the set-once arm and the setters is what a draw records
of the changed state: ten dynamic-state commands for the depth-stencil state
(depth test, write, compare op, stencil test enable, and each face's stencil
op, compare mask and write mask) and two for the bias and its enable.
Apple defines the swizzle for reads and samples. A write through a swizzled
view, and a render pass into one, store the texels unswizzled: Metal's
documented answer, so that half leaves the README's known gap. A read() of an
access::read_write slot reads through the texture's storage element, which
maps each channel to itself as Vulkan requires of a storage image
(VUID-VkWriteDescriptorSet-descriptorType-00336), and would answer the texel
unswizzled where Metal reads it through the swizzle: a wrong answer, which no
static note covers.
Such a draw or dispatch is now Gap::SwizzledReadWrite { slot }, found with the
bind-time facts (the draw's Facts::find, the dispatch's alignment check), so
the test runs once per pipeline-state or binding change and only for the
translated interface's read-write texture slots. The players count it as they
count every gap.
Test (tests/swizzle.rs, on devices, the owned fixture rrp_swizzled_storage):
an access::read read through a [B,G,R,1] view of (10,20,30,40) answers
(30,20,10,255); an access::write write through it stores (0.2,0.4,0.6,0.8)
unswizzled at each texel; the read_write kernel bound to the view is
Gap::SwizzledReadWrite { slot: 0 } and over the texture itself reads its
texel.
newTextureViewWithPixelFormat:textureType:levels:slices:swizzle: is
Texture::new_texture_view_with_swizzle. The view's swizzle combines with the
parent's as Apple states it (each channel the view takes from red, green, blue
or alpha is the parent's as the parent's swizzle reads it; Apple's example
[R,G,A,B] over [R,1,1,G] is [R,1,G,1]), so a view of a swizzled texture is
built too and TextureViewKind::Swizzle goes. The view's descriptor holds the
combined swizzle and its resource ID that swizzle's TextureWord.
Metal takes the call whatever the parent's usage: glbench-780m-r1's 128
non-identity views are of textures of shader-write, and most of render-target,
usage. A view takes its descriptor's checks but the swizzle-with-writes
refusal, which Metal makes of a texture's own descriptor alone (prepare's
checks split into checked()). The sampled element takes the combined swizzle;
the storage element and attachment views map each channel to itself, as
Vulkan requires (VUID-VkWriteDescriptorSet-descriptorType-00336, the rendering
attachments' identity VUIDs). A read of an access::read_write texture and a
write through such a view therefore reach the texels unswizzled where Metal
swizzles them (and, recorded by swizzled-storage-*, undoes the swizzle on
writes): a known gap in the README.
The rt player maps the selector and its resourceIndex form; the conformance
rt side makes the requested swizzled views instead of answering unavailable.
Tests: the combination (Apple's example, identity on either side, constants,
a rotation twice); on devices, a view's descriptor and word for Apple's
example, a view without a swizzle keeping the parent's, and a swizzled view of
a shader-write, render-target texture made.
The count compared the draw path with no depth attachment against draws that set a depth-stencil
state and a bias before each draw, which counts the setters too. A third arm sets the state once,
so the depth path's own cost a draw reads beside the current draw path's.
glbench's recordings set their one viewport and scissor rectangle through the list calls (36,051
and 76,107 of each) and the depth clip mode through setDepthClipModeSPI: (65,318 and 125,276
calls; selcensus, m3-max-48834 and 48836). Each list element maps as the one-element call does,
through two helpers, to the encoder's set_viewports and set_scissor_rects; the SPI selector as
setDepthClipMode:.
The render-state lane's depth step (the planner's step 1).
- A depth-stencil state's depth test, write and compare operation are dynamic state, recorded
where they changed; DrawKind::DepthTest is gone. A pipeline bakes the depth format alone, so a
change of depth-stencil state or bias makes no pipeline. In a pass without a depth attachment
Vulkan skips the test, where Metal's documentation states no answer.
- set_depth_bias (setDepthBias:slopeScale:clamp:): the bias and slope scale as given, enabled for a
draw of triangles where either is not zero and never for lines (Metal biases triangles alone).
A clamp other than 0 is Gap::Draw of DepthBiasClamp (no stream sets one).
- Static notes, carried by the operation: PrecisionNote::DeviceDepthBias
(RenderCommandEncoder::DEPTH_BIAS_NOTE: the slope measure, and a fixed-point attachment's unit,
are the device's; Apple states neither; read from Vulkan's Depth Bias section and Apple's
setDepthBias page), and PrecisionNote::DepthDenormals (DepthStencilState::precision_note, a state
that tests or writes depth: every driver measured but MoltenVK on an M4 compares a denormal
depth otherwise than Metal; RADV and ANV store one as zero). The old runtime maps DepthDenormals
to its own depth-denormals kind and takes device-depth-bias as a note kind; codec, fast_paths,
validation's allowance (Unbounded), API.md and ARTIFACT_FORMAT_VERSION 539 follow. No signed-depth
note: no clear, viewport or upload gives rt a negative or NaN depth, and Vulkan leaves a depth
past the viewport's range undefined.
- MTLStoreActionUnknown stores (Vulkan fixes the store as the rendering begins); the encoder's
set_color_store_action, set_depth_store_action and set_stencil_store_action change nothing the
device does and refuse a resolving action (Resolve). On a tile-based device this stores a
target Metal would have discarded (README).
- set_triangle_fill_mode, set_depth_clip_mode, set_viewports and set_scissor_rects take Metal's
defaults (Fill, Clip, one viewport or rectangle) as nothing and refuse the rest, typed
(FillMode, DepthClamp, Viewports): replay found every stream at the defaults.
- The conformance rt side plays the depth bias, fill, clip and viewport-count steps and announces
the encoder's notes; the replay player maps setDepthBias:slopeScale:clamp:, the three store
action setters, setTriangleFillMode: and setDepthClipMode:.
- Tests: a depth attachment cleared to 0.5 with its store action unknown, tested under Less with
writes, failing at 0.375, passing Greater by its bias alone, every mode setter's refusal, and no
pipeline made by the state changes; the instructions a depth-tested draw retires beside a plain
one, printed. REFUSALS.md regenerated, the API table blessed.
The indirect-command census's shards still run alone. With the division of every pair of half
values split into eight cases, one per eighth of the dividends, no census case's dispatch or
command waits a tenth of the old runtime's 20.2 s watchdog on lavapipe. The comment now says so,
with the eight cases' times.
Verified: job m3-max-49010 on the 24-CPU builder ran the runtime lane on lavapipe (LLVM 23.1.1,
Mesa 26.2.4, LP_NUM_THREADS=1, the carried validation layer) at aa748188c7. It printed 583 census
lines and none waited over 2020 ms. The eight cases' dispatches waited 828 to 1363 ms, 0 to 119 ms
of it for a CPU; their commands waited 822 to 1329 ms, 0 to 19 ms of it for a CPU.
The planner's ruling on the lavapipe leg's hang: no single command buffer on a CPU device should
need more than about a tenth of its watchdog with the host idle. The one case that divided all
2^32 pairs of half values took 7.4 to 8.9 s of lavapipe's 20.2 s alone (LP_NUM_THREADS=1, a
24-CPU host), and 20.3 s beside other jobs, past Metal's bound as the old runtime's watchdog holds
it (m3-max-48580).
The fixture's kernel now takes its dividends' base as function constant 0 and covers 8192
dividends on a 1024 x 128 grid, each by all 65536 divisors as before; the eight cases of the bases
0, 8192, ..., 57344 replace the single one, which is deleted with its observations, and the eight
are qualified on Metal (apple-m3-max-macos27.0.1). The fixture's companions are regenerated from
its source on the M3 (scripts/regen-air-fixtures). The device rows and the authored compile table
are re-blessed on development.
Done in one job on the M3: regen-air-fixtures, corpus-case-check --delete-air/--delete-name and
--install of the eight manifests, corpus-metal of each, whose output this commit holds.
Each case over the half-division fixture takes 64 dividends a grid row from its base, function
constant 0, each by all 65536 divisors; the test holds their dividend ranges to tiling the 65536
half values with no gap and no overlap, 2^32 pairs in all, in eight cases. The cases come in the
next commit, made on the M3.
The planner ruled that the status form (a signalled command buffer whose timestamp pair reads
unavailable fails as one the device did not finish) does not land: without the wait bit Vulkan
lets vkGetQueryPoolResults answer NOT_READY for a query not yet available, only the wait bit
defines a dependency on the writes, and a signal says nothing about a query's availability. An
Intel UHD 630 on Windows read such a pair in a burst with its device going on (matrix 749c939440,
the old runtime). The counter (`Metrics::stamps_not_available`) stays as the guard, and the case
is recorded where a user reads it: the queue's known gaps say such a command buffer reports no GPU
times and is counted.
Docs only; no build.
The landed packet changed a runtime-sources input, so the committed digest no
longer described the sources and `the_runtime_sources_are_the_committed_ones`
would fail. Recomputed over the same inputs and committed by land-pkt.sh.
A regression fix in the frozen old runtime. Matrix 749c939440's UHD 630 leg (Windows, Intel driver
101.2145, job 48872) failed the old runtime's burst_2000 and burst_2000x5 with "the command buffer
ended Error: Some(GpuRecoveryVictim)", with no device loss and no recovery notice: at least one of
the old runtime's 2,010 submissions a run read a timestamp unavailable once its queue's timeline
had passed it, and the old runtime took that as work the driver dropped and failed it as a victim
of a GPU recovery. The old runtime's poll already orders the read after a host wait on the fence
or the timeline, so this driver showed the signal before the timestamps' availability. A
signalled submission with its timestamps unavailable is no lost GPU: the command buffer now
completes, its GPU times 0, counted as before (`WorkCounts::unrun_command_buffers`), as the new
runtime counts the same case and fails nothing.
The cost is the case the branch was made for: work Linux's amdgpu drops with no error (a job its
timeout ended, and those queued behind it) completes with no error too. The FAST-PATHS known gaps,
the module docs, the error's and the count's docs and the README say so.
Test: the device test `dropped_work` now asserts the injected unavailable read completes with no
error, its fill ran, its GPU times 0, counted once, and the queue runs on (the old form asserted
the victim). Verified in the jobs named in the landing message.
Every harness process prints its device's totals over the device's life
(`M2V-MATRIX metric harness-<runtime>/device/<total>`, since ebfc68ebb7) once its workloads have
run. The first creation round's processes (5849a7f029: one per runtime, their output kept whole)
are harness processes of their own, so each printed `harness-<runtime>/device/stamps_not_available`
a second time beside the other rows' process, and every GPU leg of matrix 749c939440 failed on
"record metric harness-new/device/stamps_not_available: recorded twice". The device's gauges at
drop had the same double and were already kept apart by CREATES_APART, which renamed only gauges.
CREATES_APART now renames every record of the device's life, of any kind, to
`harness-<runtime>/creates/device/...`, so the totals take the same road as the gauges and each
key is recorded once. A base without the renamed keys judges nothing on them.
Verified: the matrix's Python tests (test_results, test_matrix) pass, locally and in the job
named in the landing message; the creation test now feeds a device total through both the other
rows' process and the creation process and asserts each key once; with the gauge-only program it
fails on the same "recorded twice" line the matrix printed.
reims's recorder (descwire) now writes three keys at the end of each
newRenderPipelineStateWithDescriptor:error: map, always:
- `tessellation`, a map of the seven tessellation properties as Metal's raw
values;
- `maxVertexCallStackDepth`;
- `maxFragmentCallStackDepth`.
The players refused any key they did not know, so every pipeline of such a
stream would have been refused. A stream without the keys means Metal's
defaults (0, 16, false, 0, 0, 0, 0; depths 1 and 1): the device built those
before the recorder carried them. There is no header bit, and the host's
short display map is unchanged.
Both players (translator::render_pipeline) now accept the keys:
- The depths always go to the descriptor.
- The tessellation state goes to it only where it differs from Metal's
defaults and the vertex function is a post-tessellation one (patchType not
None). Any other vertex function ignores the state, as Metal does, so a
plain pipeline is never handed tessellation state the new runtime would
refuse.
docs/REPLAY-STREAM.md section 9 states the keys, their defaults and the
names that differ from Metal's.
Test: a unit test parses the recorder's pinned record (partition 3, factor
32, scale on, half, uint32 indices, per-patch, counter-clockwise; depths 2 and
3) to those values, a record without the keys to the defaults, and refuses an
unknown key at the top and inside the tessellation map. Verified by the lane
check named in the hand-over.
A per-gap play counts the gaps, but a compute pipeline state that the runtime
answered with a typed gap, or that the translator refused, stopped the new
runtime's play at once. glbench-3090-r2 stopped at frame 0 on an
IdentityDomains refusal, and nothing after it was counted.
Compute pipeline states are now skipped and counted the way render pipeline
states are (c027cc2cfa): by the runtime's gap, or `Translation` for the
translator's refusal, together with the first state's object and the runtime's
answer. They appear as `skipped_compute_states` and the report line
`skipped compute states GAP N, the first #ID: WHY`. A dispatch of a skipped
state is skipped and counted (`skipped_dispatches`), and the play goes on. Any
other error still stops it. Render and compute share the counting
(Skips::skipped_state). docs/REPLAY-STREAM.md section 10 says so.
Test: a device test plays a state made for indirect command buffers. The
runtime refuses it as IndirectCommandBuffers; the test expects it counted,
its dispatch skipped and the play ended normally. The rt_replay library
helper takes any of the runtime examples' functions, a kernel among them.
Verified by the lane check named in the hand-over.
Under the identity domains an encoder operation was refused only at the domains' admission check, as Unsupported{IdentityDomains, NotImplemented}: its plan pushes the resident set's root table and the execution status, which the identity domains do not take. The refusal now names the feature the kernel uses: the encoder operation's own check (encode.rs, needs) refuses it as Unsupported{GpuEncodedIndirectCommands, NotImplemented} under those domains. The new runtime already answers a state for indirect command buffers with Gap::IndirectCommandBuffers; its README says the translator refuses a kernel that encodes into one. docs/REFUSALS.md regenerated.
Verified: the new engine_identity test fails before the change (IdentityDomains) and passes after; job named with the sha.
44676f7998 gave the commit-lock test a turn_taken() under #[cfg(test)]; the
test runs under --cfg m2v_gpu or m2v_cpu_icd only, so the plain test build's
clippy refused the method as never used (build m3-max-48982, clippy plain
EXIT=101). It takes the device tests' cfg, as texture.rs's test-only
helpers do.
The SPI newLinearTextureWithDescriptor:offset:bytesPerRow:bytesPerImage:
stopped the new runtime's play of webdiv-780m-2 at frame 0 ("not played on a
buffer"): the stream makes one such texture, a 2D one over a no-copy buffer.
Neither player knew the selector.
The old runtime measured the SPI as newTextureWithDescriptor:offset:bytesPerRow:
for a 2D descriptor, plus 2D arrays whose slices Metal lays out itself
(bytesPerImage ignored; Buffer::new_linear_texture). The old player now calls
that. The new runtime has no form of the array layout, so its player plays a
2D descriptor as the public texture over the buffer (its resource index
included) and refuses any other type, "a linear texture of a type other than
2D". docs/REPLAY-STREAM.md section 5 names the selector.
Test: a device test plays a 2D linear texture with nothing skipped and gets
the refusal for a 2D array. Verified by the lane check named in the hand-over.
The planner's rule for timing legs: each prints the BASE arm's own spread across its passes;
past 10% the leg is VOID and is timed once more at another time, and a leg VOID twice is
reported as "venue unstable", never as a red row. In a matrix harness leg the base arm is the
old runtime, and the rows it times more than once in a leg are the re-timed ones: its main run
and each re-timed pair's (RETIME_PAIRS). results.base_spread takes, of each such row, the old
runtime's largest time over its smallest, less 1, on the time the row is judged on (its GPU time
where gpu_judged), and the largest of the rows; a creation row's first samples are cold, spread
by nature and judged cold against cold, so none counts; with no row re-timed it is n/a and voids
nothing.
Past BASE_SPREAD (10%), harness_budget names every problem the leg's times would raise VOID and
parks it, and the problems of its records and counts stand; the over table reads VOID on each of
the leg's times. The matrix (Run.timed_again) times such a leg's harness once more, after the
node's other jobs (the Windows host's right after its own), and judges that timing. The leg's
line names its base spread and what came of a first timing; a leg VOID in both reads `venue
unstable`, verdict UNSTABLE, which the run counts apart and which does not fail it. A node's last
job is now the last one it actually runs, the re-timing included, so the tree and the carry's
mirror are tidied after it.
Verified: the matrix's Python tests, new ones: the spread on time and on GPU time, n/a with no
re-timed row, a cold first sample never counting; a leg past it failing on its records alone and
the same row failing within it; the verdict line's spread, n/a and UNSTABLE; the over table's
VOID; and a node's harness timed once more after its other jobs, once only, its last job the
tidying one. In the job named in the landing message.
The split detach test asserted that each detach returned within EARLY (100 ms) of its call, a wall-clock bound a loaded host can break with no fault in the runtime. Each now asserts that, once the detach returned, its command buffer is not Completed: the second submission waits on a gate the test raises only after the detach, so a detach that waited for the command buffer could not have returned there.
Verified: the test under lavapipe, quiet and in loaded rounds (job named with the sha).
The planner's ruling on create_64MiB/first_take on NVIDIA's legs: the gate changes, not the
ceilings. From the next round on the row is judged on the new runtime's own part, its first take
less the time inside the driver's calls the same process recorded, against the old runtime's whole
first take, each the median of the five creation processes; the driver's part and the whole ratio
are shown beside it, with the gap's name. An own part past the row's limit (1.03 times its floor,
the parity every row gets) fails the leg as a regression of its own.
The driver's part is `first_allocation_total`, the new runtime's `vkAllocateMemory` time on the
harness's thread in the same take, kept from every process already (FIRST_KEEP). rt counts no
`vkMapMemory` time, so the map stays in the own part, the stricter reading. On 5f2494bfc5 the
allocation took 9902 of the 2080's 12521 us first take (old's whole 5668 us), and 14164 of 17013
us and 10013 of 15066 us on the 3090's legs (old 4865 and 6166 us), against 954-1061 us on RADV.
The table OWN_PART_GATES names the row and its driver's part for the two NVIDIA cards the matrix
runs, which takes the place of their ceilings (1.88 and 2.26), deleted with their status.tsv gap
entries: the row is now over only when its own part is, which is a regression, not the gap. The
over table names such a row's kind `own part`. docs/VALIDATION.md says how the gate judges.
Verified: the matrix's Python tests, two new: the gated row within on its own part though 2.4
times old whole, past it as a regression, a process without its driver's part failing, an extra
leg held to its card's gate and another card's row judged whole; and the over table listing the
row by its own part alone. In the job named in the landing message.
The runtime builds a pipeline state's depth attachment since f9633bf18d, and
RenderPipelineKind::DepthAttachment is gone, so the test's Depth32Float
pipeline now plays and its expected "DepthAttachment" skip line never comes:
the test fails on every device run. Its pipeline now rasterizes at 4 samples
(rasterSampleCount 4), which the runtime refuses as
RenderPipeline { kind: Multisample }, and the test expects that line.
Verified by the lane check named in the hand-over (lavapipe device run).
The planner asked for the check that fails without the cache run's wait: before spawning the
second process, the test now asserts the translator's artifacts on disk number at least the
first run's writes, and its driver records at least its driver_saves where the driver's data is
kept. Without the wait (cache_run's entries_written) a probe found one file missing in 2 of 12
loaded rounds (m3-max-48434).
Verified at this tree (m3-max-48666, msi, lavapipe as the leg builds it): validation clippy
clean, the cache module's 6 tests pass, the second-process test passes 5 of 5 rounds under 48
busy loops. With cache_run's wait taken out it also passed 12 of 12 loaded rounds there: the race
did not recur at this tip under that load, so the assertion is shown to hold, not yet to fail.
Planner ruling D: no wall-clock threshold in a suite that runs beside other jobs. rt's device
suite had six, each replaced by the deterministic statement it stood for:
- every_device_counts_a_commits_wait_for_the_submission_lock asserted a counted wait of 10 ms or
more after a 20 ms hold, which a committing thread that starts late misses. The test now waits
for the commit's turn (taken after its count began; Work::turn_taken, test-only), then holds the
lock 20 ms, and asserts the counted wait is at least the hold's length past the turn, by
host_time.
- every_device_quiesces_with_handles_alive asserted a second quiesce answers in under 1 s: now
quiesce(Duration::ZERO) gives the first call's answer, true.
- every_device_answers_false_to_a_quiesce_in_a_scheduled_handler asserted the false answer came
in under 1 s: the handler's quiesce now has ten times the test's patience as its deadline, and
the answer must come within that patience, so it was not the deadline's.
- The idle-free tests asserted each free began within a 50 ms slack of its idle age, the oldest
idle-age gauge under the idle age plus that slack, a take 50 ms on counted 50 to 250 ms idle,
and a 3 s commit loop sampled 1.4 s in. Now: each free begins at or after its idle age and
after the free before it ended; the gauge is at most the time since the first give-back, by
host_time; the take comes at once, counted in a bucket no older than the time since the
give-back (the test asserts its own take came within the idle age, else the test was late, not
the runtime); the commits give the second block back once the first's free ended and stop once
the second's ended. Each test prints its latest free past due as
`M2V-MATRIX time idle_frees/latest_past_due` and `idle_frees_under_commits/latest_past_due`,
microseconds, for the matrix's GPU legs.
Verified at this tree (m3-max-48666, msi, built as the lavapipe leg builds: --cfg m2v_cpu_icd,
LP_NUM_THREADS=1): rt clippy clean; the five tests pass through the matrix's own nextest options
and output filter, whose kept output holds both M2V-MATRIX time lines (167 and 135 us); they
pass 3 of 3 rounds under 48 busy loops on 24 CPUs (latest free past due 0.5 to 4.8 ms). With the
committing thread started 15 ms into the hold, the old commit-lock form fails (command.rs:1253)
and the new one passes. The old forms passed the same 3 loaded rounds.
The colors list form needs every colour attachment field the player
requires (blendingEnabled and the rest); the test's stream gave only the
pixel format, so the play stopped on 'no blendingEnabled' before the
runtime saw the state (check 48543, lavapipe). color0PixelFormat is the
short descriptor the draw test already plays.
The report gave one line for every skipped render pipeline state, its
total and the first one's answer, so a stream's states refused for a
depth attachment, for framebuffer fetch or by the translator read as one
number. The planner's census of what the new runtime refuses needs the
count of each kind per stream.
The backend now keeps the skipped states by the gap as Rust prints it
for debugging (Translation where the translator refused), with the
first one's object and answer, and the report gives a
"skipped render states GAP N, the first #ID: WHY" line for each, as it
does for render commands; skipped_render_states is their sum.
docs/REPLAY-STREAM.md describes the line.
Verified: see the check job (a new rt_replay device test: a state with
a Depth32Float depth attachment is counted under
RenderPipeline { kind: DepthAttachment }).
The round at 5f2494bfc5 is the first with both runtimes interleaved, the noise meter's base, so
its 39 rows over their limits are owned here, by the owners main named:
- memory2: the creation rows that time block allocation or a take, 12 rows: create_64MiB on the
XTX, 2080 and 3090; create_64MiB/first_take on the 780M (both), RX 550, XTX and Iris Xe;
create_private_16MiB/first_take on the 2080, 3090, UHD 630 and Iris Xe.
- entry: create_state/first on the 3090 (both of its legs).
- identity: the translator's GPU rows, 12: wide_bindings on the RX 550, sampling_deep_64x64x16 on
the UHD 630, and on the Iris Xe constant_managed, constant_private, constexpr_sampling, the five
sampling_deep rows, threadgroup_scan and waves, noted "Iris swing unresolved".
- Known gaps by the planner's rulings of 2026-11-18: create_64MiB/first_take on the 3090 (as
before) and on the 2080, the same NVIDIA large Shared allocation: in this round the new
runtime's allocation calls (create_64MiB/first_allocation_total) took 9902 of the 2080's
12521 us first take, as they took 14164 of 17013 us and 10013 of 15066 us on the 3090's two
legs, against 954-1061 us on RADV; and create_state/first on the Iris Xe, the meter's artifact.
The notes that waited for this round go: the 64 MiB rows on the four RADV cards were "unjudged
until the first interleaved round", and the Iris Xe's GPU rows had "one time-boxed investigation
after the first interleaved round"; both are now open records. The Iris Xe's vote_loop and
zero_products keep their card's variance (CARD_VARIANCE), and the frames' commit_to_complete rows
need no entry, gone since 6605f18ddf.
Verified: the matrix's Python tests (the stored table reads) in the job named in the landing
message.
The draw test's first command buffer recorded 4 barriers on lavapipe (m3-max-48760, ms01), not
the 3 it expected: the first command buffer also moves the two new images (the colour target and
the depth texture) from undefined to their home layouts, expected Vulkan work. The count is now
per command buffer, 4 then 3, and the assertion names why.
The render-state lane's first feature. A replay stream's 478 depth passes (depth census
m3-max-48544, the one stream with any) are a shader-read Depth32Float texture with no stencil
attachment beside it, a Clear of 1 (476) or a Load (2) and a Store, drawn under Metal's default
depth-stencil state (compare Always, no write) by four pipeline states of depthAttachmentPixelFormat
Depth32Float. rt refused all of them: the pass by RenderPassKind::DepthAttachment, the states by
RenderPipelineKind::DepthAttachment.
- pass.rs: Pass holds the depth attachment as it holds the stencil one: a format with depth
(else Refusal::AttachmentFormat, as Metal's validation stops it), the texture's view of the
level and layer, Metal's load and store actions as for a colour, its clear depth a float.
`vkCmdBeginRendering` takes it as pDepthAttachment. With a stencil attachment beside it the two
are one view (VUID-VkRenderingInfo-pDepthAttachment-06085): two others are
RenderPassKind::DepthStencilViews. A Clear outside [0, 1] or NaN is RenderPassKind::ClearDepth
(VUID-VkClearDepthStencilValue-depth-00022; the floor has no VK_EXT_depth_range_unrestricted).
Pass::targets yields each image once, so a combined texture's one view is moved, kept and
barriered once.
- render.rs: the descriptor's depth format is no refusal. Fixed holds the translator's depth
format (vk_format over the device's format query: a format the device does not render depth
in is the translator's typed refusal), the VkPipeline renders into it, and renders_into holds
it to the pass's depth attachment, as the colour and stencil formats are.
- The draw keeps DrawKind::DepthTest for a state that tests or writes depth; the encoder's
dynamic depth state stays off, which is what the default state means.
- error.rs: RenderPassKind::DepthAttachment and RenderPipelineKind::DepthAttachment go;
DepthStencilViews and ClearDepth come. Their docs, the bases and Refusal::AttachmentFormat's
doc say what is built.
- README: the render pass and encoder sections and their known gaps.
- docs/REFUSALS.md regenerated; the API signature table blessed (two variants out, two in).
- tests:
- draw.rs every_device_clears_loads_and_stores_a_depth_attachment_its_draws_do_not_test: a
shader-read Depth32Float attachment cleared to 0.25, then loaded, each pass one submission,
three barriers, one pass, no byte copied; the colour drawn; the depth read back 0.25; a state
without the pass's depth format, one with it in a pass without depth, and a Less test are
each their gap.
- pass.rs: the depth refusal is replaced by a depth attachment of a colour format, a depth and
a stencil of two textures, and a clear depth of 2 and of NaN.
- render.rs: the depth attachment leaves the pipeline refusal list.
Verified: nothing yet; the next check job compiles and runs it.
Clippy under --cfg m2v_gpu and --cfg m2v_cpu_icd (check 48620) refused chunks_exact_mut(4) in
tests::over's new test; as_chunks_mut::<4>() fills the row's texels with the clear's bytes, the
same bytes. To be checked by clippy in both device configurations.
A store, a clear or a resolve of an attachment may read and write back any byte of the image
subresource bound for it (Vulkan's load and store operations). A copy, a fill and a shader's
write have no such clause. So a texture over a buffer in place with render-target usage could
rewrite bytes past its own rows, or past its buffer, with whatever the device read there. llvmpipe
does it: it advertises a linear image's height rounded up to 4 rows and stores whole blocks of 4
by 4 texels, so a draw into a 3-row render target over a buffer that ends at its rows wrote the
fourth row past the buffer (the lavapipe read, repro lvp-block-store.c).
What:
- A texture with render-target usage is in place only where the subresource the device
advertises (vkGetImageSubresourceLayout's offset and size from its place) ends at or before
both its own rows' end (offset plus height rows of bytes_per_row) and the buffer's end
(texture::render_reach, texture::in_reach, Bind::InPlace's reach). Otherwise it takes the
copied form, whose copies are counted in Metrics::over_copies, as every copied texture over a
buffer's are.
- A texture of any other usage writes its texels alone and keeps the bound it had: its image's
memory inside the buffer's block.
- linear_layout answers the subresource's size too, for a device test's hook
(Device::linear_subresource_size, test cfgs only); its doc comment, which sat on
linear_rounding, is back on it.
The count before building, from the replay streams' calls (jobs 48529 and 48566): every one of
the 406 render targets over buffers in the five streams that make any (u2 61, u3 62, b3 49, and
the 780M's two 3D streams 86 and 148) starts at its buffer's first byte and its rows end at the
buffer's end. On the venues' layouts from the pad probe, none of those in place today ends past
that bound on any hardware venue. On llvmpipe, 3 to 6 per stream do, each of a height that is not
a multiple of 4.
README and Buffer::new_texture's doc: the bytes of a render-target texture's rows that are not
texels may be rewritten with their earlier values while a pass renders it; the in-place rule; the
known gap of the copied form on lavapipe and of a render target ending at its buffer's last texel
with a pitch wider than its row.
Tests:
- tests::texture: over every venue's linear layout (RADV on the 780M and XTX, RADV on the RX 550,
NVIDIA, ANV on the UHD 630 and the Iris Xe, KosmicKrisp on the M3, llvmpipe), for the streams'
render target shapes and heights 3 and 4: in a buffer that ends at the rows' end, in place on
every venue but llvmpipe, which copies a height that is not a multiple of 4; in a buffer that
ends at the last texel, copied where the pitch is wider than the row; a sampled texture in place
everywhere.
- tests::over (device cfgs): a 16-texel RGBA8Unorm render target at the device's pitch, of 3 and
then 4 rows, in a buffer that ends at its rows, is copied wherever its advertised subresource
passes its rows, and on lavapipe the 3-row one is copied and the 4-row one in place; a pass that
clears and stores it leaves its texels the clear's and every other byte of a span 64 KiB past it
the host's sentinel, its copies counted where it is copied; a sampled texture over the same
buffer is in place on every device.
- tests::over_aliases and tests::layouts print and document the render-target rule where a device
does not take their render target in place.
Checked by the jobs named in the lane's report: the rt check (clippy in every configuration, the
suites, rustdoc), the device legs on lavapipe and every GPU, and the over-copies of b3, u2 and u3
played on a 780M and the Iris against development.
The 87 rows the whole-set replay of the new runtime refuses with the cube array gap
("cube array textures are not built", seven cases: heap sizes, format footprints, read-write
tiers and texture descriptor pairs) take the typed reason "no stream uses it yet", naming the
cube census: m3-max-48683, 48687, 48688 and 48720 read every texture descriptor, made texture and
newTextureView of the ten replay streams (the gb, glbench, web3d, windrag and webdiv recordings)
and found no CubeArray type; glbench's two recordings make 13 Cube textures each.
Rows written by class from the whole-set output of m3-max-48742 (lavapipe on um790, the gap's
commit), refused rows only: no divergent row is taken as a cascade of the cube refusal.
RecordingRange::last_frame holds the rule the player applies (the
earlier of --until-frame and the range, unless --past-range yes), so a
test reaches it without a device: a_play_ends_at_the_recording_range_unless_asked_past_it.
A known-bad tail cost a ring timeout on a shared card and a wrongly
bounded play. The player now ends every play at the recording range by
default:
- the stream's sidecar, NAME.range beside NAME.0000.m2vr, one line:
"last-frame F" or "whole";
- else the player's table RECORDED_RANGES for the streams recorded
before sidecars, found by the first segment's file name and byte
length: u2 1128, u3 1178, r3 1137, r4 1099, b3 whole;
- else the whole stream (the 3D streams until their ranges are stated).
--past-range yes plays past it; without it --until-frame F stops at the
earlier of F and the range. Every report says which range the play
used, where it came from and whether the play ends there, on a range
line after the completion mark; a sidecar of neither form is a harness
error (exit 2). docs/REPLAY-STREAM.md: section 1 names the sidecar,
section 10 the default, the flag and the report line.
Tests: replay::tests a_recording_range_comes_from_the_sidecar_then_the_table
(sidecar over table, table row by name and length, no row, bad sidecar);
integration replay_range runs the binary over a synthetic stream with no
sidecar, a last-frame sidecar, the flag and a bad sidecar (no device
opens); replay_completion_mark now expects the range line second.
The arm-L rule's end: the last arm (L2', which sent a group at once from an idle queue and
re-took only while work was in flight) brought the 2080's frame_5cb submissions from about 2.5
to 2.1 a run and its throughput 7% closer, but it put the first buffer from idle up to 3.4 us
later on the XTX and the 780M's frame row two in flight up to 12% behind (48705, 48748), so it
does not land and the row becomes the known gap: NVIDIA's latency per submission; rt submits
sooner. Latency from idle is equal, and the r3 play on the 2080 is 1.5x ahead of the old runtime,
with the recorder caveat: r3 was recorded before the recorder's completion fix.
Docs only.
rt made VK_IMAGE_VIEW_TYPE_CUBE_ARRAY views without the imageCubeArray feature, which its floor
(Vulkan 1.3) does not require: the conformance whole set's layer leg on lavapipe (job
m3-max-48531) logged VUID-VkImageViewCreateInfo-viewType-01004 ten times once the rt side made the
cases' cube array textures. No replay stream makes a cube array texture or view (cube census over
every stream, jobs listed in the landing message), so by the planner's scope rule a cube array is
a typed gap until one does, and the floor is unchanged.
- error.rs: Gap::CubeArrayTexture, basis ours.
- texture.rs: prepare refuses a CubeArray descriptor, which every texture and every view of one
passes through, so no cube array view is made; the descriptor's and new_texture's docs name it.
- README: the texture section's gaps.
- docs/REFUSALS.md regenerated; the API signature table blessed (one variant added).
- tests/texture.rs: a cube array texture is the gap on every device of the cfg.
Verified: nothing yet; the next check job compiles and runs it.
The planner's rule: a cold first sample is compared cold against cold. The creation rows ran in
five processes that each timed both runtimes, the new runtime first, so the driver's
process-wide setup fell on the new runtime's first pipeline and the old runtime's first samples
came after it, warm. Measured on the Iris Xe (job 48650, ms01 alone, both runtimes from the
harness at cb25e3a83e, five processes each): the old runtime's create_state/first was 5265.8 us
behind the new runtime in one process and 16732.8 us in a process of its own (0.315x);
device_first 0.167x, first_call 0.099x. The one-process ratio new/old 1.302 at first was a
cold-against-warm ratio; cold against cold it is 0.410.
Of the two forms the planner allowed, each runtime's own fresh process is the cheaper: the
harness does not change, and the extra five processes a leg runs take about a second each
(create_state's processes on the Iris ran in under one second). The other form, one unrelated
pipeline before either runtime in a shared process, would need harness code and leaves the
first samples process-warm, not cold. So each of the five rounds now runs `--runtime new` and
`--runtime old` in processes of their own, each on a fresh driver cache and store, the order
alternating from round to round (new first in rounds 1, 3 and 5); the first round's two outputs
are kept whole, the later rounds' first samples as before. The records, their names and the
budget's medians do not change.
Verified: the matrix's Python tests in the job named in the landing message (the harness-runs
test now pins the processes and their order).