Commit Graph
88 Commits
Author SHA1 Message Date
Anees Iqbal 44d97aaa5e Record each command into the driver's command buffer at the call
Recording at the call replaces the deferred replay, with the pipeline-wait test settling the
device's in-place check that recording at the call made fall inside its run.

One work packet, landed as 2 commits on archive/development-linear-2026-10-29, in order:

* Record each command into the driver's command buffer at the call (6c9d1f4551)

An encoder's command buffers are the driver's VkCommandBuffers from the command
buffer's pool, recorded at each call on the program's thread. The deferral is
gone: the per-command log, the deferred handles, the replays and the recorder
thread, the scheduler's wake of it, the host pages' replay holds, and
WorkCounts::{command_buffers_deferred, command_buffers_replayed,
command_buffers_replayed_inline} (removed public fields; none is read by the
consumer). The slots' routed entry points stay as a counting door:
WorkCounts::commands_replayed counts each command at the call, across every
command buffer (the scheduler's barrier buffers and primaries begun ahead
included, so its totals rise: the drag frame's 1000 -> 1094). A shadow's copy in
over dirty-logged host pages becomes a segment its batch's submission records
(Deferred::GatedCopyIn), so its regions are still decided after the commit's
dirty-log stamp. Rebind re-encode (replay.rs, reencode.rs) is unchanged.
RUNTIME_VERSION 1692.

Verified on the Apple M3 Max (MoltenVK): runtime device suite 1392/1393 twice
(pipeline_wait_order's "a batch waiting for a pipeline holds only the batches
that share its resources" fails under suite load only, a known load flake that
now fails more often; 3/3 alone; the base passed 1395/1395 under the same
load); new recorded_at_the_call::a_fill_is_recorded_at_its_call; the three
dirty_pages_device tests through the gated segment; plain runtime 1145/1145;
conformance plain 1007/1007 (its racy-count test now reads wakes_spared and
command_buffers_submitted); clippy plain and --cfg m2v_gpu; rustdoc.
Release A/B on the M3 (5 interleaved pairs, host load 16-43): drag frame
commit-to-handler p50 3.416 -> 3.386 ms back to back, 4.185 -> 3.671 ms paced
at 60 Hz; encode per draw +7.9% back to back, +15.7% paced (the recording moved
onto the program's thread). Not run: the validation plain suite, the
validation lanes edited, lavapipe; conformance's MoltenVK cost records hold
begin/end/barrier bounds from the narrower count and need re-recording.

* Settle the device's in-place check before the pipeline-wait test frees its no-copy buffer (40c79d69e6)

The test's texture over a no-copy buffer starts the device's check of images
over host pages, whose rounds make internal submissions on the
m2v-in-place-check thread. On MoltenVK freed memory waits for every device-own
submission issued before it went (freed_memory.rs), so a check submission in
flight as the test drops the buffer delays its deallocator
(host_deallocators_delayed 1). That wait is the runtime's documented behaviour;
the unrelated batch holds no reference to the buffer (a temporary backtrace on
the device's internal submissions showed every one from the check thread, none
from barrier buffers, primaries begun ahead or gated copy segments). The test
assumed no other device work was in flight, and recording at the call made the
test about 2.5x faster, so the release fell inside the check's run. The test
now calls settle_in_place_checks (a condition-variable wait, no sleep) before
its work.

Verified on the Apple M3 Max (MoltenVK): with three heavy device tests beside
it, 10/10 pass (5/10 without the settle, each "the deallocator waited for the
import"); alone 5/5; the runtime device suite 1393/1393. Also run there, all
passing: the validation lane device tests record at the call edited
(commands_replayed, detach, hidden_depth, clear_reach, rate_mapped_passes,
frame_costs, and the row_copies/frame_costs_plain measurements).
2026-10-29 15:43:49 +02:00
Anees Iqbal 0a1851164d Copy a no-copy buffer, heap or rebind whose import the caller's gate refuses or that fails, announced
A new HostMemory::with_import_gate(ImportGate) asks the caller once,
holding no lock of the runtime's, just before a no-copy buffer, a
no-copy heap or a buffer rebind imports its pages, passing an
ImportRequest with the pages the import would map. If the gate answers
false, or an import the device and the gate admitted then fails
(OutOfMemory, another Vulkan error), the object is made over a copy of
the pages instead of failing. The default stays import-first. The copy
is host-visible memory owned by the runtime; `contents` stays the
caller's pointer. Each commit copies in the bytes the CPU changed since
the last sync, and each batch's completion merges back the bytes the GPU
changed (CPU wins where both wrote), byte by byte, before events,
waiters and handlers see it. Every copy is announced
(`copied-host-pages`) and counted. Pages the process cannot read are
never copied (the first copy reads through the kernel:
process_vm_readv / mach_vm_read_overwrite). A copied heap's buffers lie
in the copy and its textures are shadows. A rebind's copy is laid out as
its import would be. A rebind over an in-place image is refused
(NotImplemented(RebindTextures)) and a heap's rebind still imports
without asking. A caller's DirtyPages log stays attached to the copy as
to an import. The in-place check's pointer class skips copied buffers.

Ports dev-perf's fff961b7e5, 630d1b0174, 33d7aa5e98 and 9b4d4190f5 onto
a smaller coherence design: every live copy is compared in full at each
commit and completion, instead of dev-perf's log-driven,
encoder-collected copies (dev-perf's copied.rs, 79301a2515 and its
fixes, sat on a page log development has replaced). Also brings
789fa3d294's unreadable-page rule, 5190983470's lane site, and
1c7d49f788's copied-buffer skip. A driver that refuses the pointer
still fails the call (dev-perf copied there too; not taken). Known gaps
in FAST-PATHS: the compare costs O(size) per commit and completion, a
byte both sides wrote keeps the CPU's value, and a shared event's value
can be seen before the merge (c5db2d1b8a not ported). RUNTIME_VERSION
1690. Runtime-sources pin recomputed.

Public API: ImportGate, ImportRequest { start, length }
(#[non_exhaustive]), HostMemory::with_import_gate,
Degradation::CopiedHostPages, Device::fail_next_host_imports (test
hook), and the WorkCounts fields host_imports_refused_by_host,
copied_host_buffers_{made,refused,degraded}, copied_copy_in_bytes,
copied_merge_back_bytes, copied_rebind_pages_made, copied_heaps_made.

Verified on the M3 Max (MoltenVK, m2v_gpu): 11 new device tests
(tests::copied_device: buffer, rebind and heap, gate refusal and failed
admitted import, unreadable pages, a heap texture round trip) and 167
tests in the touched device filters pass; the counters move as
expected ([1,1,1,0,0] for a refusal, [0,1,0,1,0] for a failed import)
and the announcement is heard; on a 64 KiB copy 4079 bytes copied in and
4080 merged back for a 4 KiB CPU write and a 4 KiB fill, checked
exactly. Sabotage: ignoring the gate and removing the merge fails the 3
buffer tests; ignoring the rebind gate fails both rebind tests (no heap
sabotage). 249 host tests pass. Workspace clippy plain and
--cfg m2v_gpu, and rustdoc, clean; clippy re-run clean on the landing
merge. Not run on Linux.
2026-10-28 23:36:31 +02:00
Anees Iqbal d7d4870598 Wait a bound for a pipeline still being made, then drop its draws and dispatches
A cold MoltenVK compile inside one guest command buffer ran 11.59 s and
tripped the guest's own 10 s FIFO watchdog, which tore the task down;
development had no bound. New runtime choice DevicePolicy::pipeline_waits
(PipelineWaitPolicy::Bounded, the default, or Exact, which
exact_answers() selects), with bounds pipeline_creation_wait and
pipeline_commit_wait (4.5 s each, so one FIFO step waits 9 s at most).

Under Bounded:
- A render or compute state's creation hands its predicted making to the
  pool and waits for it up to the creation bound
  (WorkCounts::creations_left_making).
- A committed command buffer waits until its commit plus the commit
  bound for its draws', dispatches', tile dispatches' and execution
  replays' pipelines, then records each late one as nothing and runs on.
  CommandBuffer::dropped_draw names the first with VK_TIMEOUT. Counted in
  draws_dropped_still_making and dispatches_dropped_still_making, and
  announced as draw-dropped-still-making and dispatch-dropped-still-making.
- An execution's settle hands its makings to the pool.

A draw whose driver making failed now runs nothing and its command
buffer runs on, where it used to fail it: counted in
draws_dropped_unmade, named by dropped_draw(), and announced
draw-dropped-unmade (Degradation::DrawDroppedUnmade: the draw, its
state, a hash of the variant and specialization, and the driver's
error; once per device, or each time where announce_each asks). A
dispatch's failed making still fails its command buffer.

Docs: FAST-PATHS.md row, API.md policy bullet and catalogue entries,
runtime README Errors. RUNTIME_VERSION 1689. api_signatures.tsv
re-blessed. Runtime-sources pin recomputed.

Ports dev-perf 6f499ff764, 8c91a6e254, 33fc25b531, 5963fd6831 and
4ee316c55a, and the notice of aa7e78f23c in its minimal form (no per-key
set, no driver-message relay). The general-form predicted key
(7028c0d92a, ce02b68f23) is left out: on development it changed the
pipeline makings three M3 device tests count
(made_at_creation, pipeline_creation pooled making, its own
general_form_drawn), cause not found.

Verified on an M3 Max (MoltenVK 1.4.2), under maclock: the six bound and
drop device tests under both policies (the unmade one also asserts the
notice is heard once and names the driver's error), fast_paths,
degradation, degradation_catalogue, pipeline_wait_order,
inline_continues, dispatch_pending, api_signatures, api_surface and 169
profile tests: 218/218. Lanes on the M3: 42/44; the two failures are
ycbcr_textures::a_ycbcr_sample_through_an_unmeasured_filter_is_announced
(recorded failing on development before this change) and
pipeline_creation::draws_made_on_the_pool_draw_as_made_ones (1 pooled
making vs 2; fails the same under Exact; not yet run on development
without this change). Clippy plain and --cfg m2v_gpu and rustdoc
-D warnings clean. No sabotage run of the bound.
2026-10-28 23:15:01 +02:00
Anees Iqbal b25f89d0af Zero new buffers by a fill on a discrete GPU, and cut a tiled heap texture's merge work
- A new buffer whose bytes the host cannot write (Private, a Managed
  buffer's device copy, the neutral buffers) is zeroed by one
  vkCmdFillBuffer in the submission's first work on a device without
  unified memory whose fills are not transfers, in place of copies of the
  device's host-visible zeros, which such a GPU reads over the bus. Range
  ends must be multiples of 4. Counted: WorkCounts::new_buffer_zero_fills.
  Same bytes; no FAST-PATHS row.
- A heap's tiled texture's merge in place takes a kept scratch, unzeroed:
  its keep and changed copy write the texture's bytes whole, the bytes its
  kernel reads.
- A one-sample colour tiled texture kept right after its copy in
  (ungated, with no copy of its shadow between) copies the staging buffer
  that copy filled, in place of a move out of the image, tight buffer and
  dispatch. Counted: WorkCounts::shadow_keeps_from_staging. development's
  dirty-page gate stays as it is; a gated copy in keeps the move out.

Ports dev-perf b77843da73, c302c71029 and 01f17bde29
(archive/development-performance-2026-10-27); their measurements (RX
7900 XTX, RTX 5080) are dev-perf's, not re-measured here. RUNTIME_VERSION
1688. api_signatures.tsv: two additive WorkCounts fields. REFUSALS.md
unchanged. Runtime-sources pin recomputed.

Verified on the M3 (MoltenVK, under maclock): first_use, blits fills,
heap_layouts, shadow/merge, dirty-pages and tiled device tests (58 + 34
passed); the tiled merge took no zeroed scratch and every keep came from
the staging buffer (counters asserted); undoing each change fails its
test (3 scratches zeroed vs 0; 6 and 2 bytes differing). The new-buffer
fill path does not run on the M3 (unified memory); a forced local probe
zeroed all 5 MiB through the fill, and failed with the fill word set to
0xdeadbeef. Its unforced run needs a discrete GPU (the round's RTX 5080
run). Clippy plain and --cfg m2v_gpu, rustdoc, touched non-device tests
(338 passed).
2026-10-28 23:09:30 +02:00
Anees Iqbal bd3c50d741 Take the device's own Depth16 bias and its store of an extended-range, padded or bfloat attachment's untouched texels
The device's depth bias unit on every format, and the device's store of untouched texels in
place of the unused-bits load pass (deleted with its capture machinery); the NaN depth
discard documented as capability. SEMANTICS 1910, RUNTIME 1682.

One work packet, landed as 7 commit(s) (88bcfeaea8..6aec9db4e9 on archive/development-linear-2026-10-28-evening), in order:

* Take the device's depth bias on a Depth16Unorm depth

Rule 1: the device's depth bias is its native form, so it is the only one. A
constant bias (or a slope alone) on a Depth16Unorm depth was recorded through
VK_EXT_depth_bias_control's depthBiasExact as Metal's own rule, c + 1 units of
1/65535 for c of 0 or more and c - 1 below (one unit for a slope alone), in
depth (floatRepresentation) or in 2^-16. Now `metal::state::depth_bias` hands
Metal's constant to vkCmdSetDepthBias in the device's own unit r on every depth
format; Vulkan leaves a fixed-point format's r to the implementation, at most
2 x 2^-16 ("Depth Bias", primsrast.adoc).

Deleted, nothing reading them any more: `depth16_units`, `DepthBiasUnit` and
`DepthBias::unit`, the `depth_format` parameter of `depth_bias` and of the
runtime's `vk_depth_bias`; the runtime's vkCmdSetDepthBias2EXT path
(`DepthBiasCommand`, `depth_bias_command`, the record's pinned representation,
the device's command, its priming and `DEPTH_BIAS_CALLS`, the exit guard's and
recorder's `CmdSetDepthBias2`, `Logged::SetDepthBias2` and its thunk, so
`CommandsReplayed::cmd_set_depth_bias2` goes). VK_EXT_depth_bias_control is
still described but no longer consumed, so the core recommends enabling neither
it nor its three features.

RADV on the 780M no longer takes DriverDeviation::MetalDepth16BiasedStores: it
was measured through the exact unit. MoltenVK keeps it (it hands Metal its
constant, by construction). Elsewhere `unorm-depth-bias` announces the device's
bias; its cost text, docs/API.md's entry, the deviation and property docs and a
new FAST-PATHS device-gap row state it.

Tests: `metal::state::a_unorm_depth_bias_is_metals_constant_in_the_devices_unit`
(the constant as given on lavapipe, NVIDIA and MoltenVK, which have
depthBiasExact or not); the recommendation test leaves the extension and its
features out; the driver-facts test drops RADV's row; the exit-guard tests lose
the priming group and render_state.rs as a keeper of the device's functions.
api_signatures blessed (DepthBiasUnit, DepthBias::unit, depth_bias's signature);
the refusal surface is unchanged. Not bumped here: RUNTIME_VERSION (the versions
commit) and the runtime-sources pin (landing).

Verified: cargo clippy -p metal2vulkan -p metal2vulkan-runtime
-p metal2vulkan-validation --all-targets --all-features -D warnings; nextest of
metal::state, device::tests::{enables,driver_facts,profile}, tests::fast_paths,
api_surface, api_signatures, exit_guard, render_state, degradation_catalogue,
draw_shape_notices and ash_interop: 159 passed.

* Cite the spec that leaves a NaN fragment depth undefined, which makes its discard capability

The native-arithmetic audit asked whether `clamp_depth`'s discard of a positive NaN
depth, on every profile, emulates Metal where the device has a native form. It does
not: Vulkan defines no answer for such a depth. "Depth Clamping and Range
Adjustment" (fragops.adoc, 35.10.1): "If zf is not in the range [zmin, zmax],
then zf is undefined following this step", with or without depthClampEnable, and a
NaN lies in no range; only depthClampZeroOne, which no profile enables, keeps a
float depth unchanged (and then the comparison of a NaN would still pass ALWAYS
and NOT_EQUAL, where Metal's fails every test). So the discard stays, as
capability, and the comment says why, so a later audit does not re-raise it.

Docs only (a doc comment); no behaviour changes.

Verified: cargo fmt --all.

* Drop the cube's unmeasured gradient route from the anisotropic tests' profile comment

The route was deleted with the native cube gradients; the comment still named it as a second
home of the anisotropic emulation. Only a profile without samplerAnisotropy emulates it now.

Verified: comment only; git grep finds no other mention of the unmeasured gradient route.

* Keep the device's store of an extended-range, padded or bfloat attachment's untouched texels

What: a render pass that loads and stores a color attachment of an extended-range, padded
10-bit or bfloat format now keeps the bytes its draws do not write, the device's own load and
store (VK_ATTACHMENT_STORE_OP_STORE of a loaded attachment), on every device. The runtime no
longer reproduces Metal's tile store: the load pass that rewrote the texels' unused bits before
the pass (render/unused_bits_load.rs, bind::unused_bits_module), the capture replay that found
the tiles a pass's draws reach for it (render/capture.rs, bind::capture_assembly_module,
capture_settle_module, tile_reach_module, the translator's capture form
LoweringInputs/VariantKey::captured_positions, CaptureForm, RuntimeFact::CapturedPositions,
PushField/PushHole::CaptureAddress, Feature::TileReach, StatusBits::CAPTURED_REACH_UNMEASURED,
StatusReport::captured_reach_unmeasured) and the pipeline states' capture forms are deleted, with
ExtendedRange::load_code, Degradation::UnreachedTilesRewritten and the WorkCounts fields
unused_bits_load_passes, unused_bits_load_texels and capture_reach_*. Every draw in such a pass
announces extended-range-bits-kept, naming the attachments (render/tile_store.rs, the renamed
module); its catalogue entry, the FAST-PATHS device-gap row and the format docs state what
differs: the unused bits, BGRA10_XR's alpha clamp, a padded sRGB twin's table and a bfloat code
through half, which Metal's pass rewrites in each tile a draw reaches. snorm-minimum-kept and
shared-exponent-kept are unchanged (TileStoreIsMetals still says where the device's store is
Metal's).

The de-indexed and private list forms keep the index read the capture form shared
(PushField::CaptureIndexAddress, CaptureLayout, CapturedIndex); the binder's de-indexed draw no
longer goes through the capture draw, and the vertex function's strip restart return, which only
the capture form's layout could take (a de-indexed strip is NotImplemented(PrimitiveId)), is
gone.

Why: the owner's rule 1. The device has a native load and store; reproducing Metal's tile store
emulated Metal's bits where the device has a native form. The difference is recorded and
announced (rule 2).

Verified: cargo clippy -D warnings, all targets and features, over metal2vulkan,
metal2vulkan-runtime, metal2vulkan-validation and metal2vulkan-conformance, plain and with
--cfg m2v_gpu: clean. api_signatures blessed, REFUSALS.md regenerated. The test runs (translator
and runtime suites, the touched validation lanes on lavapipe and on the M3 Max's MoltenVK) follow
this commit and are reported with the lane.

* Bump the semantics and runtime versions for the device's tile store and depth bias

What: SEMANTICS_VERSION 1907 -> 1908 and RUNTIME_VERSION 1681 -> 1682.

Why: SEMANTICS_VERSION, because the translator's output changes under unchanged keys: the
de-indexed and private list vertex forms no longer carry the strip restart return, and the
capture form, its runtime fact and its push field are gone. RUNTIME_VERSION, because runs of
unchanged artifacts now do something else: a Depth16Unorm depth takes the device's depth bias
(no depthBiasExact or unit rescale), and a pass that loads an extended-range, padded or bfloat
attachment keeps its untouched texels' bytes (no unused-bits load pass, no capture replay) and
announces extended-range-bits-kept. ARTIFACT_FORMAT_VERSION stays: the codec tags variants by
name, and the removed ones (CaptureForm, PushField::CaptureAddress,
RuntimeFact::CapturedPositions) leave their tags unused, so an old entry holding one is a miss.

Verified: the constants alone change; the golden tables and the runtime-sources pin are
re-blessed at landing.

* Hold the lanes and the fact census to the device's store of untouched texels

What: three runtime lanes still expected Metal's tile store after 5e710fb988 made the device's
store the only form, and the mechanism test still counted the deleted
RuntimeFact::CapturedPositions.
- extended_range_blends::a_pass_of_extended_range_and_padded_colors_names_each_loaded_color:
  the padded colors, which the function does not write, keep their bytes (all ones), where
  Metal's pass leaves each word 0xffc0.
- extended_range_blends::a_fetched_two_plane_attachment_written_unblended_stores_metals_write:
  color 2, loaded and unwritten, keeps its bytes, where Metal's pass zeroes its color words' top
  two bits.
- extended_range_blend_table::a_memoryless_color_2_blends_as_a_stored_color_does: the stored
  color 0's bands are compared with the unused bits as Metal's pass leaves them
  (as_metal_leaves), the codes exactly, as the table's other passes already are.
- device::tests::mechanism: the variant census is 0..89 (MergedDraws takes the freed index).

Why: the lanes held the deleted exact form; the device's store is now the contract and
extended-range-bits-kept announces the difference.

Verified: on the M3 Max (MoltenVK, --cfg m2v_gpu, under maclock and memcap) the three lanes and
the rest of extended_range_blends pass (11 of 11, with waiter_submits, which failed once under a
load of 40 and passed on its rerun); on plain, device::tests::mechanism and tests::fast_paths
pass (12 of 12); clippy -D warnings clean, plain and --cfg m2v_gpu, over the four crates.

* Re-pin the runtime sources at the landing tip

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.
2026-10-28 21:19:28 +02:00
Anees Iqbal fee371002c Copy only a logged host-page shadow's changed rows: HostMemory::with_dirty_pages
The dirty-page API (HostMemory::with_dirty_pages, DirtyPages, DirtyStamp) and the shadow path
that uses it: a tracked 2D texture's shadow over logged host pages copies in only the changed
row bands, at most one wait per log, whole where nothing earlier can be counted on.

One work packet, landed as 7 commit(s) (7a712be4b2..576768df43 on archive/development-linear-2026-10-28-evening), in order:

* API: HostMemory::with_dirty_pages, DirtyPages and DirtyStamp

Shape against the archive (archive/development-performance-2026-10-27,
crates/metal2vulkan-api/src/host_memory.rs): the trait is the archive's,
item for item (type Watch: Send + Sync; watch, request, wait, changed,
wrote, and wrote_as and changed_except defaulting to the plain ones), and
DirtyStamp(pub u64) is the same. Two differences:
- with_dirty_pages is generic, not `Arc<dyn DirtyPages>`:
  `pub fn with_dirty_pages<D>(self, source: Arc<D>) -> HostMemory
   where D: DirtyPages + ?Sized + 'static, D::Watch: 'static`.
  The associated Watch type keeps `dyn DirtyPages` from naming a type on
  its own; the archive solved that with HostMemory's associated type
  (`type DirtyPages: DirtyPages`), and a generic parameter is that on
  today's struct. A caller passes `Arc<MyLog>`, or a trait object that
  names its watch, `Arc<dyn DirtyPages<Watch = W>>`. The runtime boxes
  the watches inside.
- offsets are bytes from the memory's pointer (HostMemory::pointer), as
  the archive's runtime crate had them, not from a region: today's
  runtime names no regions. A page starting before the pointer is
  reported from 0; ranges past the bytes the runtime reads are cut.

What: the public trait and stamp (crates/metal2vulkan-runtime/src/
dirty_pages.rs, exported at the crate root), the HostMemory builder that
keeps the source, the runtime README's runtime-extension entry, and the
signature table (scripts/api-signatures --bless: 11 records). No
refusal changes (docs/REFUSALS.md unchanged). The runtime keeps the
source and calls nothing yet: the copy paths that use it follow, one
commit each.

Why: reims-vgpu codes its QEMU dirty-log source against this surface
now (owner-ordered round, 2026-10-28).

Verified: cargo fmt; cargo clippy -p metal2vulkan-runtime --all-targets
--all-features -D warnings; RUSTDOCFLAGS=-D warnings cargo doc -p
metal2vulkan-runtime --all-features --no-deps (on macOS).

* Copy a logged shadow's changed row bands in, leaving out its own copies back

READY: the texture-shadow copy-in path over logged host pages
(HostMemory::with_dirty_pages): a tracked 2D texture's shadow over a
no-copy buffer's pages (a surface's render target over guest pages
among them, dma-buf imports included) copies in only the full-width
row bands of the pages the log reports changed, and its own copy back
or merge is reported with wrote_as and left out of its copies in
through changed_except.

What:
- dirty_pages.rs: the source as the pages keep it (its pointer, a cache
  of the latest publication a wait found), a log per shadow (its writer,
  where its truth lies in the source, a watch over those bytes for the
  shadow's life, and its hold: the stamp as of which its image held
  every texel), the gate of each copy in, and the commit's bookkeeping.
- At a command buffer's commit, in commit order: each gated copy in
  takes its shadow's hold as it stands and a stamp (request, one per
  source and commit); the commit's writes (every command's write uses,
  noted where EncoderCore tracks them, the shadows' copies too) let go
  of the holds of the shadows they meet; the shadows its end leaves
  holding every texel, none stale (its final ShadowCarry), hold from
  the stamp on. A copy in after a write of the truth or the shadow in
  the same command buffer takes every row.
- The recorder logs a gated copy (Logged::GatedCopyBufferToImage); its
  replay, after the commit, waits for the stamp and asks
  changed_except(hold, writer): no hold or a wait answering false
  copies every region; else the changed byte runs become full-width row
  bands (merged 8 rows apart or less), every row at half the rows or
  more or past 1024 bands, nothing where nothing changed. A command
  buffer recorded straight into a driver's command buffer copies every
  region.
- Copies back and merges into logged pages are reported wrote_as at the
  commit; a replaceRegion of a texture over logged pages is reported
  wrote (the runtime's own CPU write, which the guest's log never sees).
- Gated only: a First copy in of every texel (or a rectangle covering
  every texel) of a tracked 2D texture's image straight from the
  buffer's pages (no staging buffer). Every other copy takes every byte
  as before. The tracker orders the gated copy as it ordered the whole
  one: the barriers are unchanged, only the regions shrink.
- WorkCounts::dirty_copies_in_gated, _whole, _skipped,
  dirty_copy_in_bytes_whole, dirty_copy_in_bytes_copied (signature
  table blessed: 5 records).

Why: reims-vgpu's 780M and RTX 5080 frames copy a 1920x1080 BGRA8
surface's shadow in whole before each use and back after each write;
most of each frame's copy was the shadow's own echo.

Verified (M3 Max, MoltenVK, RUSTFLAGS=--cfg m2v_gpu):
tests::dirty_pages_device::a_logged_shadow_copies_in_only_the_changed_rows
passes. A 64x64 RGBA8 shadow over logged pages, read by a kernel:
frame 1 copies 16384 of 16384 bytes; frame 2 (row 10 told to the log,
row 40 written but not told) copies 256 bytes, row 10 reads new, row 40
reads old (proof the skip happened); frame 3 skips (0 bytes); frame 4
(wait answers false) copies 16384, row 40 arrives; frame 5 writes
through the shadow, its merge reported wrote_as(writer 1); frame 6
copies 0 bytes, changed_except asked for writer 1. cargo clippy
-p metal2vulkan-runtime --all-targets --all-features -D warnings,
plain and --cfg m2v_gpu; rustdoc -D warnings.

* Report a logged shadow's copies back again at completion, and drop a failed commit's holds

What: a command buffer's completion reports its shadows' copies back
and merges into logged host pages to the log again (wrote_as, the
shadow its writer), now the GPU wrote them: a stamp asked between the
commit and the write still finds them. Where the command buffer
failed, the holds its gated copies in set are let go of (their copies
may not have run), so the next copy in takes every row.

Why: the commit's report alone stamps the pages before the GPU writes
them; the consumer's other readers of the pages (its own copies, other
devices) asking after that stamp would miss the write.

Verified (M3 Max, --cfg m2v_gpu): tests::dirty_pages_device passes,
frame 5 now reports writer 1 twice (commit and completion) and the
test asserts it; clippy -D warnings plain and --cfg m2v_gpu.

* Copy a logged shadow in whole, never cut to a pass's scissors, so it holds for the next frame

READY: render targets over logged guest pages loaded by passes whose
draws' scissors bound them (partial damage) now take the gated copy:
only the changed row bands of the whole surface, and the image keeps
every texel for the next command buffer's copy.

What: ShadowSync::before takes every texel as what a command needs of
a tracked shadow whose truth lies in logged host pages
(ShadowCopies::logged), where it cut the copy in to the rectangle the
draws' scissors bound. A cut copy in was never gated (the gate takes a
copy of every texel) and left the image holding a rectangle alone, so
no hold formed and every frame copied its rectangle whole. Whole, the
copy moves only the bands the log reports changed (first copy aside),
and the command buffer's end leaves it holding every texel.

Why: reims-vgpu's composited surfaces are drawn in damage rectangles.

Verified (M3 Max, --cfg m2v_gpu):
tests::dirty_pages_device::a_logged_render_target_loaded_in_a_scissor_copies_only_the_changed_rows:
a 64x64 RGBA8 render target over logged pages, a Load pass drawing in
a scissor of rows 0..8: frame 1 gated, 16384 bytes; frame 2 (row 40
told) 256 bytes, row 40 keeps the CPU's bytes, row 0 the new draw;
frame 3 skipped (its own copy back of rows 0..8 left out). Negative
control: without the change, frame 1 counts 0 gated copies and the
test fails. The first test still passes; clippy -D warnings plain and
--cfg m2v_gpu.

* Count a logged shadow's copy in on no hold where its command buffer waits for an event

What: a command buffer that waits for an event or a binary semaphore
(any batch's waits) takes no hold for its gated copies in: they copy
every row. Work committed after it (the event's signaler) may run
before it, and that work's writes of the truth are noted only at its
own later commit, so a hold read at this commit could miss them.

Verified (M3 Max, --cfg m2v_gpu): tests::dirty_pages_device frame 7, a
command buffer waiting for a shared event already signaled, copies
16384 of 16384 bytes (whole); both device tests pass; clippy -D
warnings plain and --cfg m2v_gpu. gem10 at addefbec27 (the commit
before): the two dirty-page device tests pass on the RX 7900 XTX and
the Radeon 780M with the M3's numbers; of the related set (shadow,
host_memory, dirty, dma_buf, rebind, host_aliases: 101 tests) 99 pass
on each GPU, and the two that fail
(pending_rebind::a_pending_dispatch_records_nothing_where_a_rebind_freed_what_its_descriptors_name,
tile_rebind_making_wait::a_tile_pass_records_nothing_where_a_rebind_freed_what_its_descriptors_name)
fail on loader error messages about gem10's unloadable
libGLX_nvidia.so.0 ICD, which their layer-message check counts; both
pass on the M3.

* Wait once per log for every commit before the wait, and never again for an unanswered stamp

READY: fewer DirtyPages::wait calls on the submission path.

Where the shadow path calls the log (unchanged): request() at a command
buffer's commit, on the committing thread, once per log and commit,
only where the command buffer has a gated copy in; wait() at the
replay of its commands, just before its submission (the recorder
thread, or the submitting thread where it replays the command buffer
itself), only for a gated copy in that counts on a hold.

What changed: a replay's wait asks for the latest stamp any commit
asked of that log so far, not its own, so one harvest serves every
command buffer committed before it and their replays find it
published; a stamp at or below one the log answered false for answers
false at once (every row copied) instead of waiting again for each
gated copy in. Counted: WorkCounts::dirty_stamps_asked, dirty_waits,
dirty_waits_unanswered, dirty_wait_nanos (signature table blessed).

Why: reims-vgpu's 780M A/B on 2552bd72c9 showed 17% less GPU time per
frame but a worse interval tail (p99 79 ms against 37), pointing at
waits on the submission path.

Verified (M3 Max, --cfg m2v_gpu):
tests::dirty_pages_device::one_wait_serves_every_gated_copy_in_of_a_commit:
two shadows over one log used by one command buffer: frame 1 asks 1
stamp and waits 0 times (no hold); frame 2 asks 1 stamp, waits once,
both gated copies move nothing; frame 3, the log answering false: 1
stamp, 1 wait (false), both copies whole. The other two dirty-page
device tests pass; clippy -D warnings plain and --cfg m2v_gpu.

* Say in HostMemory::with_dirty_pages when the logged copies ask, wait and copy whole

What: with_dirty_pages's doc now states the behaviour the last commits
made: one stamp per log and commit where a gated copy in exists, one
wait per log serving every earlier commit, no wait without a hold, a
false answer not waited for again, whole copies after an event or
semaphore wait or an earlier write in the command buffer, and the copy
back reported at the commit and again at the completion.

Verified: rustdoc -D warnings; clippy -D warnings; signatures --check
(docs only).
2026-10-28 21:19:27 +02:00
Anees Iqbal 54a8b32154 Bind a memoryless texture as plain Metal does, and fail what uses it
One work packet, landed as 2 commits (6c0070d57d..a759d0e88f on archive/development-linear-2026-10-28), in order:

* Bind a memoryless texture as plain Metal does, and fail what uses it

A memoryless texture bound at a texture slot was refused at the setter (`StorageMode`), as
Metal's API validation layer refuses it. Plain Metal takes the binding, so a program that binds
one died here at `setFragmentTextures:withRange:` where it runs on Metal. Seen on an RX 580
under RADV, where the device is told framebuffer reads are unsupported.

Measured on an M3 Max under macOS 27.0.1, plain Metal (probes committed under
crates/metal2vulkan-conformance/probes/memoryless_*.m):
- Every setter returns. A command that uses the texture fails the command buffer with
  MTLCommandBufferErrorInvalidResource (9). That covers a draw, a dispatch or a tile dispatch
  whose function statically uses the slot, an empty one included, and one that reads the slot
  only behind a branch that is never taken. It also covers useResource of the texture, with or
  without a later command, and a blit into or out of it (a zero-size copy included), and
  generateMipmaps of more than one level.
- Nothing fails for a slot no function uses, a slot rebound before the draw, a pass with no
  draw, a memory barrier, the optimize hints, synchronizeResource, a copy of no slices, or the
  mipmaps of one level.
- Granularity: the submission that holds the command runs nothing, as Metal splits the command
  buffer (a render pass alone, a run of blit or compute encoders with no event command between
  them). Neither does anything after it, and its signals do not fire. The submissions before it
  run and their signals fire. The queue runs on.
- The CPU calls of a memoryless 2D texture move nothing; a memoryless texture buffer's fault
  the process. Every view of one is nil.

The runtime now:
- binds it;
- fails the command buffer with the new CommandBufferError::InvalidResource from the first
  encoder of the Metal submission (State::fail_submission_from, checks::submission_start);
- records nothing for the failing command;
- moves nothing in the CPU calls, still refusing the texture buffer's;
- answers nil (`Nil`, `StorageMode`) for views.

The check per command is one emptiness test of a per-table set of the slots that hold a
memoryless texture.

An execution's command whose function uses such a slot is the runtime's gap: Metal's answer
there is not measured. That is IndirectRenderCommands for render, and CommandReplay for an
inherited compute table.

RUNTIME_VERSION 1646. The runtime-sources pin moves with it. docs/REFUSALS.md is regenerated,
api_signatures is blessed for the new variant, and the degrade catalogue's
memoryless-texture-buffer entry is updated.

Verified on MoltenVK over this M3 Max under the validation layer:
- runtime_lane::memoryless_uses: draw shapes (read, empty, branch never taken, earlier draw,
  use_resource, unused, rebound, rebound to nil, no draw); the probe's encoder sequences (CcC,
  BbB, CbC, BcB, BSbB, bSB, CSc); compute and blit uses; CPU access and views.
- runtime_lane::memoryless, and the runtime's unit suite (plain cfg).
- tests::command_buffer::a_memoryless_use_fails_from_its_submission_s_first_encoder.
- Negative controls:
  - failing per encoder instead of per submission fails the sequence and blit/compute tests;
  - dropping the draw check fails the draw test (the draw is refused).
- Clippy in both cfgs, rustdoc -D warnings for the runtime, and the pin guard.

Not run: lavapipe, RADV, and the full validation and conformance suites.

* Re-pin the runtime sources at the landing tip

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.
2026-10-28 17:24:19 +02:00
Anees Iqbal 9446f08bd4 Count what a large surface's copy in costs per encoder
The steps this packet landed as, in order:
- Carry a shadowed texture's image across one command buffer's encoders
- Divide a large plane's first copies in, and read one on a device
- Count the device leg's shadow before its texture is made
- Re-pin the runtime sources at the landing tip

Content: the tree of `development` at 81cbe5101d, unchanged.
2026-10-26 13:19:22 +02:00
Anees Iqbal a730cf1e96 Stop a rebind's re-encoded tile dispatch making or waiting for its pipeline
The steps this packet landed as, in order:
- Let a rebind of a pending tile pass's buffer run, and place the pass it leaves
- Say in the rebind rule that a pipeline being made does not hold a rebind off
- Re-pin the runtime sources at the landing tip

Content: the tree of `development` at 7da33c898d, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal fb2a637c05 diag: a dispatch encoded again binds a set an earlier command wrote
The steps this packet landed as, in order:
- Test that a dispatch encoded again writes its own descriptor set
- Shut a command buffer's set-0 cache at its commit
- Re-pin the runtime sources at the landing tip

Content: the tree of `development` at ae026a6b69, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal 06be826c2f Leave a rebind's re-encoded dispatch its segment instead of waiting for a compile
The steps this packet landed as, in order:
- Re-pin the runtime sources at the landing tip

Content: the tree of `development` at f1bb798795, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal 2bd6f6fcf8 Record none of a pending dispatch's commands once a rebind freed what they name
The steps this packet landed as, in order:
- Pin the published crates' public surface by signature

Content: the tree of `development` at e46d17fe41, unchanged.
2026-10-26 13:19:17 +02:00
Anees Iqbal 089cc0a9e0 Encode a unit of predication's encoders again where each encodes again exactly
The steps this packet landed as, in order:
- Bump RUNTIME_VERSION to 1580 and hold `Unit::fresh` to its invariant
- Prove the kept refusal from an ungated dispatch, clear of an unrelated defect

Content: the tree of `development` at a6ffe90b3e, unchanged.
2026-10-26 13:19:17 +02:00
Anees Iqbal 077709c8d2 Say what MoltenVK reads after a command buffer's signal, and keep the fence
Content: the tree of `development` at 8f89bd810c, unchanged.
2026-10-26 13:19:17 +02:00
Anees Iqbal 02129c20a6 Count every site of a wait for a completion, and open its gate with one wake
Content: the tree of `development` at 45ff3a2de2, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 6b14eb6abb Keep a driver's defect past the last release its row was measured at
The steps this packet landed as, in order:
- Submit for a thread that waits only for its scheduling as well

Content: the tree of `development` at 78233cdd38, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 6b691229ba Serve a block texture's CPU reads from a host shadow of its texels
The steps this packet landed as, in order:
- Take the next runtime version, which the rebase silently shared

Content: the tree of `development` at 3ebfbf24c9, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 89caf31678 Decide the scheduler's GPU wait by a driver defect, not the driver's name
The steps this packet landed as, in order:
- Name the region reader in prose where the dispatch plan's docs are public
- Recompute the runtime-sources pin at the landing tip
- Regenerate the refusal surface at the landing tip again

Content: the tree of `development` at e43e4580f6, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 08ebc568c3 Submit a waiting thread's own commits before it blocks
The steps this packet landed as, in order:
- Say in the scheduler's docs and the handler's which submissions a waiting thread makes
- Version the runtime for the submissions a waiting thread now makes

Content: the tree of `development` at eea349797c, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 4490daffbd Record a submission's first work and its staged copies in one command buffer
The steps this packet landed as, in order:
- Choose whether batches may group by the driver's fact, not by its name
- Re-bless the driver-facts goldens for the submission-merge fact
- Decide whether a queue's failures are relayed by the driver's fact, not its name

Content: the tree of `development` at 94416b2c77, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 3ff60ee4aa Let a submission's hold go as its completion is processed, not after the handlers
Content: the tree of `development` at 99fc90de53, unchanged.
2026-10-26 13:19:11 +02:00
Anees Iqbal 37dee90cd7 Refuse a scheduled signal once the command buffer failed, as once it completed
The steps this packet landed as, in order:
- Bump the runtime version and pin the runtime sources after the scheduled-signal fix

Content: the tree of `development` at 2e3af38041, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal e4a889debb Hang at a pass of no draw call over a mutable rate map, as Metal's GPU does
The steps this packet landed as, in order:
- Keep the screen a rate-mapped pass took through a reset to another screen
- Bump the runtime version for the fifteenth stack
- Pin the runtime sources of the fifteenth stack

Content: the tree of `development` at ea7b7cf4a4, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 4533745d05 Raise the GPU's recovery as an injected page fault or hang completes
The steps this packet landed as, in order:
- Answer Metal's getters for an indirect draw of primitive type 7, 8 or 9

Content: the tree of `development` at 987448bf48, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 8294000cbf Encode a predicated compute encoder again at a rebind where it was its unit alone
The steps this packet landed as, in order:
- Regenerate docs/REFUSALS.md over the twelfth stack
- Pin the runtime sources and bless the golden table over the twelfth stack

Content: the tree of `development` at 6ca8b9005a, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 838f59331e Let a command buffer whose dispatch's pipeline was being made be rebound
The steps this packet landed as, in order:
- Pin the runtime sources and bless the golden table over the eleventh stack

Content: the tree of `development` at e36e90bc53, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal b0b61ac179 Time a fault that later failing encoders follow as Metal's GPU reaches them
The steps this packet landed as, in order:
- Stop a running predicated loop at the GPU's recovery from a fault or a hang
- Resolve multisampled extended-range targets by Metal's measured rules
- Run the emulation's indirect mesh draws with an object function

Content: the tree of `development` at 60cf488339, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal b8fb5f48c2 Refuse a scheduled signal encoded once the command buffer completed
Content: the tree of `development` at 2393e6fe47, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 4da2c33f1a Zero a multisampled sparse texture's unmapped tiles by clears
The steps this packet landed as, in order:
- Say whether the multisampled sparse lane ran on a sparse image
- Answer per indirect command buffer whether its identifier is unmeasured
- Bump the semantics, artifact format and runtime versions for the ninth stack
- Pin the runtime sources of the ninth stack

Content: the tree of `development` at 9e2387685c, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal f84481cddd Fail an object grid Metal's GPU discards with Metal's error, and keep MeshGridPastLimits for the device's
The steps this packet landed as, in order:
- List the mesh_object_grid fixture in the engine inventory and AIR printouts, and re-bless the opened chains

Content: the tree of `development` at c81b828f80, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 87eb8bc3b7 Reset and mutable rasterization-rate maps, as Metal's GPU reads them
The steps this packet landed as, in order:
- Read a YCbCr texture's 2D-array view as Metal's, and drop packed 4:4:4 writes
- Name bfloat attachments in the unreached-tiles notice
- Let go of each predicated loop run's sets and uploads once the run completed
- Check that a lent descriptor arena takes every set and reuses its reset pools
- Bump the semantics, artifact format and runtime versions for the eighth stack
- Pin the runtime sources of the eighth stack
- Bless the golden hash tables over the eighth stack

Content: the tree of `development` at ee0b90d176, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 1d494932f7 Clear the object-grid lane's targets to zero before reading them as drawn nothing
The steps this packet landed as, in order:
- Run any object grid Metal runs, in pieces within the task stage's limits
- Upload a folded object draw's fold when it launches nothing too
- Run an unfolded object stage's direct grid as Metal does when its threads wrap
- Bump the semantics, artifact format and runtime versions for the seventh stack
- Pin the runtime sources of the seventh stack
- Bless the golden hash tables over the seventh stack

Content: the tree of `development` at a6f6b269ad, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal e69068885b Write a kernel's draw of a primitive type past Metal's five as points, as Metal's encoding does
The steps this packet landed as, in order:
- Give the private-writes fixture its golden printout and inventory rows
- Draw an indirect render command's private primitive types as the encoder's draws of them
- Count an injected page fault or hang toward a queue's revocation, as the error it stands for
- Drop a unit's ungated dispatches at its unbalanced first record, as Metal does

Content: the tree of `development` at 8e08f4d248, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 7aafd4d5b3 Split a predicated loop's laying around the work recorded apart
The steps this packet landed as, in order:
- Start a predicated loop's check thread through the exit guard
- Make a predicated loop check's command pool inside an exit-guard section
- Run an endless predicated loop on after its queue is let go, as Metal does

Content: the tree of `development` at f6e7e87687, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 3718e6088a Say unmeasured-heap-texture-size names PVRTC only at macOS 26.7's level
The steps this packet landed as, in order:
- Give a device heap's compressed multisample texture its own lossless reason
- Plan a heap multisample texture's sample moves per copy, from a queue's pool

Content: the tree of `development` at 936672b44c, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 986b35d5e0 Map an indirect sparse update's arguments as plain Metal maps them
The steps this packet landed as, in order:
- Say that a resource state encoder takes no pages a rebind could leave behind
- Encode an encoder with a call refused at its encoding again at a rebind
- Bump the semantics and runtime versions for the fifth stack
- Pin the runtime sources of the fifth stack
- Bless the golden hash tables over the fifth stack

Content: the tree of `development` at 42b1caf8ed, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal a437496677 Name the hold's and the lane's durations as clippy's self convention asks
The steps this packet landed as, in order:
- Pin the runtime sources of the fourth stack
- Bless the golden hash tables over the fourth stack

Content: the tree of `development` at 45da448770, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 97d01927cb Fail a faulted command buffer from its encoder on, at Metal's fault timing
The steps this packet landed as, in order:
- Run an executed command's mesh draw with the object threadgroup lengths it set
- Expect the untiled heap layout notice in the ID lanes where images lie in the driver's layout

Content: the tree of `development` at df4df1719c, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 54e399ca25 Draw indirect mesh grids as Metal does, through an arguments pass on mesh-shader devices
The steps this packet landed as, in order:
- Regenerate the refusal surface after the indirect mesh draws
- Read the task limits through the profile's public limits in the mesh draws lane
- Name VK_EXT_post_depth_coverage in the candidate's enable list
- Re-bless the opened chains, and let a late depth test behind an imageblock writer link
- Withhold the mesh shader extension's features with it in the mesh lane

Content: the tree of `development` at 3e1d7fbbe1, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 1391e59bce Read uploads from a pointer once, so a guest's bytes need no copy first
The steps this packet landed as, in order:
- Detach lane: take a split's first submission as done as Metal's probe did
- Run protection options as Metal's GPU runs them
- Make compute encoders of raw dispatch types as Metal makes them
- Answer a patch draw's nil buffers as Metal's getters do
- Measure Metal's handler thread cap: the runtime's refusal is where Metal hangs
- Regenerate docs/REFUSALS.md over the second stack

Content: the tree of `development` at e6e5d4b99a, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 027451fc5f Revoke a queue at its second caused GPU error, as Metal does
The steps this packet landed as, in order:
- Draw private types in a pulled list form where the indexed list differs from Metal

Content: the tree of `development` at d3fc3a5794, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal b26640bac9 Reach every live sampler state by its ID through device-wide sampler tables
The steps this packet landed as, in order:
- Let a host step make the images, render passes, framebuffers and neutrals it needs
- Order a command after a barrier the CPU set once its encoder ended

Content: the tree of `development` at 6584b0e93d, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 7f50ad492e Run a predicated loop's copies again until the loop ends
Content: the tree of `development` at 61cb931693, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 537b9caf0c Close host_ab's calls workload, and fit two lane files to the stack
The steps this packet landed as, in order:
- Bump the semantics, artifact format and runtime versions for the stacked review round
- Pin the runtime sources of the stacked review round
- Bless the golden hash tables over the stacked review round

Content: the tree of `development` at 06fe802723, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal a653c11b49 Match Metal's detach timing: per submission, until the handlers ran
Content: the tree of `development` at 281583adb4, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 123a9919fc List argument samplers at each batch's submission, and retire resource-id-takeover
The steps this packet landed as, in order:
- Refuse the private option bit where Metal ends the process, and take it where Metal ignores it
- Drop the GPU's writes to no-copy memory of the private option bit on macOS
- Let a host step ask the driver for a heap set's layout support
- Run a command that leaves a live sampler state out, announced, instead of failing it
- Record what a read-only view of no-copy pages costs

Content: the tree of `development` at abc094a6c3, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal ee21fca2f4 Write Metal's bytes in texture fills and two-plane buffer blits
The steps this packet landed as, in order:
- Hold RGB10A2Unorm_sRGB textures with Metal's conversions
- Name the runtime's gap, not a missing feature, for fetch on interlock devices
- Take clippy's forms in the RGB10A2Unorm_sRGB tests
- Fill multisample textures' samples as Metal's private fills write them
- Check fill units only for the formats the crate holds textures of
- Hold a two-plane texture's bytes between rows, which Metal's buffer blits read back
- Fill texture buffers as Metal does: bytes of the buffer, the pattern streamed
- Drop the multisample fill from apple_only's refusals, which fills it
- Meet the rows of a two-plane buffer blit into the texture in Metal's order
- Announce narrow two-plane row meetings across groups of 32 rows as one of Metal's

Content: the tree of `development` at 9d3447dec9, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 9516e41497 Say what an indirect command holds of the pipeline state set on it
The steps this packet landed as, in order:
- Time indirect commands' CPU setters and getters in host_ab
- Read and write one field of an indirect command's record
- Set and read an indirect command's fields one at a time
- Call an indirect execution's check where it may see something, and run the CPU's later writes
- Load vkGetDescriptorSetLayoutSupport inside the exit guard's sections
- Hand out indirect command buffer IDs to 2^31 - 1 and place every one's records, as an M3 Max does
- Refuse an indirect command buffer reservation Metal hangs at as such
- Place an indirect command buffer's records at any length, found only at their start
- Leave a resource ID pool made after a reservation of 0 alone, as Metal does
- Ignore a late reservation call before looking at what it holds, as Metal does
- Expect the merged-draw tests' pipeline makings' notices on every device
- Keep an indirect compute command's threadgroup lengths where Metal keeps them
- Take the pieces of the ICB identifier range Metal's encoders take
- Answer a GPU-written command's state identifier as the state its ID named then
- Run a GPU-written record's released state as Metal does, from the buffer's kept programs
- State and test the bound on the programs a GPU-writable buffer keeps
- Record the earlier-window record of a re-held ID as a known gap

Content: the tree of `development` at 7d31ebb207, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal c83dcdd384 Give the predication step ops that drop, hold and resume a range, and check a unit's end
The steps this packet landed as, in order:
- Answer command predication as Metal does on an M3 Max under macOS 27.0.1
- Probe Metal's command predication from the validation crate's Metal platform
- Wait for the predication probe's command buffers through the bounded wait
- Name the record a predication block left open came from in its command buffer's failure
- Refuse a run's first indirect dispatch of another dispatch type at Metal level 26.7
- Read an encodeEndDoWhile's word only where it closes a live DoWhile
- Run command predication on devices without buffer device addresses
- Nest predicated loops to any depth, their copies bounded by what they lay down
- Read a predication word past its buffer as Metal reads it
- Halt a predication unit where a loop runs past its copies
- Name the lane's fixed loop case type, which clippy found too complex

Content: the tree of `development` at ef8b74ec1b, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 9adc8a867a Draw Metal's private primitive types 5 to 8 as the lists Metal draws
The steps this packet landed as, in order:
- Test the private primitive types' draws against Metal's lists on the device
- Check the private draws through the weights' geometry stage too
- Use is_multiple_of and as_chunks in the private lists
- Fail a draw of primitive type 9 as Metal's GPU does
- Give the private-types fixture its golden printout and inventory rows
- Discard what a hang's queue schedules during it, and time the hang as measured
- Regenerate REFUSALS for the type-9 runtime changes
- Read Metal's quad primitive ID under private quads and quad strips
- Read a type-9 hang's Scheduled at Metal's time, not at its held last batch
- Schedule a hang's queue's command buffers from the hang's Scheduled on
- Stop a hang's thread waiting on a failed command buffer; keep storage-form commits on their last batch
- Hold a hang's joined command buffers behind a closure, so Rustdoc ends

Content: the tree of `development` at 5441a97bda, unchanged.
2026-10-26 13:19:05 +02:00