A fragment function that reads and writes one attachment reads it as its output's type (MSL
refuses otherwise), and the integer reads of a float, BGR10_XR and A8Unorm attachment 0 write
attachment 1. The first run on the M3 stopped at MSL for these four shapes.
Verified: clang -fsyntax-only here; the M3 run follows.
(cherry picked from commit b2d74a0fdc8adc606f7fb76e8329617f13f05395)
One shape a process (an assertion ends it): bfloat blends, a blend of the second source
without the second or first output, outputs and fetches of the wrong class or of fewer
components, alpha to coverage over an integer attachment, a color input without its attachment,
and tile functions whose imageblock reaches an unformatted or wrong-class attachment, with
controls. It prints CREATED, or NIL with the NSError's domain, code and text; a process that
ends shows its exit status and stderr to the caller.
Verified: clang -fsyntax-only here; the M3 run follows.
(cherry picked from commit a203a43dee2ed4fa257c1772e96935058ad6d655)
acfb2e8d70 counted, beside the buffers made, the runtime's pooled blocks live at the refusal that
were not live before the object (memory_blocks_live + empty_memory_blocks_live). On lavapipe
that read 2 though the device held only its limit of 5: 2 chunks, 1 dedicated block and 2 pooled
blocks, the pooled ones each holding one of the test's buffers (m3-max-13682 at acfb2e8d70:
pooled_memory_blocks_made 0 -> 2, dedicated_memory_blocks_live 0 -> 1, memory_blocks_live 0 -> 2,
3 buffers made). Lavapipe's pools take these buffers, where the M3 Max and the 780M give each a
dedicated block. So the count could hide up to two slots there.
The count is now the pooled blocks made from just before the object on and not freed since (one
vkAllocateMemory each), less one for each buffer made that lies in a pool rather than in a
dedicated block. That is at most the runtime's own blocks live at the refusal, never one of the
buffers'. From the counts already measured: lavapipe 2 - (3 - 1) = 0, the M3 Max 1 - (2 - 2) =
1, each with the room of 3 met. Without the give-back wait it is 0 with 0 buffers made.
Verified: the next potluck jobs (lavapipe, the M3 Max, the 780M, and the control).
(cherry picked from commit 4be5591242ccedb3023ae3ff8a65bf1ede1275e8)
bind/plan/slots.rs gives SpecKey::HeapRawTextures' value from the command's heap members, and
since the filter note's change it named lower::texture::heap_raw::HELD and FILTERED. heap_raw.rs
reaches the translator's internals (select, the SPIR-V builder, the arithmetic), so the runtime
guard found a runtime input reaching a file that is neither an input nor listed
(candidate::engine::artifact::tests::the_runtime_sources_are_the_committed_ones on development
at 7339729f27: [(metal2vulkan/src/lower/texture/heap_raw.rs, {metal2vulkan/src/bind/plan/slots.rs})]).
The two bits are the binder's key, so they move to bind/heap.rs beside heap_raw_form, which
decides what a heap holds by its raw texels. The plan (slots.rs), the decode's note
(lower/texture/heap_raw.rs) and the sample filter's note (lower/sampler/select.rs) import them
from there. No value or behaviour changes.
The runtime-sources pin moves (bind/heap.rs and bind/plan/slots.rs are inputs); the orchestrator
commits it at landing.
(cherry picked from commit 6f983470cb76231a636d3a15a775d87eb467dff9)
heap_extended_samples_are_the_slot_s failed on the Radeon 780M (RADV PHOENIX, m3-max-13620 at
bbbf5e6930): the "linear edge" constexpr sample of BGRA10XR and BGR10XR through a heap differed
from the slot's in 95 and 115 of 196 lanes, unexplained, while "linear repeat" was explained.
Since the heap sample's filter note follows the textures the command's heap can name
(SpecKey::HeapRawTextures' FILTERED bit), a constexpr linear sample's note is announced at the
dispatch that binds such a texture, no longer as the pipeline is made. The lane gathered the
announcements only after each case's pipelines were made, so the first linear case's own
dispatches had not been seen when its lanes were classified; later cases saw them. The M3 and
lavapipe passed because their heap and slot samples agree in every lane there.
The lane now takes the notices of each heap dispatch before it classifies that dispatch's
lanes, and decides the narrowing and the blend from them.
Verified: the 780M lane run on this tip is the next potluck job.
(cherry picked from commit fad1282cc623d4c9e980c0d75b8b63b0de8e7387)
What: anvpasses (steelbrain/anvpasses 67f1d8710d, the eight commits before this one).
- A render pass beside a depth/stencil attachment (Load/Clear and Store, not memoryless, not
resolved, single-sample, one layer, GENERAL; no separate, stand-in, over-buffer or NaN-clear
form) records its first instance inline in the encoder's primary: one Vulkan command buffer
a pass, not a primary and a secondary.
- Encoders past the first PLANNED_BARRIERS (2,048) of a command buffer begin their own command
buffer with a barrier from everything before, and submit_batch records no barrier command
buffer for them. New WorkCounts::encoders_barriered_at_open.
- docs/FAST-PATHS.md's ANV binding-table gap rewritten with the numbers.
RUNTIME_VERSION 2011 -> 2012; the pin follows.
Why: on ANV below Xe-HP each command buffer that records a binding table holds a 64 KiB
block of a 1 GiB pool (16,384 at once); one Metal command buffer of passes beside a cleared
depth failed OutOfMemory at pass 8,087, and with the inline change alone segfaulted in ANV at
submission (the per-encoder barrier command buffers took blocks too).
Verified (anvpasses, release, ms01 Iris, Mesa 26.2.6): tests::many_passes 10,000 passes:
base OutOfMemory at pass 8,087 (13643), inline only segfault at submit (13663), full fix
passes (13726: 12,049 command buffers, 7,953 encoders barriered at open). Per-pass median,
1,000-pass command buffers, base -> fix: Iris CPU 28.5 -> 21.9 us, GPU 12.6 -> 10.1 us
(side 64); 780M CPU 27.1 -> 25.1, GPU 17.3 -> 15.3; M3 within noise. 780M and M3 pass the
regression test (base fails on the 780M). Linux lint clean at 86c19980e4 (13707). Suites at the
tip still running on the branch. Here: pin-compute, generators unchanged, api-signatures
--check clean. Owed: cost records move (inline passes, barrier command buffers).
The known gap now counts command buffers begun (barrier command buffers took blocks too), names
the passes that still take a secondary, the 2,048 planned barrier command buffers a batch begins
at most, and what ms01's Iris Xe (Mesa 26.2.6) measured: 10,000 passes beside a cleared depth in
one command buffer run in 12,049 command buffers (tests::many_passes); passes inline encode to
16,173; passes with a secondary fail at the end of the 8,087th; with the targets' first clears in
the submission 14,000 passes ran and 14,300 crashed in the driver, recorded as the open part.
Verified: the numbers are the probe runs' (jobs m3-max-13726, -13731, -13643).
(cherry picked from commit 67f1d8710d78adf21768002c82a86e739721e271)
Fix forward of ad3eae9796, which did not compile: PLANNED_BARRIERS sat between SpareCores and
its #[derive(Default)], and the resource state encoder's Recorded lacked the barriered field
(None: it opens no EncoderCore).
Verified: cargo fmt; the gem10 build follows.
(cherry picked from commit 86c19980e4c630b9929193eda0eb1f558fafa770)
On ANV below Xe-HP each Vulkan command buffer begun holds a 64 KiB block of the device's 1 GiB
binding-table pool until it is begun again, reset or freed: 16,384 at most. With the passes
inline (one command buffer a pass), a batch still began a command buffer of barriers before
each encoder that needed one, two a pass: on ms01's Iris Xe (Mesa 26.2.6) one command buffer
of 8,000 passes beside a cleared depth ran, and one of 8,300 encoded and crashed in the driver
at its submission, recording the targets' first clears past the pool (a blorp binding table
written through no block; backtrace from the core: texture::first_move::Taken::record from
submit_batch on the scheduler thread). With the targets' first moves taken earlier, 10,000 and
16,000 passes ran, each begun 15,872 barrier command buffers past the pool: barrier command
buffers do take blocks, and a clear recorded past them crashes.
So the encoders past the first PLANNED_BARRIERS (2,048) of a command buffer begin their own
VkCommandBuffer with Barrier::everything() at the open (not marked recorded, so a pass may
still hold that command buffer), and Recorded carries that command buffer; submit_batch skips
the command buffer of barriers it planned before a part whose first VkCommandBuffer is still
that one, unless that slot also carries the completed work's barrier, the start timestamp or a
held depth's move. The barrier from everything holds any barrier the tracker plans before the
encoder (all commands before it on the queue, all memory writes, to all after), and the
tracker's state stays as if its plan were recorded. A batch begins at most 2,048 command
buffers for barriers; past 2,048 encoders in one command buffer each encoder is ordered after
all before it, where the tracker might have let independent ones overlap. 2,048 keeps twice the
706 passes of linear_runs' split frame planned.
New WorkCounts field: encoders_barriered_at_open (api_signatures.tsv blessed).
tests::many_passes asserts 7,953 of its 10,001 encoders barriered at the open and at most
PASSES + 2,048 + 64 command buffers begun.
Verified: cargo fmt; device runs follow.
(cherry picked from commit ad3eae979696613a7c71e39c3092c58b0fb19f1e)
A depth/stencil texture over a buffer's bytes (a texture buffer, or a heap's depth or stencil
texture held as a shadow of the heap's bytes, texture/heap.rs) has copies the end records
around the pass, so its first instance is not recorded inline: the pass counts under
passes_not_inline_attachments, as the other depth/stencil kinds the end changes. Docs of the
reason and the module say so.
Verified: cargo fmt; compiled in the suite builds that follow.
(cherry picked from commit e997a4fa59855872f153b3aa69eda6d1eefd9cc2)
Device tests under the validation layer of the runtime's depth/stencil rule for a pass's first
instance recorded inline (render/inline_first.rs, depth_stencil_opens):
- a_pass_beside_a_depth_or_stencil_records_inline_where_its_attachment_allows: a Depth32Float
cleared or loaded and stored, beside a color or alone, and the depth of a Depth32Float_Stencil8
named alone (its stencil kept) record inline; a depth loaded DontCare and one stored DontCare
count their actions (a DontCare load, a store), a memoryless depth its memoryless, a depth and a
stencil of separate textures its attachments.
- a_pass_recorded_inline_beside_its_depth_tests_and_writes_it: over a depth cleared to 0.5 under
Less with writes, of draws at 0.75, 0.25 and 0.4 only the one at 0.25 draws; the depth is left
at 0.25, the color at that draw's.
Run in the commits after this one.
(cherry picked from commit 35aaff580688f5306ace207c102e92dcb3330e4b)
A command buffer of passes that each write the same attachments takes a barrier before each
encoder, which the scheduler records into a command buffer of barriers as the batch is submitted
(kept_barriers.rs keeps at most 128 of one list): on the M3 Max at the base, 10,000 such passes
began 30,003 command buffers, 10,001 of them secondaries and about 10,000 of barriers. The test
now holds the command buffers its encoders began (encoder_command_buffers_begun) to one a pass,
and prints the barriers' apart.
(cherry picked from commit 11bea6de133f07ead27b75c1e53995f3ff959c34)
A render pass with a depth or stencil attachment recorded its draws into a secondary command
buffer that its primary executed at its end, whatever the attachment: a pass held two Vulkan
command buffers until its command buffer completed. On ANV below Xe-HP each command buffer that
records a binding table holds a 64 KiB block of the device's 1 GiB binding-table pool until it
is begun again, reset or freed, so one Metal command buffer of passes each beside a cleared depth
failed with OutOfMemory(Device) at the end of its 8,087th pass on ms01's Iris Xe, where Metal runs
it; and a secondary costs GPU time and recording CPU per pass on every driver measured.
opens_inline now lets a pass with a depth/stencil attachment record its first instance inline
in the encoder's own primary (render/inline_first.rs) where nothing the pass's end decides can
change that instance's depth/stencil attachment, its operations or its clear values
(depth_stencil_opens): the texture's own image (no separate depth and stencil textures' scratch,
no stand-in, not the hidden depth), held in GENERAL (render_target::depth_layout; a
single-sampled one is), no memoryless aspect, no resolve, each named aspect loaded Load or Clear
over the reach the instance renders over and stored Store (not late), no NaN depth clear written
apart, and a kept aspect (a combined format's unnamed one, loaded and stored unchanged) only
where the instance renders over the render area alone. A pass of no color but memoryless ones
takes its reach from its depth/stencil attachment's first aspect where it clears it. The first
draw's checks stand as before: no shader-side stencil or depth test, depth stand-in, feedback,
stand-in arriving with it.
No new count: the depth/stencil reasons count under the existing passes_not_inline_layouts,
_memoryless, _actions (and kin) and _attachments, whose docs now name them.
Verified in the commits after this one.
(cherry picked from commit 2f363278957226c5cb5a41636698cf8504a3da17)
One Metal command buffer of render passes, each loading and storing a color target and blending
a rectangle over it beside a Depth32Float depth attachment it clears and stores (the consumer's
checked frames' shape), failed with OutOfMemory(Device) at the end of its 8,087th pass on ms01's
Iris Xe: on ANV below Xe-HP each Vulkan command buffer that records a binding table holds a
64 KiB block of the device's 1 GiB binding-table pool until it is begun again, reset or freed,
and each such pass took two (its primary and the secondary of its draws). Metal runs it.
tests::many_passes::one_command_buffer_of_ten_thousand_passes_beside_a_cleared_depth_runs runs
one command buffer of a clear and 10,000 such passes, and holds it to the texels the same passes
leave across command buffers of 500, to no secondary begun, every pass inline, and at most one
command buffer begun a pass (64 of slack). It fails at this commit on every device (the passes
record their draws in secondaries) and, on the Iris Xe, with the OutOfMemory. The fix follows.
(cherry picked from commit 934970484d4e5087f674c6a6dc3f49293eddc68c)
What: triage-b (steelbrain/triage-b 5ad6c3afa0, the nine commits before this one).
- Pipeline budget (row 399): a pool piece that lends its turn for a wait took it back at the
rank it was given, and a commit's hasten while it ran was dropped (Place::hasten finds no
started piece), so it waited ranked Ahead behind program makings until AGE (4 s). The place
and the queued entry now share an Asked cell; Again takes the turn back at the more urgent
rank and Turn::drop gives back the kind now held.
- Queue sharing (row 143): a batch whose VkQueue waits on the GPU for another VkQueue's
pending work records its submission time, and its command buffer marks the queue long past
2 ms from then to its GPU end. The FAST-PATHS row, the QueueSharing notice and API.md follow.
- Cost tooling: a lone measurement takes a held ceiling again, so a stale one comes down; a
release build's cost runs name their venue apart; the two magnified render-then-sample
records read 2 made, 2 taken, and WASTED 593 / the draws ceiling 29.
- Tests: the bundle_first_use stream, the events lane's per-round times, the queue-sharing
device test with a plain event.
RUNTIME_VERSION 2010 -> 2011; the pin follows.
Verified (triage-b): on gem10 clippy -D warnings plain / m2v_gpu / m2v_cpu_icd and rustdoc;
runtime tests 62 (budget, pool, event_timeline, degradation_catalogue, queue_share),
fast_paths 23, conformance 1040. 5080 (t entry): before the fix the compositor's p99 41.06 ms
with 3776 of 3925 samples over 10 ms and the waiter never going long; after, p99 2.24 ms, 0 of
9603 over 10 ms, the waiter long at its second command buffer; the budget unit test
a_piece_hastened_while_it_lends_its_turn_takes_one_again_at_its_new_rank. The 4 s bundle wait
was not reproduced on the 780M or the 5080 (cause from the code). Here: pin-compute,
generators unchanged, api-signatures --check clean.
Re-measured alone on the M3 Max with the fixed lone fold (2e01ecf956), debug binary as the records
are blessed, 8 runs each (potluck job m3-max-13597 at e455eed9ac): render-then-sample-magnified-
nearest and -linear now record creation_pipelines_made and variant_pipelines_made at bound and
ceiling 2 (were 3, the stale ceiling of a lone run before smallfix2's ab281552db), and
addressable_buffers_made at 1 (was 2, the same stale-ceiling shape). No other field moved.
The census over the committed recordings now reads 1,483 made, 958 taken, 525 by none; the draws
class 892 made, 863 taken, 29 by none (96.7%). So WASTED goes from 595 to 593 and the draws class's
ceiling from 31 to 29, and the paragraph that held the ceiling at 31 until these bounds came down
is replaced by what the two rows read now. The figures in the module's census paragraphs follow
(260 rows take every pipeline they make, 21 some).
Verified: the census figures by a script over the recordings directory, which reproduces the
other three classes' committed figures exactly; the conformance unit tests run on gem10 next.
(cherry picked from commit 5ad6c3afa0cde95a3b6aec5582ad5a24f75bd072)
A pool's piece that waits holding no turn (its twin's making in the air, flight.rs; another's
making of a library it links, libraries.rs) gives its turn back and takes one again after the wait
(budget::without_turn, Again). It took it again at the rank the turn was given at. A commit that
came to wait for the piece meanwhile hastens it through its place (Place::hasten), but a started
piece is no longer in its pool's queue, so the rise was dropped: the piece, still ranked Ahead,
waited for an ahead turn behind every program's making until it aged, AGE = 4 s, with the
committed command buffer waiting for it. That is the shape of the 4.1 to 4.3 s a bundles frame's
first command buffer waited on the consumer's host (expected cause; the 780M run of the bundle
streams, which have no competing makings, waited for nothing).
Now a piece's place and its queued entry share an Asked cell: Place::hasten raises it whether the
piece waits or runs, the pool hands it with the piece to the turn's Held, and Again takes the turn
again at the more urgent of the given rank and the asked one, keeping the cell for a later lend. A
turn taken again at a risen rank may be of the other kind (a turn past the ahead ones where an
ahead turn was lent), so Turn::drop gives back the kind the thread's note says it holds.
Test: budget::tests::a_piece_hastened_while_it_lends_its_turn_takes_one_again_at_its_new_rank (a
2-turn budget, one ahead, a 600 s age: the lending piece, hastened to Committed while a piece
nothing waits for holds the ahead turn, finishes within 30 s; before this change it waited for that
ahead turn), and the ahead turn comes back as one.
(cherry picked from commit c2148eac09006c84ea4d746330f176a5d5b2dc76)
The Adaptive long mark read a command buffer's own GPU timestamps alone. A batch that waits on the
GPU for another VkQueue's work (an MTLEvent's signal pending there, the tracker's wait for another
VkQueue's writes, new resources' first work there) writes its start timestamp only once that wait
is met, so a queue of short command buffers, each waiting for another queue's 30 ms one, never went
long: it kept sharing its VkQueue, and every command buffer the queues sharing it committed behind
each wait waited for the other queue's whole long command buffer.
Now submit_batch notes, at the first batch whose VkQueue it hands such a wait (an event wait whose
signal is pending on another VkQueue or is the caller's, EventTimeline::waits_across; a tracker or
first-work wait on another VkQueue), the host time its submission was called (Times::waited_across).
place_gpu_times marks the queue long also where more than LONG_HEAD ran from then to the command
buffer's GPU end, placed in the host's time. A command buffer with no such wait is timed as before,
by its own timestamps, so the host-view false marks the module docs describe stay out.
The device test a_compositor_beside_a_queue_waiting_on_the_gpu_for_long_work_keeps_its_latency now
also asserts that the waiting queue goes long (WorkCounts::queues_gone_long >= 2). The QueueSharing
notice's cost, docs/API.md's catalogue entry and the FAST-PATHS row name the wait.
Verified: cargo fmt; unit test a_wait_crosses_queues_where_its_signal_is_pending_on_another; the
build, clippy and the 5080 device run are dispatched.
(cherry picked from commit 6391625634472fb158b6477dfad36340956ae2dd)
The test of a compositor beside a queue waiting on the GPU used a shared event, whose wait the
scheduler holds on the host until the value is reached (event_timeline.rs): no VkQueue ever held
that wait, so the test could not show what it is for. A plain MTLEvent's wait is submitted once
its signal is, chained on the waiter's VkQueue, which is the GPU-side wait the long mark has to
see.
Verified: cargo fmt; the device run is queued on the 5080.
(cherry picked from commit 4e1a4124242b3a64eee4e1acc2514605f7249c13)
What: cost::venue names the venue a cost run is held to and writes: the device's name in a
build with debug assertions, '<device>, release build' otherwise. replay's cost gate and
cost_on_under take it. A release run is so Unmeasured against the committed records (no record
of its venue), and a release --write keeps a record of its own beside the debug one. The
README's cost section says so.
Why: the records did not say which build measured them, and the two builds' counts differ: a
debug build takes the whole check at a kept draw's first and every second rebound hit
(render/draw_again.rs, render/draw_again/rebound.rs), so a release replay of
point-viewport-coverage read 3 rebinds against the debug record's 1 and failed as Over (the
11-07 M3 'regression' that was the profile). Every committed record was measured by the debug
binary (each stack's rebless runs target/debug/conformance cost --write), so the debug name
keeps them valid unchanged and no recording file moves.
Verified: a_release_build_s_cost_runs_name_their_venue_apart (both names, and a debug record
judging the debug venue Over and the release venue Unmeasured). Runs on Linux follow.
(cherry picked from commit e455eed9ac8894efb6ac9609d8fd24058874b124)
What: fold_alone_into re-takes each monotone count's ceiling from the lone run: where the held
record carries a ceiling its bound does not exceed (the whole-set write raised the bound to it,
carrying_the_contrast_of), the set read at most it and, by the count's MONOTONE direction, at
most the lone reading. The ceiling and its bound come down to the lone reading (no lower than a
set reading the bound shows above the ceiling), and apart_from no longer calls such a count
composed. A lone run reading above the ceiling raises it as before.
Why: the re-bless at 24ae90feb3 (development 85612a40d0) kept
render-then-sample-magnified-nearest's and -linear's creation_pipelines_made and
variant_pipelines_made at bounds and ceilings of 3, though both shapes read 2 since
ab281552db (the predicted plain half arm in the general form). Not a path difference: the
whole-set write read 2 and carried the earlier lone run's ceiling of 3 into the bound, and the
lone fold only ever raised a ceiling, so it compared the lone 2 against the carried 3 and wrote
it to composed as a disagreement. The ceiling could never come down.
Verified: the new test a_lone_run_reading_below_a_held_ceiling_lowers_it replays that order
(set 2 / lone 3, then set 2 carried, then lone 2) and fails at the parent (bound 3, composed 2);
the existing ceiling and round-trip tests are untouched. Runs on Linux follow.
(cherry picked from commit 2e01ecf956bc3959af0c2b3cc8089179a14a7999)
What: isolation() takes a waiting mode: the application's long command buffers each signal a
shared event's next value, and a third queue commits a small fill waiting for that value once
each long one is committed. The new device test asserts the compositor's latency beside it
(p99 under 5 ms, at most one stall over 10 ms), as beside a long queue alone.
Why: under Adaptive sharing the long mark reads a command buffer's own GPU span. The scheduler
submits an event wait once its signal is submitted, so the wait runs on the GPU and holds every
later batch of its VkQueue until the long work ends, yet its own span is short: a queue sharing
that VkQueue may stall as long, unmarked (the 11-03 triage reasoned it; never measured).
Verified: build only here; the 5080 run decides it.
(cherry picked from commit dbdfc7d8fc1f911ee1d936ed661e926fc62fc52e)
What: a_device_dropped_after_a_wait_is_gone_when_the_drop_returns prints DEVICE-MAKE-DROP per
round: the first device's making, its case run, its drop, and the next device's making and
drop, in ms.
Why: on the RTX 5080 the test took 60 to 360 s (11-08), and device making and dropping there
were measured load-sensitive (11-05: 21.8-26.1 s wall on 1.3-1.8 s CPU under load). The
per-step times say which step holds it, quiet and under load.
Verified: build only here; the runs follow.
(cherry picked from commit 3fd3dc5cf04f7c8cee306a3f819dd8155acf90bb)
What: a stream of the render-bundle frames whose commands name, each frame, a state of their
own made before the first frame and drawn by no earlier command, so every frame's command
buffer is the first to draw with its state and the commit settles its pipelines; each frame
also prints its commit to its completion.
Why: the consumer's renderBundles page saw each frame's first command buffer wait 4.1-4.3 s
(5080, pin 14), which fits the making budget's AGE of 4 s: a making something waits for that
nothing hastened. This is the runtime shape of that page's frames, to decide it on the 5080
and the 780M with METAL2VULKAN_LOG_PIPELINES=1.
Verified: build only here; the runs follow.
(cherry picked from commit bdbc19757f0c0cd58ca0b853c5ba797ec73e8b98)
scheduler/mod.rs gains Scheduler::asleep under cfg(test) (346f32bad3, triage-a row 748), so
scheduler_wakes' tests wait for the scheduler's thread to sleep rather than sleeping 5 ms.
No runtime behaviour: RUNTIME_VERSION stays 2010; the pin follows the file.
Verified by triage-a on the 780M PHOENIX (13644): with a scratch hold of 10 ms after each
pass, the old 5 ms wait failed 5/5 and the new wait passed 5/5; without it both passed 5/5;
the module alone 10/10. Here: pin-compute over the tree.
Three scheduler_wakes tests need the scheduler's thread asleep before a
commit: each burst's commits, each commit_and_submit, and the commit under the
held lock. Each slept 5 ms and assumed the thread was asleep by then. The
thread can outlast that, because the last commit's waking and pass run on a
thread that load beside the test can hold off the CPU.
- A commit_and_submit that finds the thread making a pass leaves its batch to
the thread, so batches submitted at commit fall short of the commits.
- One that finds the thread awake between passes wakes nothing, because the
notify is spared, so the commit wakings fall short.
The PHOENIX sighting (bug 748, "scheduler_wakes 9/10") has the first shape.
Scheduler::asleep, compiled only under the device-test cfgs, reads the thread's
sleep state under the lock of its sleep. It is true when the thread sleeps on
its condition variable or on the GPU and no waker has woken it since. The tests
wait for it, bounded by BOUND, before each commit that needs a sleeping thread.
No runtime behaviour changes. The runtime-sources pin moves because
scheduler/mod.rs gains the test-only accessor. RUNTIME_VERSION is left to the
pin cut.
Verified on the Radeon 780M PHOENIX (RADV, Mesa 26.2.6), potluck job 13644, with
this commit carried on the scratch branch at fbfb62949e. A scratch switch there
holds the thread 10 ms after each pass before it sleeps, holding no lock.
- With that delay and the 5 ms wait, a_commit_and_submit_wakes... failed 5 of 5
runs. Run 1: "0 wakings by a commit, 9 batches submitted at commit, 10
commits". Runs 2-5: 0 wakings, 10 at commit.
- With the delay and this wait: 5 of 5 passed, each with 10 wakings and 10 at
commit.
- Without the delay: both waits passed 5 of 5.
- The whole module with this wait, run alone: 10 of 10.
- Before the change, full suites on the 780M (jobs 13609, 13631) passed all
four tests, 2 of 2.
(cherry picked from commit 346f32bad36fb752caee2a991efe1b670a59b112)
The pass-open check failed once in 13 whole Iris lane runs under the loader's default manifests
(6.06 allocations an open against 4.5; 4.00 at every open in the six runs that listed them). Its
warm-up was 20 plain frames, which leave the device as many command pools as those frames held
at once. Where the GPU fell further behind in the counted frame, each open past that count made a
pool there: its primary (the Vec ash returns) and the pool's first list entry, 2 allocations
more, and on every fourth pass (4 samples, not recorded inline) its secondary and that list too,
4 more. A queue holds at most 64 uncompleted command buffers; with 9 pools left by the warm-up,
opens 9 to 63 make one, 55 of them, 14 of those 4-sample: 138 more, the failure's 6.06 exactly
(a fit; that run listed no open).
Workload::warm now ends with a frame that fills its queue (Workload::frame_full): its first
command buffer waits on the GPU for an event the CPU signals once 64 of its command buffers are
committed, so none completes before and the device holds a pool for every command buffer the
queue holds at once. It is the warm-up's last frame, so no pool idles the 10 s after which the
spares free its command buffers before the frames that count. Every check that warmed up
with plain frames takes it. counted() also returns the pools the counted frame and the next one
made. The new a_full_queue_s_pass_opens_allocate_within_their_bound counts the opens of a full
queue's frame after the warm-up, and checks that it and a full frame after it make at most one
pool between them: a command buffer that opens as the one that gave its slot back begins a
primary ahead in its pool, out of the spares meanwhile, may find no spare and make one, once
(spares.rs). Seen once, on the 780M (1 pool, 4.03 an open).
Verified (debug test builds, --cfg m2v_gpu unless named, frame_costs' five `a_` checks):
- Iris Xe (ANV, the loader's default manifests): 6/6 runs pass; 4.00 an open, plain and full,
0 pools made in the counted frame and in the next.
- Radeon 780M (RADV): 9/9 pass; 4.00 an open plain; full 4.00, once 4.03 with 1 pool made.
- lavapipe (--cfg m2v_cpu_icd, its manifest alone): 5/5 pass.
- Negative control, the warm-up's last frame plain: the full-queue check fails on the Iris (6.30,
61 pools made; opens 3 to 63 allocate 6, the 4-sample ones 8, the rest 4) and on the 780M 2/2
(6.33, 62 pools; opens 2 to 63 likewise).
- cargo clippy -p metal2vulkan-validation --all-targets --all-features -- -D warnings under
--cfg m2v_gpu: clean on both hosts.
(cherry picked from commit aeab74617de9575aaaced0c92ccc79ffc3f82e35)
Pin 36's first landings: border texels in handle-table entries (rt_heap_ow, rt_heap_arg now build) and the heap filter note.
Its product fingerprint follows development's versions at a477c5d857. Blessed on the
M3 (s37-pl.sh censusbless --bless).
(cherry picked from commit ca6311c1aa1951ae6f24422031623ef210468097)
Pin 36's first landings: border texels in handle-table entries (rt_heap_ow, rt_heap_arg now build) and the heap filter note.
Blessed on the M3 (s37-pl.sh bless: bless_engine_inventory, the air_input printouts,
bless_golden_hashes, then the check step).
(cherry picked from commit d221187f37292c153967f0ba737383d427c5bcff)
What: abborder (steelbrain/abborder fbfb71b163, the six commits before the last) and overnotes
(2) (steelbrain/overnotes dbc8a2781e, the commit before this one), landed together.
- An argument buffer's texture read through a sampler with a border (an opaque border colour,
a runtime sampler, clamp_to_zero past a swizzled texture's edge) reads Metal's border
texels: a bordered heap read uses an Indexed handle (element | entry_index << 16) and loads
the read flags and border texels (FLAG_BORDER_TEXELS, bits 3..14) from the handle-table
entry, the slot BorderTexels constant's layout. The runtime's handle tables
(bind/heap.rs entry_flags) now carry each texture's border texels. The entry stays 16
bytes, so ARTIFACT_FORMAT stays 499. read-through-heap-border and -heap-sampler were
refused NotImplemented(ArgumentBufferTextures); read-through-rgba8-swizzled read the
unswizzled out-of-bounds texel.
- An argument buffer's linear sample announces bicubic-filter-arithmetic only where its heap
can name a raw-held texture of a form we filter (SpecKey::HeapRawTextures carries two bits).
SEMANTICS 2017 -> 2018 (both branches' bumps met development's 2017); RUNTIME_VERSION 2009 ->
2010 for the table entries; the pin follows.
Verified by the branches: abborder: clippy -D warnings (m2v_gpu, m2v_cpu_icd), rustdoc; the
translator negative control (border bits cleared) fails both table tests; the runtime test
heap_border_texels passes on llvmpipe and fails with the border bits cleared; the whole
read-through family replayed: lavapipe exactly the expected 96 rows, M3 6 exact and 7
announced, RADV 780M 12 announced and 1 exact with 0 element differences; release
translations of the six touched kernels on five profiles at most 0.030 s and 44.5 MiB.
overnotes: 141/141 engine tests (lavapipe cfg), the fix reverted fails all 4 touched tests;
heap_extended_reads and half_write_nans lanes 11/11, the RGBA8 and bfloat dispatches
announcing no note. Here: refusal surface, conformance and Metal coverage regenerated,
api-signatures --check clean. Owed: the M3 re-bless of the engine inventory (rt_heap_ow,
rt_heap_arg) and golden tables, and the two cases' cost records.
What: a heap sample the function emulates (`sampler::heap_raw`) recorded
`PrecisionNote::BicubicFilterArithmetic` whatever the command's heap held: unconditionally
through a constexpr linear sampler, and under the bound sampler's word through a runtime
slot. A command whose heap holds no raw texture samples through the device's own sampler,
and a bfloat form's sample reads the nearest texel, so neither filters by the device's
arithmetic. `SpecKey::HeapRawTextures`' value now carries two bits, which the plan gives
from the command's heap members (`slots::heap_raw`): `heap_raw::HELD` (1, a raw-held
texture: the decode's `DevicePackConversion`, unchanged) and `heap_raw::FILTERED` (2, a
raw-held texture of a form the function filters: not a bfloat one). The filter note's
clauses each test `FILTERED` (beside the bound word's test through a runtime slot).
Runtime: `degrade_bound_values` reads the clause at each draw or dispatch, so a command
whose heap holds only RGBA8Unorm or RGBA16Bfloat textures no longer announces
bicubic-filter-arithmetic for a linear heap sample; one holding a BGRA10XR texture still
does. No runtime code changed (the path is generic).
Tests: heap::a_heap_sample_s_filter_note_follows_the_raw_texture_and_the_bound_sampler_word
(artifact clauses on every committed profile), heap::a_heap_sample_s_filter_note_holds_where_its_command_can_name_a_filtered_raw_texture
(plan values 3/1/0 and the notes bound under them), the decode-note plan test's values
(3 for BGRA10XR, 1 for RGBA16Bfloat), engine_sampler's argument-buffer stage check, and the
lane heap_extended_reads::a_heap_sample_s_filter_note_is_announced_where_its_command_can_name_a_filtered_raw_texture.
Docs: SpecKey::HeapRawTextures, the note's rustdoc, API.md.
SEMANTICS_VERSION 2018 (renumbered at landing).
(cherry picked from commit dbc8a2781ef6170f797d5b7a7a83b46264c5e4e2)
The module doc said such an entry reads a four-channel format's neutral texel; the negative
control (job m3-max-13584, the binder's border bits cleared) read (0, 0, 0, 0) past every edge
of the R32Float texture through clamp-to-border opaque white. Doc only.
(cherry picked from commit fbfb71b163234dc796f42113911615d5b16ad563)
The runtime writes each texture's handle-table entry with handle_entry_flags, which now carries the
texture's border texels (bind/heap.rs). This device test runs that path end to end: it makes an
R32Float texture and an RGBA8Unorm texture swizzled (G, R, 1, 0), names each by its resource ID in
an argument buffer, and dispatches kernel_read_through.ll's rt_heap_ow and rt_heap_zero through
the runtime. It asserts the texel inside and Metal's border texel past each edge: (1, 0, 0, 1)
through clamp-to-border opaque white and (0, 0, 0, 1) through clamp-to-zero for R32Float,
(0, 0, 1, 0) through clamp-to-zero for the swizzled texture. An entry without border texels reads
a four-channel format's neutral (1, 1, 1, 1) and (0, 0, 0, 0).
Compiled under --cfg m2v_gpu or --cfg m2v_cpu_icd. Verification (lavapipe run, the negative
control with the binder's border bits cleared) is in the job named in the report.
(cherry picked from commit 71101c3b3bc4add0717e85519b3b0736e5c9a23d)
Verified: M3 Max MoltenVK replay of read-through-heap-border, read-through-heap-sampler and
read-through-rgba8-swizzled (job m3-max-13551): all three announced, set-past-layout-support
alone, REPLAY_RC 0.
(cherry picked from commit 0248252d54da96dfca9e76544394530106c20fc8)
Verified: clippy's chunks_exact_to_as_chunks lint on gem10 (job m3-max-13547) named these three.
(cherry picked from commit 61413e4ea7d981d871fd11bda36b7b30c6a37e18)
What: the end-to-end interpreter test of argument-buffer textures read through a sampler skipped
any ArgumentBufferTextures refusal, so a NotImplemented refusal of rt_heap_ow or rt_heap_arg (the
bug it guards) would have passed it unseen. It now skips only a device's missing descriptor-indexing
features and asserts all three entries ran.
Verified: not yet built.
(cherry picked from commit c9e822b7c4a16412f3b4c592bd4a1e5d1ab1e867)
What: a Metal 4.1 read(sampler, ...) of a texture held in an argument buffer now hands back
Metal's border texel of the resident texture, its pixel format's through its swizzle, for every
sampler: a constexpr one of any border colour, a runtime [[sampler(n)]] and an argument buffer's
sampler (the colour from the sampler's word).
- The binder writes each texture's border texels (metal::sampler::border_texels of its format
and swizzle, the layout of a slot's BorderTexels specialization) in its handle-table entry's
flags, bits 3 to 14 (memory::handles::FLAG_BORDER_TEXELS); handle_entry_flags carries them, so
a consumer's own table of every ID gets them too.
- A module with such a read searches the table in a new indexed form (Lookup::Indexed): the
handle is the element with the found entry's index in its top 16 bits (HANDLE_ENTRY). The read
loads the entry's border texels by it (handles::border_texels); every use that reads another of
the entry's flags (texel class, red-blue order, out-of-bounds alpha) loads them from the entry
into the flagged handle's layout (handles::flagged_handle), through one typed value
(texture::emit::HeapFlags) so no reader sees the entry index in those bits.
- through::finish selects the border texel for slots and heap elements alike; a heap member read
by its raw texels (an extended-range form) takes its border and its zero past the level or
layer from its own image's addressing inside the raw arm, not the float array's neutral's.
- The old heap path, which selected the out-of-bounds texel (transparent black, unswizzled) and
refused every other border colour and runtime sampler NotImplemented(ArgumentBufferTextures),
is gone, with ReadSampler::transparent and the forced alpha flag of such reads.
Why: the M3 runs all three (conformance cases read-through-heap-border, read-through-heap-sampler,
and read-through-rgba8-swizzled's rt_heap_zero, where (G, R, 1, 0) reads (0, 0, 1, 0) past the
edge and we read (0, 0, 0, 0)). A 32-bit heap handle had no room for 12 border bits beside the
element, class, red-blue and alpha fields; the entry does (bits 3 to 14 were unused).
SEMANTICS_VERSION 2017 (translation output changes). ARTIFACT_FORMAT_VERSION unchanged: no
encoded type changed. RUNTIME (for the orchestrator's bump): the runtime's handle tables
(heap_sets.rs, through bind::handle_entry_flags) now carry the border-texel bits.
Ledger: the three rows of these gaps go; llvmpipe's rt_heap_zero row of the swizzled case keeps
only llvmpipe's 8-bit unorm conversion. FAST-PATHS known gap removed; REFUSALS.md,
CONFORMANCE-COVERAGE.md regenerated (METAL-COVERAGE.md unchanged).
Verified: not yet built (next: Linux build, clippy and the touched tests).
(cherry picked from commit bc000fa475e572131248b908541dbe29f1f5996c)
an_allocation_at_the_limit_waits_for_the_untaken_chunks_to_go_back failed on the M3 Max under
MoltenVK (4/4 in full runtime gpucfg suites at 81d7268023; m3-max-13593 at e72579a8b7): 2
buffers made of a room of 3, the next refused at the limit.
The M3 runs (m3-max-13619, alone 3/3 and in the suite, with the work counts printed around the
window) show the give-back itself did its work: all 3 untaken chunks went back before the first
allocation's retry (host_imports_live 4 -> 2, host_ram_chunks_live 2, one wait for the
give-back), and the live count then stayed at the limit for 2.5 s after the refusal, so no free
lagged. The third allocation of the room went to the device's first pooled block, a block of
buffers made ahead that a placement waited for, made once the give-back left room past the
margin (pooled_memory_blocks_made 0 -> 1, buffer_blocks_made_ahead 0 -> 1,
blocks_ahead_waited_for 0 -> 1, memory_blocks_live 0 -> 1). allocations.rs's room_ahead lets the
runtime's own work take that room by design; lavapipe makes no block in this window. So the
test's arithmetic assumed lavapipe's order, not a path the fix misses.
The test now counts the runtime's pooled blocks live at the refusal that were not live before
the object (memory_blocks_live + empty_memory_blocks_live) with the objects' buffers against the
room, prints them, and keeps every other assertion: the untaken chunks went back, only the
objects' chunks were live at the refusal, an allocation waited for the give-back, and the
refusal came at the limit.
Verified: the next potluck jobs (M3 alone and in the suite, a control with the give-back wait
removed, lavapipe).
(cherry picked from commit 75de915a59ff3a3a6d3eb74eeb3d374e1388ae1b)
The llvmpipe 3D mirror rows' text and the RADV row of pass-bytes-srgb-decode-all-bytes
(the two commits before this one) change what the coverage document derives.
Verified: scripts/conformance-coverage/coverage.py regenerated it.
The last unlisted RADV line of the conformance replay (log 11-07): the sRGB
decode of every byte diverges on RADV as on the other venues, the MSL
transfer through the device's Pow against Metal's twelve-bit table. Replayed
on gem10's Radeon 780M (RADV PHOENIX, potluck m3-max-13594) and RX 7900 XTX
(RADV NAVI31, m3-max-13588), Mesa 26.2.6: both 'divergent at case/output/words,
1262 elements differ (U32), the largest difference 16318465', not listed (replay
rc 1), and a scratch lane probe shows the two GPUs answer identical bytes.
Element by element against the committed recording: every colour float within
1.22055e-4 of Metal's (half a twelve-bit step is 1.22100e-4), the 126 differing
alpha floats one f32 ulp off (OpFDiv's bound is 2.5), every half within half a
step plus 0.75 half ulp, the alpha halves exact, so within the note's recorded
bound: Open: nothing. Venue 'RADV' names both GPUs, which hold the same answer.
(cherry picked from commit 522e648edc3eadea2041c19d5e053dca8a26bdbe)
The six llvmpipe rows of sampler-r-address-modes and sampler-axis-mode-triples
whose sites read whole texels other than Metal's said the run could not tell
the device's addressing from a coordinate of ours. A lane-by-lane read of a
replay's bytes against the committed recordings (a scratch probe, lavapipe on
gem10: Mesa 26.2.6, LLVM 23.1.4, x86-64 AVX-512; potluck jobs m3-max-13573,
-13583) settles it: every whole-texel difference is the runtime sampler's
nearest sample at a lane whose coordinate on a mirror-mode axis is a whole
number of texels (1.25 and -0.25 of 4 texels, u = 5 and -1), where Metal reads
the texel Vulkan's wrap of floor(u) names and llvmpipe the one past it, since
it mirrors the normalized coordinate before scaling (25 lanes a mirrored axis,
61 with all three; 1, 4 and 16 apart along s, t and r, 21 where all three
do). No other lane differs by a texel, and RADV and NVIDIA read Metal's texels
at the same lanes (no such rows of theirs), so the texel is the device
sampler's own answer, not a coordinate of ours. The rest of each site is the
constexpr linear sampler's weights, as in the rows that do not mirror.
Description column only: the rows' identities (case, venue, verdict, site,
answer) are unchanged, so the replay holds them as before (the same job's
replay of both cases on gem10's llvmpipe: 'exactly the open gaps
known-gaps.tsv expects', rc 0). The LLVM 21.1.8 rows (repeat 48, borders 5)
were not run here; their values match RADV's diagnosed subnormal -r lane,
unverified.
(cherry picked from commit 93b8e4b2d98ec4c8aa09b2db18e9d718308704bb)
coverage.py's SDK line still said the macOS 27.0 SDK (Xcode 27.0, 27A266a),
while the M3 has Xcode 27.2 (27B52) and its MacOSX27.2.sdk; the generated
enum tables already name 27.2. The table needed no row change: on the M3,
coverage.py --sdk against MacOSX27.2.sdk answered 'coverage.tsv names every
SDK item (2135)', rc 0 (potluck job m3-max-13567). docs/METAL-COVERAGE.md
regenerated (coverage.py), coverage.py --check current.
(cherry picked from commit ca8424427caaa8636587eb5593e7b91b68afe9b1)
Pin 35's final census, after its cost re-bless.
Its product fingerprint follows development's versions at 1e763e3d52. Blessed on the
M3 (s37-pl.sh censusbless --bless).
(cherry picked from commit 28701b61b5f8fabd50d21c48966a7f084e923173)
The whole-set cost --write at 24ae90feb3 (85612a40d0) recorded the 13 cases AFTER_THE_LAST_RUN
named (11 padded-fetch, 2 extended-range mipmaps), so the list is empty again; with it left,
every_case_carries_a_cost_recording fails as it did at edabbc0b2c.
cost.rs's census figures are read off the re-blessed recordings (a Python reading of the same
rows census() builds: creation_pipelines_made > 0, classed by the records' cmd_draw and
cmd_dispatch bounds): 607 rows, 1,485 made, 958 taken, 527 by none (64.5%); the draws class
222 rows, 894 made, 863 taken, 31 by none (96.5%); the other classes unchanged. The two
render-then-sample-magnified rows composed 2 made and 2 taken, but their bounds still read 3,
so the draws ceiling stays 31 and WASTED 595.
Verified: the Linux conformance suite at the next tip.
499 recording(s) whose bounds moved. The records after pin 35's landings: smallfix2 makes one pipeline per half-converting creation (render-then-sample-magnified-nearest and -linear, 3 made -> 2), unknowns-491 drops the bicubic note from the 10 nearest-sample cases, sparechurn keeps its spares, and 13 cases were owed records (11 padded-fetch, 2 extended-range mipmaps).
Measured on the M3 (s37-pl.sh rebless: cost --runs 8 --write over the whole
set, then cost --runs 8 --alone --write over the changed cases).
(cherry picked from commit ccaf4936104237b9c6838ef1cfb3b679461ffa4d)
c8b76505d6 (smallfix2) changes comments only in memory/ready.rs and texture/host_copy.rs
(and tests/zeroed_start.rs): the XTX's host-path figures scoped to where they were measured,
and the suspend bullet pointing at the device-resume known gap. No behaviour: RUNTIME_VERSION
stays 2009, only the pin moves.
Verified: pin-compute over the tree; smallfix2's clippy with --cfg m2v_gpu and --cfg
m2v_cpu_icd at c8b76505d6 (m3-max-13554).
memory/ready.rs, tests/zeroed_start.rs and texture/host_copy.rs still
described a texture's first CPU write after a runtime suspend through a
host copy on the RX 7900 XTX, and ready.rs's last bullet pointed at a
FAST-PATHS known gap (the moves back after a suspend) that no longer says
so. The XTX copies its color textures on the staging queue
(texture/staging_copy.rs; tests::cpu_copy_times asserts it and job
m3-max-13545 printed "copied on the staging queue"), so the host copies'
pool holds no image there.
- ready.rs: the kernel's clear and its trace figures (516 to 684 ms, 160 us
awake) are stated as measured in the XTX's device-local memory, with the
note that the pool serves no image on that GPU and that a first touch's
wait is unmeasured on the devices whose color textures copy on the host.
The suspend bullet now says what holds: the next submission after a
runtime suspend waits for the kernel's resume, which no block made ahead
spares (docs/FAST-PATHS.md's known gap, measured in m3-max-13545).
- zeroed_start.rs: drops the instruction to run after a 5 s idle to see the
suspend case (that case is no longer on the XTX's path) and says what the
test holds where a color texture copies on the staging queue (NVIDIA's,
the XTX's).
- host_copy.rs: the same figures scoped the same way; the 516 to 684 ms
sentence goes, its reason kept as "a first touch may wait for the
memory's kernel work".
Comments only. Verified: cargo fmt; clippy for the runtime under
--cfg m2v_gpu and --cfg m2v_cpu_icd at this commit (job below).
(cherry picked from commit c8b76505d664cd23091f0b233f208ab8decfdf9e)
The XTX's first get_bytes after the GPU idled into runtime suspend took 4.7 to
5.2 s. A run decides whose that is: any first submission after the suspend
pays it, so it is the kernel's resume of the device, not our staging queue.
tests::cpu_copy_times gains an ignored measurement, run by name: per size
(1920 x 1080 in a pooled block, 4096 x 4096 in a block of its own) it makes a
Shared BGRA8Unorm texture, copies it awake once, then for three sequences,
each twice, waits for the PCI function's power/runtime_status to read
suspended and times each step: replace_region then get_bytes; get_bytes then
replace_region; a fill command buffer on the program's queue (commit timed
apart from its wait) then both copies. It prints the status after each step
and the staging submissions made.
Evidence, RX 7900 XTX on gem10 (Mesa 26.2.6, autosuspend delay 5000 ms),
job m3-max-13545, two runs, 24 suspends:
- the program queue's command buffer: commit 0.12 to 0.52 ms, its wait 4.83
to 4.86 s;
- the staging queue: replace_region returned in its awake time (0.48 to 12.74
ms at 1080p, 5.02 to 5.58 ms at 4096^2) with the device still suspended,
and the get_bytes after it, the first staging submission, took 4.73 to
4.79 s; get_bytes first took 4.76 to 4.88 s;
- after the command buffer woke the device, get_bytes took 3.2 to 4.0 ms
(1080p) and 18.7 to 20.8 ms (4096^2).
The kernel's log of the run's last resume: SMU resumed at :09, "Wait for DMUB
auto-load failed" at :10, 16 "DMCUB error" lines to :13, "Cannot find any crtc
or sizes", then the rings: the card has no display attached.
Paying it ahead off the caller's path: a commit already hands its batches to
the scheduler thread and returns in under a millisecond, so only a wait or a
synchronous read waits. A wake started when a replace_region queues its copy
would win only the time between that call and the next submission (none in
the measured sequences) against a 4.8 s resume, and the program's queue and
the staging queue pay alike, so no queue choice avoids it. A keep-alive is
out. No runtime change.
docs/FAST-PATHS.md's known gap is rewritten with these numbers; its 86 ms
and 73 ms first replace_region of the host path no longer apply on the XTX,
whose Shared textures copy on the staging queue (replace_region now
returns in its awake time after a suspend).
(cherry picked from commit 112b405a9167666407ae15cd08b7bdf76d09d038)
an_allocation_at_the_limit_waits_for_the_give_back_under_way (d93fecb6ad's test, in
allocations.rs's unit tests) started its thread with std::thread::spawn, which
tests::exit_guard::threads_and_the_program_s_code_go_through_the_guard reads as a runtime
thread started outside the guard. It now starts through crate::exit_guard::spawn. Test-only:
RUNTIME_VERSION stays 2009; the pin follows the file.
Seen: dv-suites and dv-lvp at c79814eb0d (jobs m3-max-13533 and 13534), the one failure in
each: "threads started elsewhere: allocations.rs: thread::spawn(move||...". Verified: no
thread::spawn( or .spawn( left in runtime sources outside exit_guard.rs and src/tests; the
suites at the next tip run the test.
What: the three commits before this one (unknowns-491, steelbrain/unknowns-491 5f6a65c35c).
An extended-range or padded sample through a runtime sampler slot (the slot's variant and the
argument-buffer raw-element path) specializes BicubicFilterArithmetic on the bound sampler
word (linear::filtering_word, as the YCbCr filter note does); the level blend tests the linear
mip filter alone. A constexpr linear sampler keeps the note; a constexpr nearest one records
none. No runtime code changed. SEMANTICS 2016 -> 2017 (the branch's 2016 met development's).
Why: rgb10a2-srgb-samples announced bicubic-filter-arithmetic through a nearest sampler (an
over-note, triage 491).
Verified (unknowns-491): on the M3 (13478) the lanes 7/7, nearest samples announcing no
bicubic and linear ones announcing it; lavapipe (13512) lanes 37/37, replay of the 20 sample
cases exit 0 (the allowance on all 10 linear cases, no nearest case), negative controls
(select.rs and linear.rs reverted) failing both new translator tests and the rgb10a2 lane,
metal2vulkan suite 3428/3429 before the test-only fix 5f6a65c35c. Here: pin unchanged;
refusal, conformance and Metal coverage generators unchanged; api-signatures --check clean.
Owed: the 10 nearest cases' cost records still list the note until the whole-set re-bless.