METAL2VULKAN_ENCODER_TIMES counted a render encoder's draws only where a draw
took every step: a draw drawn again as before (render/draw_again.rs) or rebound
(render/draw_again/rebound.rs) bumped the encoder's draw calls but not its
timed work, so a row named a fraction of its draws (a measured guest run: rows
of about 2300 draws/s against about 36k indexed Vulkan draws/s). Both paths now
count as the program's draws, as every step's do.
METAL2VULKAN_LOG_PASSES watched only textures by format and size, and its
256-line bound was spent before the pass of interest ran: in that run every
2768x1570 pass before the measured step printed (256 lines distinct even with
object IDs left out, 171 by attachments and states alone), so the pass the
encoder times ranked first never printed. A `state:HASH` entry now watches a
render pipeline state by the label hash the encoder times name their rows by
(encoder_trail::label_hash), so a run can name exactly the pass it needs; each
state in a line carries its hash, so a line maps encoder-time rows to states.
The hashes are worked out only where the log watches a state or prints a line.
The bound and the once-per-pass rule are as before.
Both are default-off diagnostics and change no work while off.
Tests: tests::encoder_times::an_encoder_s_draws_again_count_among_its_draws
(draws again as before and rebound, each counted, in a line of all its draws;
fails without the fix: the line names only the draws that took every step);
tests::pass_log state-entry parsing, refusals and matching.
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.
What: commit_and_submit's own pass (and the pass the lowering thread makes for one left for a
render encoder's end) keeps inline only its own command buffer's submission handlers, which run
on the committing thread inside the call, in their turn, as before. Every other command buffer's
handlers whose last batch the pass submits go to the device's handler threads right after that
submission, as one segment with its Turns ticket; the committing command buffer's ticket is taken
as its batch goes, so submission order holds. Both of submit_plain_ready's places that take
handlers (a submitted last batch and one held in the group) go through keep_or_hand_off.
A transition to Completed or Error whose transition to Scheduled is still owed is posted behind a
gate only where its submission handlers have not run (gate_for_handlers); otherwise plainly. The
gated post pushes the item behind the gate and opens the poster's closing under one lock with one
look for a thread (Contexts::post_gated), where post_behind and open made one each. FAST-PATHS
records the hand-off's own cost (19.1 wakes a frame).
Why: on PHOENIX, in the guest-shaped submit-cost leg after the scheduler-pass hand-off
(RUNTIME 2437), a submission's return to its own handler was p50 991 / p99 5231 us where a
committing thread ran it (978 handlers), against p99 380 on handler threads: a committing pass's
handlers waited for the rest of that pass's submissions. The gated post's second look for a thread
cost 4.4 wakes a frame.
Tests (submission_turns): a_committing_pass_keeps_only_its_own_submission_handlers_{exact,grouped}
(fails at control C2 m3-max-35888, the hand-off reverted: the earlier command buffer's handler ran
on the test thread); a_gated_completion_is_posted_with_one_look_for_a_thread_{exact,grouped} (fails
at control D m3-max-35877, post_behind + open: [(true,2)] against [(true,1)]). The check takes the
device's queue plan.
Verified: msi m3-max-36014 at bd810397db: build, runtime clippy plain and --cfg m2v_gpu, unit
44/44, sigs, lavapipe suites 126/126 (encoder_holds TextureWrite passes). Workspace clippy x3,
rustdoc and lvpval 30/30 at the pre-rebase tip 2d09ed2392 (m3-max-35927). PHOENIX m3-max-35923
(suites at df21628b0f): handler-thread wakes per frame 50.2 -> 48.37 (post_behind + open 8.9 ->
post_gated 6.72); seen to seen-handler p50 11, p99 3658 us.
Degradation kinds added: none.
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 shadow's copy back spliced (RUNTIME 2431) and its merge on the host
(RUNTIME 2432) leave their CPU parts, SpliceDrain and MergeDrain, to a
host step in a Deferred::ShadowSplice segment. Each drain held the
truth's Buffer (`_buffer`), and the segment lies in the command buffer's
recorded parts, which its completion does not let go of: only
State::reset clears them, as the CommandBuffer goes. So a no-copy
buffer whose texture's write-back went through a host step kept its
import past the completion for as long as the program kept the command
buffer, where Metal lets go of what the commands used, and runs the
deallocator, at the completion.
tests::encoder_holds::a_no_copy_buffer_a_committed_dispatch_writes_a_texture_over_keeps_its_import_until_completion
failed on development ("the deallocator never ran"): it makes its
texture while the device's check is pending, which splices
(shadow_splice::splices), so the dispatch's write-back merges on the
host.
The rule the drains now rest on: the host step runs before its command
buffer completes, and until then the command buffer holds what its
encoders' commands named (`retained`, retained.rs), the texture among
them, which holds the buffer whose pages the step writes. The runtime
makes no command buffer with unretained references, so that hold is
always there. The drains drop `_buffer` (SplicePlan its buffer, and
ShadowMerge::drain its parameter); what they still hold is the
runtime's own: the merge with its scratch, and the arena's region. The
SAFETY comments and the ShadowSplices doc say what holds the pages.
Degradation kinds added: none.
Verified: see the jobs named in the landing report (the failing test at
the fix and at its parent on lavapipe, at the fix on PHOENIX, the shadow
and hold suites, clippy in three configurations, rustdoc).
Verified: msi m3-max-36002 at 4606d9e40c (same tree): CLIPPY=0, CLIPPY_GPU=0, RUSTDOC=0. Lavapipe control + fix (m3-max-36003) and PHOENIX follow on development.
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.
On the Iris Xe (RPL-P, ANV) the split merge's own GPU work (two buffer
copies of the pieces beside the texels, three barriers and the kernel's
dispatch) cost about 0.6 ms a command buffer for the guest's 34x34
RGBA16Float target (m3-max-35898: draw minus clear 0.69 ms, against
0.10 ms when the merge went on the host whole), while the host step's
word loop costs about 0.30 ns a byte (4.97 ms for a 1920x1080 target's
16.6 MB, half its texels changed). So the split pays only past about
2 MB of rows.
A merge on the host whose cut rows hold at most HOST_WHOLE_BYTES (1 MiB,
half the break-even) now goes on the host whole again; larger ones
split. A merge none of whose rows' lines holds a byte beside its texels
still goes by its kernel alone, as on any device. The whole merge is
also the exact form for the unmeasured case (a CPU write to a texel the
commands left in a line whose other bytes they changed), so the known
gap now applies only where the kernel stores: past the bound, and where
no row's line holds a byte beside the texels. Both forms keep the
measured padding contract, so there is no switch and no FAST-PATHS row.
WorkCounts::shadow_host_steps counts the host steps that ran for
encoders' copies back spliced and merges on the host: against
command_buffers_submitted, the GPU-to-CPU round trips a command buffer
pays, for a walk to read before any deferral of them.
Tests:
- shadow_runs::merges_on_the_host_go_whole_up_to_the_bound_and_split_past_it:
over pages 16 bytes into a page, a 512x512 BGRA8Unorm target (1 MiB
of rows) compares every byte of its rows on the host, and a 512x513
one each row's first and last lines alone; each one host step.
- shadow_write_lines: the contract test's draw merges now compare every
byte of their rows; the cost test alternates its verdict arms round by
round, so clock drift and order weigh on both alike (the 1080p gap
35898 showed, equal in Clear and Draw, with the same work recorded in
both arms by every count); a new test prints, for a render target
whose rows end a texel short of a 4096-byte page (1023x256 and
1023x1024 BGRA8Unorm), under the device's own check and default
policy, over pages imported by pointer and as dma-bufs: every host-page
class's renders and copies verdicts for those row ends and its memory
flags, the form the texture takes with its notices, and the median per
command buffer of a clear-and-store and of a draw.
Degradation kinds added: none.
Verified: msi m3-max-35933 at f763e15338 (same tree): CLIPPY=0, CLIPPY_GPU=0, API=0 (15/15), release archive built. PHOENIX, lavapipe and the Iris run follow on development.
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 shadow's merge in place into host pages, on a device whose stores
write back the lines they end in (the Iris Xe under ANV) or whose check
has not answered, went on the host whole: the host step compared and
stored every byte of the merge's rows. On the Iris that cost 12.7 ms a
merge for a 1920x1080 RGBA16Float draw (17.7 ms a command buffer
against 3.7 ms by the GPU kernel), and the guest's scene has about 73
such shadows.
The merge now splits as the splice of a copy back does:
- Its kernel stores the changed words of each row's bytes in the lines
that hold the texture's texels alone (ShadowMergeStores::Words, never
whole blocks).
- The host step merges only each row's bytes in the lines that also
hold a byte of no row of the texture's: the bytes between the rows and
around them (shadow_splice::beside_texels; at most a row's first and
last line).
- Before the kernel the GPU copies those pieces' kept bytes into a
region of the command buffer's arena, then their changed bytes over
them in the kept part, so the kernel finds them unchanged and stores
none of them; the host step compares the region's bytes with the
changed part's.
- The host step compares 4-byte words and stores a changed word with one
AtomicU32 store (the changed word where all four bytes differ, else
the word as it holds it with those bytes changed, as the kernel's
Words form does); bytes outside whole words go one by one.
- A merge none of whose rows' lines holds such a byte (rows that start
and end on lines, as the 1920x1080 plane's 15360-byte rows do) goes by
its kernel alone, with its fetch view and kept image where it has
them. A merge not cut to its texels' rows stays on the host whole.
The measured contract is the padding: row_padding_writes found the M3
Max, the 5300M and the UHD 630 keeping CPU writes to the bytes between
and around a texture's rows under clears, stores and draws, and over
IOSurfaces under kernels. No probe measured a CPU write to a texel the
commands left inside a line whose other bytes they changed, while the
command buffer runs; the kernel now stores into such lines, so that
write may be put back on the Iris. FAST-PATHS's known gaps record it,
beside the measured contract.
WorkCounts::shadow_merge_bytes_on_host counts the bytes the host steps
compared. Buffer::own_pages_flags gives a buffer's memory type flags,
which the cost test prints for a buffer made as the host scratch is,
beside the host loop's time over plain heap memory and over that
memory (1920x1080, half the texels' red and blue changed).
Tests:
- tests::shadow_splice (pure): the pieces equal the rows' bytes in
lines beside the texels, found byte by byte, over 9 shapes and 6 page
phases (wrapping among them); the host loop stores the differing bytes
alone at every alignment.
- tests::shadow_write_lines: each draw merge's host step compares 16
bytes a row (the row's last texels, in its padding's line); the cost
test's 1920x1080 draw no longer merges on the host.
- tests::shadow_runs: the rebind test of host merges puts its pages 16
bytes into a page, so every row's first and last lines hold bytes
beside its texels, and asserts the bytes compared (a line a row).
Degradation kinds added: none.
Also (65db6f5b40): the old device-local query, left with no callers, is gone; the probe prints
the scratch's memory flags by name.
Verified (fplend): msi m3-max-35872 at a5289d8132 (same tree as 65db6f5b40): clippy 0, clippy
--cfg m2v_gpu 0, api_signatures + api_surface 15/15, debug and release archives built; 35850:
tests::shadow_splice 5/5 (host pieces against a byte-by-byte answer over 9 shapes x 6 page
offsets; the CPU word loop at every alignment). PHOENIX, lavapipe, rustdoc and the Iris run follow.
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.
What: the scheduler thread's passes no longer run the submission handlers of the command
buffers they submit (or hold in a group, or make Scheduled behind a host step) at the end of
the pass. Each time the pass is about to look for its next batch, it hands the handlers taken
so far, as one segment with its Turns ticket, to the device's handler pool (one context of the
"metal2vulkan-handlers" threads, made at the first hand-off), and goes on submitting. The
segment runs there in its turn, so submission order holds across passes and with
commit_and_submit's own pass, which still runs its handlers inside the call on the committing
thread. A pass that settled a switch of storage forms keeps the handlers it took from then on
and runs them itself after the switch ended, as before, since the switch must end before those
command buffers are Scheduled.
The blocking wait in run_scheduled (a Finished that found Scheduled owed waited on a pool
thread for the submission handlers) is gone: such a Finished is posted behind a context gate
(finish_after_handlers), its place kept, holding no thread, and the thread that ran the
handlers opens the gate; the Finished then runs the owed Scheduled first. So no handler thread
waits for a submission handler, and the pool's cap cannot be exhausted by such waits.
A held group is cut short for another queue's submission handlers (Alone::Handlers) only where
the pass keeps them (a settled switch): handed-off handlers hold back no pass.
Why: in the guest-shaped submit-cost leg on PHOENIX, a command buffer's submission handlers
started 1683/5299/5776 us (p50/p99/max) after its own vkQueueSubmit returned, behind the rest
of the pass; 4561 of 5280 command buffers were seen complete before their own submission
handler ran, and seen -> seen handler was 1.4 ms p50 / 5 ms p99 against Metal's 0.28 ms p99.
Tests: submission_turns gains a_pass_s_submission_handlers_run_while_it_goes_on_{exact,grouped}
(a handler of an earlier submission starts before the pass's later submission returns plus the
pause) and completions_before_their_submission_handlers_hold_no_handler_thread_{exact,grouped}
(6 queues with owed Scheduled on a pool of 2 threads, all complete within a bound; test hook
contexts::TEST_LIMIT). waiter_submits::Held now holds the scheduler thread with a test hook
after the pass that handed off its command buffer's handler (trace::hold_after_hand_off,
Point::HandedOff), since a submission handler no longer runs there. Tests and lanes that held
the scheduler thread in a submission handler hold it in a submission check instead
(unsubmitted, host_memory's deallocator lane); queue_order's take-up probe notes from the
check, which still runs on the scheduler thread; commit_and_submit's held-check test asserts
the orders that hold (A's handler before B's, B's check before B's handler) instead of one
interleaving; the submission_handlers lane expects the handler threads; grouped_submissions'
cross-queue handler lane counts X and Y's one submission once all completed.
Docs: add_submission_handler names the threads (inside commit_and_submit: the committing
thread; otherwise the device's handler threads), README, RUNTIME-PORTING, FAST-PATHS (the
grouped-completion row's handler rule, the commit cost entry), scheduler, inbox, group,
submit, contexts.
Also: the completion_latency guest-shaped leg times each submission handler from its own
submission's return; the unsubmitted check and the deallocator lane hold the scheduler thread
where an empty opener runs no submission check.
Verified (complat): msi m3-max-35809 at 0e0c55e4e8: build, clippy -D warnings (runtime, plain and
--cfg m2v_gpu), unit 44/44, signatures, lavapipe suites 122/122, all 0; gem10 35797 at 4aa9c2ac29:
workspace clippy x3 and rustdoc 0. Negative controls (msi 35811, lavapipe): with the blocking wait
back, completions_before_their_submission_handlers_hold_no_handler_thread fails under Exact and
Grouped (5 of 6 never completed with 2 handler threads); with no hand-off,
a_pass_s_submission_handlers_run_while_it_goes_on fails under both. PHOENIX suites and the
submit-cost leg before/after follow.
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.
Eight comments and docs (dispatch_chain, compute_instantiated, spares_compute, unshared_hold and
its tests, FAST-PATHS) named the guest compute benchmark a workload came from, and two named a
consumer's job labels. AGENTS.md keeps consumer apps and benchmarks out of the tree; the shapes
and numbers stay, described by what they are (a guest compute benchmark's super-resolution
workload, its fluid simulation).
Verified: git grep finds no such name; cargo fmt. Comments and docs only.
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.
What: views::declare_twin, DriverWorkaround::PushReadsLengthenThreadPayload and docs/API.md
section 5 no longer say that the twin's NonWritable decoration lets ANV fold or merge its loads, or
that the twin without it read more than the uniform view. They keep the fact: the twin binds the
uniform view's own range of a constant buffer, which the dispatch only reads, so its views are
decorated NonWritable. The decoration and its test stay.
Why: a585a74686 gave that as the cause of the Iris regression between pins 825997e49c and
44505b3807. The evidence since says it is not:
- Iris A/B m3-max-35592 (ANV, Mesa 26.2.6, 5 rounds): dispatch_chain --binds params ran
358.8 us a dispatch with and without the decoration.
- Iris walk m3-max-35628 at bd3c1a8c37 (the decoration in): the two regressed workloads did
not move (19.72 -> 20.01 s and 28.53 -> 28.36 s GPU).
- ANV's own stats (INTEL_DEBUG=cs, m3-max-35722) for a kernel of ours that reads its constant
blocks through helpers and a private struct: twin at key 1 without the decoration and with it
compile alike (SIMD16, 722 instructions, 79 sends, no spills).
The regression's cause is under investigation separately: a scratch build without storage twins
(68e39640e9, walk m3-max-35702) brought the workload back, so the twins are involved, not their
decoration.
No behaviour change: doc comments and docs only, no version bump. The runtime-sources pin
re-pins at landing (views.rs and profile.rs are hashed).
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.
What: EncoderCore::finish_replay now prepares a ShadowSplice segment the encoding
again left (Deferred::left_again_by_an_encoding_again) as the commit prepared the
first one, leaving it for its host step with the commit's inputs and bound,
instead of asking to record it on the GPU alone.
Why: with the previous change the rebind encoded such an encoder again, but
finish_replay asked every segment that keeps no pipelines to record on the GPU
alone, and a host step's work refused the encoding again ("an encoder encoded
again whose work no longer runs on the GPU alone"). PHOENIX job m3-max-35779 at
3231f11017 showed it: tests::shadow_runs::passes_merged_on_the_host_are_encoded_again_at_a_rebind
failed with EncodedUseRebound, "encoders encoded again 0, refused 4". Lavapipe job
m3-max-35784 at the same tree failed the same test; CLIPPY_CPU=0, RUSTDOC=0, and
268 of 269 passed there.
Verified: cargo fmt only so far; the jobs reported with this tip run the tests.
Degradation kinds added: none.
Verified (fplend): msi m3-max-35787 at 060ecbcd45: clippy 0, clippy --cfg m2v_gpu 0, debug archive 0.
RUNTIME 2435's tree left passes_merged_on_the_host_are_encoded_again_at_a_rebind failing on PHOENIX
35779 (340/341) and lavapipe 35784 (268/269); the touched suites at this tip follow.
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.
What: an encoder that left a splice's or a merge on the host's CPU part
(Deferred::ShadowSplice) now keeps its log, and a rebind's encoding again replaces
that segment with the one it leaves itself over the new pages
(Deferred::left_again_by_an_encoding_again, in Segment::records_again and
reencode.rs's splice_fits). The first segment is retained unrun, as a replaced
pending dispatch's is. A rebind keeps the bytes' offset in their page, so the
copies back cut alike and the encoding again's parts match the first's.
This covers ShadowSplice only, not a staged scatter (Deferred::ScatterStage and
ScatterDrain, host_ram/copy.rs). An encoder that left a staged scatter still keeps
no log (Unlogged::Segments), so a rebind of its buffer fails the command buffer
with EncodedUseRebound as before. Whether a scatter's encoding again over the new
pages leaves segments of the same parts was not checked: its staging depends on
the chunks and imports the new pages lie in.
Why: after RUNTIME 2433 the rebind was no longer refused, but such an encoder kept
no log (Unlogged::Segments), so its command buffer failed EncodedUseRebound.
PHOENIX job m3-max-35745 at 343f4489d3 (RUNTIME 2433's tree) failed
tests::shadow_runs::passes_merged_on_the_host_are_encoded_again_at_a_rebind
("Error Some(EncodedUseRebound); encoders encoded again 0"), and so did lavapipe
job m3-max-35749. The other five tests that failed at RUNTIME 2432 passed there,
and so did 340 of 341 PHOENIX suite tests and 268 of 269 lavapipe ones.
Verified: cargo fmt only so far; the jobs reported with this tip run the tests.
Degradation kinds added: none.
Verified (fplend): msi m3-max-35769 at 4ac4c366b5 (same tree): clippy 0, clippy --cfg m2v_gpu 0, debug
archive 0. lavapipe 35749 at RUNTIME 2433's tree: 268/269, the one failure the rebind test this
fixes. PHOENIX shadow_runs / merge_scratch and the suites follow.
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.
Every compute or render state creation whose variant is not live
(VariantObjects::kept_or_create) settled the device's content-keyed maps:
the linked pipelines, the four graphics pipeline library parts, the shader
modules, the pipeline layouts and the sampler sets. Each settle walked
every entry with Arc::get_mut (a compare-exchange on each entry's weak
count) under the map's lock, so a creation cost O(objects the device
holds), a run of creations O(N^2), and creating threads queued behind each
other's walks. A guest benchmark's 7,981 compute makes spent 19.4% of their
on-CPU time in settle_device_maps and 6 + 3 ms asleep on those locks; the
new COMPUTE-CREATE-SCALING bench shows the slope (XTX, 4 threads: p50 10.7
us at 64 modules, 80.3 us at 4,160).
Now holders take a Share<T> from the map instead of a bare Arc<T>: the
object counts its shares, and the drop that leaves it with none queues its
insertion number on the map's release queue (a leaf mutex, each number
once until a settle takes it). ContentKeyed::settle drains only that queue
and destroys each queued object that still has no share, read under the
queue's lock and the map's (a lookup, the only way to take a share anew,
holds the map's lock; a later last drop queues the object again). The
objects destroyed, their order (insertion) and the calls that destroy them
are today's: the walk found exactly the objects whose shares had all gone.
No switch, no deferral, every map bound as before. The render libraries'
maps (Libraries::settle, the links and the four parts) are ContentKeyed
maps too, so a compute creation no longer walks them either.
Holders changed from Arc to Share: StageObject.module, VariantObjects and
KeptObjects samplers and layout, SharedLayout's sampler set, Link's parts
and layout, Linked. A layout's empty sampler set is Share::unmapped.
Tests (content_keyed, no device):
- a_settle_looks_only_at_what_was_released: 10,000 held, one released, the
settle looks at 1 object (0 with none released); the old walk looked at
10,000 each time.
- a_share_taken_again_before_the_settle_keeps_the_object, and the same on
another thread: a share taken between the last drop and the settle keeps
the object; released and taken again, it is queued once.
- settles_racing_shares_destroy_nothing_held: 4 threads take and drop
shares while another settles; nothing destroyed while held, each object
destroyed once.
- a_share_dropped_after_its_map_leaves_nothing: a share that outlives the
map's teardown drain goes without panicking and frees its object and the
queue.
Also: the COMPUTE-CREATE-SCALING and COMPUTE-CREATE-KEYS benches (ignored) and their profile
targets; the content-keyed map tests start their threads through exit_guard::spawn.
Verified (pipesettle): lavapipe gem10 m3-max-35753 (debug, m2v_cpu_icd) 142/142 (pipeline::*,
kept_variants, sampler_sets, linked_pipelines_shared, render_stage_digests, kept_across_calls,
core_image_libraries, exit_guard); msi 35734 clippy -D warnings 0 and 67 pipeline:: tests; gpucfg
build 35754. XTX release bench 35765 (not exclusive, same neighbour both runs), p50 us per creation
at 64 / 1088 / 4160 modules: T=1 5.9/9.3/21.8 -> 5.4/5.2/5.2; T=4 7.6/23.4/76.2 -> 6.8/7.0/6.6.
PHOENIX suites (35772) and clippy x3 + rustdoc at the tip follow.
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.
What: Deferred::ShadowSplice is now resolved at its calls, as a staged copy's
drain is. Its CPU part writes the pages the truth's buffer lay in at the encoder's
call, so a rebind before the command buffer's submission encodes that encoder
again (its CPU part over the new pages), and one after it keeps the old pages until
the command buffer completes (rebind.rs). Before this, a command buffer holding a
spliced copy back (RUNTIME 2431) or a merge on the host (RUNTIME 2432) refused
every rebind of its buffers (RebindProblem::EncodedUses) until it completed; this
fixes both.
The run tests (tests::shadow_runs) run on a shadow-policy device given the check's
answer that copies and shader writes keep their lines (blit_holds::lines_kept),
since runs open only where merges stay on the GPU. A new test,
passes_merged_on_the_host_are_encoded_again_at_a_rebind, runs the rebound sequence
with every pass merged on the host: the rebind is not refused, each pass merges on
the host once, and the texels match the private texture's. merge_scratch's
one_scratch expects a keep per pass where the target merges on the host, and still
checks that the device's memory grows by less than an eighth of a scratch a pass.
Why: PHOENIX job m3-max-35711 at RUNTIME 2432's change failed five tests:
- tests::shadow_runs::{rebound_passes_leave_their_runs, a_pass_alone_merges_in_place,
scissored_runs_keep_again_once_and_merge_in_blocks,
runs_over_host_pages_keep_and_merge_once};
- tests::merge_scratch::many_passes_over_host_pages_take_one_scratch.
Under the shadow policy the check never answers, so every merge over host pages
went on the host and opened no run, and the rebind was refused.
Verified: cargo fmt only so far; the jobs reported with this tip run the tests.
Degradation kinds added: none.
Verified (fplend): msi m3-max-35737 at 343f4489d3: clippy (runtime, all targets/features, -D warnings) 0,
clippy --cfg m2v_gpu 0 (compiles shadow_runs, merge_scratch, blit_holds), debug archive 0. The
PHOENIX run of the five tests RUNTIME 2432 broke, the new rebind test and the suites follows.
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.
What: a shadow's merge in place into a no-copy buffer's host pages, on a device whose
check of those pages failed, or has not answered, the copies or the shader writes of
texels whose rows end inside a line (the same rule as the copy back's splice), now goes
on the host. Its keep and the copy of the texels the commands left go into two parts of
a Shared scratch (ScratchKind::ShadowHost; the fetch view is not used, so the changed
texels are always copied). The encoder records only that copy, and a host step of a
batch of its own (Deferred::ShadowSplice, now carrying HostWrite::Splice or ::Merge)
compares the parts eight bytes at a time and stores each byte that differs into the
pages with atomic byte stores. Such a texture joins no run of passes (render.rs), so
each pass merges as its encoder ends. Devices where both checks passed keep the
kernel merge.
Why: the Iris probe (m3-max-35510) showed the merge kernel's stores losing CPU writes
to padding bytes in the line that holds each row's last texels, as the copy back did.
A CPU store changes only the bytes it stores, so the bytes the commands left, and
every byte the CPU writes meanwhile, stay. Metal keeps those bytes
(conformance probe row_padding_writes.m).
Where the merge stays on the GPU (FAST-PATHS known gaps): merges recorded between a
pass's instances, before a tile dispatch, into a held command buffer, at a segment's
end, merges through a copy, and the runtime's own Shared memory.
New WorkCounts fields: shadow_merges_on_host, shadow_merge_host_nanos.
Tests: shadow_write_lines now asserts the Draw rounds (keep + merge) put back no byte
and go on the host under unanswered verdicts, and follow the measured verdicts in the
second test. A new test, costs_of_a_write_back_spliced_or_not, prints the median
command-buffer time of a copy back and a merge for 34x34 and 1920x1080 RGBA16Float,
with verdicts unanswered and passed.
Degradation kinds added: none.
Verified (fplend): msi m3-max-35675 at bdb1e2cbae clippy (runtime, all targets/features, -D warnings) 0,
touched unit tests 3/3, api_signatures + fast_paths 34/34; msi 35689 clippy --cfg m2v_gpu 0.
PHOENIX suites (35711), lavapipe, rustdoc and the Iris cost run follow.
What: guest_shaped_completion_latency makes its device with queue_limits: None.
Why: the runtime tests' default queue limits (TEST_QUEUE_LIMITS, a round robin of two VkQueues)
refuse a third program queue, so the leg panicked at its third queue on PHOENIX (job
m3-max-35637), before and after alike. A guest's queues take the device's plan.
Verified: the next PHOENIX job runs it.
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.
What: a shadow's copy back (Step::Back) of a 2D texture's image, or of a texture
buffer's staging buffer, into a no-copy buffer's host pages is spliced where the
device's check of those pages (DmaBuf or Pointer) failed, or has not answered, the
copies or shader writes of texels whose rows end inside a line (Access::Copies or
Access::Writes of RowEnds::InLines, Failed or Pending). The GPU copies only the
columns that fill whole lines of memory (nonCoherentAtomSize): one region a slice
where its rows are a multiple of a line apart, else one a row. Each row's head and
tail columns go by the GPU into a line-aligned region of the command buffer's arena,
and a host step of a batch of its own (Deferred::ShadowSplice, after the work before
it completed) copies them into the pages a byte at a time, as the CPU's stores go.
The encoder notes the truth's writes after the step. A copy whose texels fill whole
lines alone copies back as before; a device where both verdicts passed copies back
as before. New count WorkCounts::shadow_copies_back_spliced.
Why: on the Iris Xe (ANV) a copy of texels into a buffer's rows writes back the
64-byte line holding each row's last texels whole, putting back older values over
the CPU's writes beside them. The lane's probe (m3-max-35510) lost 3,539 to 14,319
bytes a kind in 300 command buffers through a shadow's copy back and merge, where
Metal keeps every such byte (row_padding_writes.m). This breaks Metal's contract on
the guest's bytes; the merge is the next change.
Where the copy stays (docs/FAST-PATHS.md, known gaps): a copy back between a render
pass's instances or before its tile dispatch, into a held pass's command buffer, at
a segment's end recorded at a commit or a host step, of rotated, two-plane, tiled or
heap depth/stencil textures, and into the runtime's own memory.
Tests: tests::shadow_splice (the cut run as GPU and CPU over a map of host bytes:
every texel once, no GPU byte in a shared line, every shape of texel, width, pitch
and phase); tests::shadow_write_lines (the probe made a device test: the guest's
34x34 RGBA16Float target over dma-buf pages, buffer and plane forms, a clear's copies
back put back no byte the CPU wrote beside them and are spliced; and a copy back
spliced exactly as the device's measured verdicts say).
Degradation kinds added: none.
Verified (fplend): msi m3-max-35614 clippy 0, tests 0, signatures 0; 35623 clippy m2v_gpu 0;
lavapipe 35625 clippy m2v_cpu_icd 0, 216 passed, rustdoc 0; PHOENIX 35632 (um790) in-place +
shadow suites 287/287, shadow_write_lines 2/2: under the measured verdicts (Copies and Writes
Passed) 0 spliced; under HostPageTexturePolicy::Shadow (no check, verdicts Pending) every copy
back splices (+300 in 300 rounds, 0 bytes put back). The Iris run follows.
What: the commit_and_submit paragraph lists the at-commit work counts; it now names the
scheduler_at_commit_left_* counts too: why the call made no pass, or made one that left its
command buffer to the scheduler thread, by reason.
Why: the counts are public (WorkCounts) and consumer-facing; tip 1 added them without naming them
in the README.
Verified: documentation only.
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.
What: CommandBufferShared::schedule() now marks the command buffer's transition to Scheduled as
owed (State::scheduled_owed). Where that transition waits for submission handlers
(state.submitting), schedule() no longer posts it at once; it is held back (scheduled_deferred).
The thread that runs the submission handlers (run_submission_handlers) then runs it where it is
plain and its context is idle (run_alone, no handler-thread wake), or posts it. A command buffer
whose work completes before its submission handlers ran has its Finished transition posted, never
run on the waiter, and that transition runs the owed Scheduled step first (run_scheduled,
claimed once under the state lock), waiting there for its own handlers. A Scheduled item that
finds the step already run does nothing.
Why: the Scheduled transition used to be posted into the queue's serial context as the batch
went, and slept there (run_scheduled, while state.submitting) until the submission handlers ran.
Every later item of that context waited behind it, so the completion of the queue's previous
command buffer, seen on time, was posted late by as long as the next command buffer's handlers
took to run. reims's exacttail trace (780M, RADV, Exact, ca6259f7d1) found nearly every late
completion posted into a line that was running the next buffer's Scheduled transition, begun
60-290 us before the GPU end. With the previous commit the handlers run at the end of their own
pass, but the parked transition still held the line for the rest of that pass. Now a command
buffer's completion never waits for a later command buffer's submission handlers. It waits for its
own only where its GPU work ended before they ran.
Metal's orders kept: submission handlers before Scheduled; each command buffer Scheduled (its
scheduled handlers run) before it completes; each queue's Scheduled transitions in submission
order (the handlers' Turns tickets order the posts); completed handlers in commit order (the
waiter's turn order is unchanged). A command buffer that fails before it is scheduled owes no
Scheduled step and runs none.
Check: tests::submission_turns::a_completion_waits_for_no_later_submission_handler_{exact,grouped}.
A queue's waiter is held before it publishes a first command buffer's completion
(Point::Publish) while the queue's next command buffer is submitted. That command buffer's
submission handler then waits up to 10 s for the first one's completed handler. Before this change
the second's Scheduled transition, parked in the queue's context, held the first one's completion
behind it, so the wait timed out. Now the completed handler runs while the submission handler waits.
Also: tests::completion_latency::guest_shaped_completion_latency, an ignored measurement of a
guest's frames under CompletionPolicy::Exact (GPU end -> wait returned -> seen -> handlers, p50/p99/max,
three legs: plain, with submission handlers, and with a 250 us pause after each vkQueueSubmit),
and a test-only trace::seen_of.
Verified (complat): msi m3-max-35620 at de5ae45083: build, clippy -p metal2vulkan-runtime
--all-targets --all-features -D warnings (plain and --cfg m2v_gpu), unit 44/44, api-signatures
--check, all 0; lavapipe release 116/116 (scheduler, inbox, completion, submission_turns,
commit_and_submit, waiter_submits, held_step_order, ...) including both checks under Exact and
Grouped. Negative control m3-max-35597 (tip 1 + check 2 without the deferral): check 2 times out
at 10 s under both policies. PHOENIX suites and the PHOENIX latency bench follow.
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.
What: the scheduler thread's round made a pass, then kept passing while commits kept arriving
(Inbox::look_again), and only after the last of those passes ran the after-work: storage-form
settles, the owed completion turn, the submission handlers in their Turns tickets, and the holds.
Now Inbox::pass_each runs each pass's after-work once that pass let go of the lock and counted
out, before the look that may pass again (round() -> let_go per pass). Inbox::pass,
which only the tests called, is gone; they go through pass_each by a test-only trait.
Why: a command buffer's transition to Scheduled waits for its submission handlers
(run_scheduled, while state.submitting), and its queue's context line waits behind that
transition, so the completion of the queue's earlier command buffer was posted that much late.
reims's exacttail trace (780M, RADV, Exact, ca6259f7d1) saw the scheduler on CPU for 1.2-6.3 ms
of back-to-back passes (240-267 us per submit info), up to 22 ms on a first open, with the
handlers waiting for all of it. The scheduler and Inbox docs already said the handlers run right
after their pass; the code did not.
Also: commit_and_submit's own pass now counts why it left its command buffer to the scheduler
thread (WorkCounts::scheduler_at_commit_left_*). Two of the counts are for when it made no pass:
the commit was already taken in, or a pass was under way. The rest are for a pass that ran and
submitted nothing, by why its command buffer's first batch stayed in the order: gone, behind its
own queue, behind another queue, an event wait, checks, a host step, a binary wait, an unshared
hold, or other. reims's counts show the 780M making ~7.5k at-commit passes a window that submit
almost nothing. Which condition leaves those batches is open; these counts are meant to answer it
in the next walk. The predicates plain/plain_ready now answer why (LeftAtCommit) instead of a
bool.
Checks: tests::submission_turns holds the scheduler's pass in a submission (Point::FirstWork)
while another queue commits. The first command buffer's submission handler must run before the
later commit's submission is called (its kernel_end_time). Under the old round, the handler ran
after it. The test runs under CompletionPolicy::Exact and ::Grouped. tests::inbox has a unit test
of pass_each's order (pass, after, pass, after) that also shows the thread is uncounted during
its after-work.
The second caller of Scheduler::submit_at_commit (a commit_and_submit whose last render
encoder's end the lowering thread lowered) names its command buffer too.
Verified (complat): msi m3-max-35593 build 0, clippy -p metal2vulkan-runtime --all-targets
--all-features -D warnings 0, unit nextest (inbox|scheduler|left::|work_counts|completion)
44/44, api-signatures --check 0. The device check and its negative control run on lavapipe
(35596/35597) after landing.
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.
Where the translator refuses a draw's fan-out variant for the device's
limits (pipeline::link::fan_out: a vertex function's clip distances past
what the device carries beside the fan-out's four, a geometry stage of
barycentric weights, a layer or a viewport), the host step's draw settles
again asking for none and draws region by region. An execution's settle
at commit only dropped the error, so it began no pipeline for such a
draw, and a FanOut host step made the regions variant's VkPipeline itself
on the first frame of the state.
One function now decides the refusal for both (render.rs fan_out_refused).
settle_draw_of settles again without the fan-out outside the encoder's
fan-out, as the step does, so the regions variant's pipeline is begun
with the key the step's draw looks up (its multi-draw viewports included,
region_batch); under the encoder's fan-out it settles nothing for the
draw, which that fan-out does not take.
Test: rate_mapped_fan_out::a_refused_fan_out_variant_s_first_frame_makes_no_pipeline. The owned
fixture fan_clip_distances holds fan_clip_triangle, a vertex function of six clip distances
placing each vertex where tob_triangle does: with the fan-out's four it needs ten, past a
device's eight, so the translator refuses its fan-out variants. The workload's plain commands
take it (Workload::placed_by), and under FanOut the test checks, on a fresh device's first
executed frame, that only the command across w = 0 is probed, flagged and drawn through the
region-copy variant, that the host step makes no VkPipeline itself
(WorkCounts::host_step_pipelines_made), and that the pixels are the encoder's.
Fixture: engine/fan_clip_distances.metal (our own MSL; .ll and .air.ll from
scripts/regen-air-fixtures on the M3, job m3-max-35588, SDK 27.2).
Verified (rmkey): lavapipe m3-max-35590 with the fix: 0 made at the step, counts [1,1,0,1],
pixels equal, 17/17 rate_mapped_* tests, clippy (m2v_cpu_icd) 0. Without it (control commit,
the settle's retry disabled; gem10 m3-max-35591): 1 made at the step. The fixture's
expectation and golden rows re-bless on development.
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.
What: memory::views::declare_twin states the twin's binding unwritten
(ModuleBuilder::unwritten_buffer). The serializer then decorates the twin's variables NonWritable,
its word view and its uvec4 view, where its own walk finds no store reaching them. No store goes
through a twin: TwinMem's write, write_bits, write_unit and write_vec all refuse.
Why: on the Iris profile (DriverWorkaround::PushReadsLengthenThreadPayload, ANV, Mesa 26.2.6)
RUNTIME 2413 reads a kernel's constant slot through its storage twin where the slot's
RangeAtBindOffset holds. The twin was not decorated NonWritable, because serialize::non_writable
only takes the bindings the lowering states unwritten. ANV runs nir_opt_access
(anv_shader_compile.c), which marks a storage buffer's loads reorderable only where the variable
is NonWritable or the shader writes no buffer. A kernel that writes its output therefore kept
every twin load apart, wherever it stood: no CSE, no hoisting, no merging. The uniform view's
loads, a uniform buffer's, are always reorderable, and the driver folded them.
Metal's compiler leaves a constant buffer's repeated loads for its own backend to fold. One guest
depthwise convolution kernel loads its params.srcSize (<4 x i32>) four times in every iteration
of its tap loop and its dstSize about ten times, and every inlined sample reads its ndArrayParams
again. Read through the twin, each of those loads ran per thread. A benchmark's Iris walk rose
from 754 to 1120 us a dispatch on that workload between pins 825997e49c and 44505b3807, and
825997e49c rebuilt matched the old walk (771). dispatch_chain's bump_wide reads its constant
word once, so the 2413 A/B could not show this. --binds params now can.
Aliasing (why NonWritable states nothing the uniform view did not):
- storage_twins gives a twin only to a slot whose form is a uniform view by its own window. That
is view_kind's uniform view: a Metal constant address-space slot that no store or atomic of the
function reaches, with a Bounded window, never the per-stage storage-buffer fallback.
- bind::instantiate::bind_buffers writes the twin's descriptor with the uniform binding's own
buffer and DescriptorRange, pushed once for both.
- So the twin's bytes are exactly the uniform view's, under the same rule that chose a uniform
view before the twin existed (the base form, 825997e49c).
- A uniform buffer is read-only to the module, and nothing orders it with a write through another
descriptor of the same dispatch. Metal's constant address space is read-only for the dispatch.
A guest that binds one MTLBuffer range as both a constant and a written device slot got no
ordering from the uniform view either; the decoration claims no more than that.
- The runtime binds a twin nowhere the uniform view is not bound. A slot bound to nothing binds
both from the device's zero buffer (RUNTIME 2420), which no command writes.
Docs: views.rs (the module docs and declare_twin), ModuleBuilder::unwritten_buffer,
serialize/non_writable.rs, the workaround's profile doc, docs/API.md section 5.
Test: engine_access's
a_kernel_uniform_view_reads_its_storage_twin_at_its_bind_offset asserts that every variable bound
at the twin's binding is decorated NonWritable. It fails without the change, where no twin
variable is.
SEMANTICS_VERSION 2134: translation output changes on the Iris profile alone (the twin's
decoration). The golden hashes and the authored compile census re-bless on development. New
Degradation kinds: none.
Also: dispatch_chain gains --binds params and params-off (bench only), a kernel that reads its
constant block again in a loop: params reads it through the twin at its bind offset
(RangeAtBindOffset 1), params-off through the uniform view at its residual (the base form).
Verified (ftreg, msi m3-max-35578 at 00a41f052f): clippy -p metal2vulkan -p metal2vulkan-runtime
--all-targets --all-features -D warnings 0; twin/NonWritable tests 44/44; negative control
(views.rs before the change) fails engine_access's twin test with [(12, false)]. Release A/B
arms built (35573/35574/35576); the Iris A/B follows. RUNTIME 2427: the translation changed.
a_host_step_s_first_boxed_frame_makes_no_pipeline draws the boxed-draws
workload's executed frame first on a fresh FanOut device and checks that
its host step boxes the four patches and makes no VkPipeline itself
(WorkCounts::host_step_pipelines_made). The fan-out test's first-frame
line now prints the regions a multi-draw takes, the evidence that the
regions variant drew several regions a command (region_batch).
A device's first frame of the commands' states, with no encoder draw
before it, counts the VkPipelines its host step makes itself
(WorkCounts::host_step_pipelines_made) under FanOut (the eight's pattern
and the parted probe's commands) and under Exact. The earlier tests drew
the encoder's frame first, whose draws may make the step's keys ahead,
so they could not see a settle at commit that keys a pipeline otherwise
than the step.
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 hand after land-pkt.sh's
fast-forward step failed once (the lane removed its tree during the landing).
63bbaa086d removed the submission checks' follows check, which remapped
pages under a live host-pointer import, outside VK_EXT_external_memory_host's
contract, and rewrote the FAST-PATHS gap, HOWTO and host_range_remapped
docs: what a no-copy buffer reads after a remap under it is unspecified.
Four follow-era sentences remained:
- DeviceShared::submit_checks still named a check of whether pointer
imports follow their address (only Merge and ImportTax remain);
- HostAliases::remapped and host_range_remapped_now said a driver's
pointer import takes the remapped pages anew at its next submission;
- WorkCounts::host_remaps_over_imports (public) said ANV's userptr on
i915 takes its pages anew, all of them, at its next submission.
Each now says what is counted and that what such an import reads is
unspecified (docs/FAST-PATHS.md, known gaps). Comments and doc text only.
Verified: comments only; grep for 'follow', 'taken anew' and 'takes
anew' in the runtime's sources and docs finds no other.
The view bullet now states the measured cost of cdcd787fb8's listing of
a render target's channel-order sibling formats (BGRA8Unorm and
BGRA8Unorm_sRGB of an RGBA8Unorm texture) in its image's format list,
which lets a pass render into such a view of the image in place.
Measured with tests::reordered_list_compression (ignored probe, carried
archive of d6366dcf65 built in m3-max-35552 on msi), the runtime's own
plan of a 2048x2048 Private ShaderRead|RenderTarget texture, its
VkImageCompressionPropertiesEXT::imageCompressionFlags, Mesa 26.2.6:
- Radeon 780M (PHOENIX, m3-max-35557) and RX 7900 XTX (NAVI31,
m3-max-35558): DEFAULT as planned, without the sibling's formats and
not mutable, for RGBA8Unorm and BGRA8Unorm.
- RX 550 (POLARIS12, m3-max-35556): DISABLED in all three forms,
the not-mutable control included: the driver compresses no render
target image of the runtime's usage there, so the list costs nothing.
- lavapipe (m3-max-35553): no VK_EXT_image_compression_control.
ANV and NVIDIA not measured.
An ignored measurement (tests::reordered_list_compression): the runtime's
own plan of a 2048x2048 Private RGBA8Unorm and BGRA8Unorm render target
(ShaderRead | RenderTarget, no PixelFormatView) made on a second VkDevice
of the runtime's physical device with VK_EXT_image_compression_control,
as planned (the channel-order sibling's formats listed, cdcd787fb8),
without the sibling's formats, and not mutable at all (the control), each
image's VkImageCompressionPropertiesEXT::imageCompressionFlags printed as
REORDERED-DCC lines.
Why: cdcd787fb8 lists the sibling's formats in every such render target's
image so a pass renders into a BGRA8 view of an RGBA8 texture in place;
its compression cost was expected from Mesa's sources (RADV before GFX11
keeps no DCC for a list of differing channel orders), not measured.
Verified: not yet built.
The pass that sends a batch counts a slice's rescue only after its
submission returned (scheduler/mod.rs, `pass`), so the batch's command
buffer can complete, and the test's poll see it, before that count is
made. On gem10's PHOENIX under load (round 44505b3807) the held-wake
test read 0 rescues while its steps showed the slice's pass send the
kept group and then "a slice's rescue" 350 us after the kept fill's
completion was published: the test, not the product, was wrong.
Each of the file's three reads of the counts after the work now waits
for the scheduler's thread to sleep again (scheduler_wakes' `asleep`,
now pub(super)), when no pass is under way and its counts are made.
The two tests that assert no rescue came read too early in the same
way and could pass with a rescue uncounted. event_wake_bench and
submit_long_bench print the same delta and take the same wait.
Verified: see the lane's lavapipe control (a 20 ms delay before the
count: the old test fails, this one passes) and the PHOENIX run.
The lane's devices take DevicePolicy::exact_answers(), CompletionPolicy::Exact
among them, so the check's validated device grouped nothing and counted no
reason; the PHOENIX rerun (m3-max-35449) showed the step's batch submitted at
commit with none counted. The check now sets the default Grouped, as the
grouped_submissions checks do. No runtime change: the steady_presents legs,
on a device of the default policy, accounted for every batch.
On PHOENIX (job m3-max-35424) the check's first step, a fresh queue's first
command buffer filling a buffer never used before, counted no reason where
unknown run was expected. Each buffer is now filled once on a queue of its own
before the steps, so no step takes a buffer's first work, and each step prints
the batches it made (submitted or held, grouped, at commit), the command
buffers taken with no submission and the kernel submissions, so a step that
counts nothing says where its batch went.
device::tests::mechanism lists every RuntimeFact by index and its expected mechanism:
OpenClLineTexture is 103, a Variant. The uniform and memory-plan tests build air::Entry field
by field and name open_cl_1d_images (job m3-max-35395 stopped at E0063/E0004 there).
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.