Commit Graph
155 Commits
Author SHA1 Message Date
Anees Iqbal 7cce610704 Delete the shader-side dropped-store mask
One work packet, landed as 5 commits (a31d02e99a..46c3156d42 on archive/development-linear-2026-10-28), in order:

* Delete the shader-side dropped-store mask

What. The per-stage mask of buffer slots whose stores the shader drops
goes, with everything that existed only for it:

- translator: the store-dropping lowering (lower/access/sink.rs; the
  guarded stores in emit, psb, pulled, dynamic, atomic and blob; the
  write-only store-sink binding and the OpSelect of two storage-buffer
  pointers that chose it, with its VariablePointers requirement), the
  specialization key, the stage-table field and their codec tags;
- runtime: argument_table's dropped_store_buffers and its refresh,
  Buffer::drops_writes (now unused), the two variable-pointer enables,
  and SetZeroChoice.store_sinks (now the layout's set-0 bindings);
- tests: engine_dropped_stores, engine_dropped_store_sink, the sink
  cases of neutral_zeros_shared, and dynamic_multi_variable's two
  encoders_plain tests, whose only binding of several variables was the
  sink. The narrow-unit kernel now runs at its buffers' starts and at
  moving offsets: the moved run checks that a dynamic offset reaches
  every variable of its three-variable binding, and no dispatch at a
  moved offset reuses its predecessor's set in either form, since a slot
  read to its buffer's end has a range that moves with its offset;
- the Apple M3 Max known-gaps row for
  host-page-writes-kernel-store-read-only at
  case/bytes-in-the-same-command-buffer-bytes, which this fixes.

Removed public items:
- metal2vulkan::bind::StageTable::dropped_store_buffers (field)
- metal2vulkan::bind::StageShape::dropped_store_buffers (field)
- metal2vulkan::pipeline::SpecKey::DroppedStoreSlots(Stage)
- metal2vulkan::pipeline::SyntheticBinding::StoreSink
- metal2vulkan::device::VkFeature::VariablePointers
- metal2vulkan::device::VkFeature::VariablePointersStorageBuffer
(the two features were asked for only by the sink's pointer select)

Why. The mask was set only from Buffer::drops_writes, which is true only
for host pages imported through a read-only view, and only macOS makes
one (VIEWS_DROP_WRITES; ReadOnlyView::of is None elsewhere, and
no_copy_options keeps the private bit off it). No other path set it:
Linux writable imports, dma-buf imports (excluded where writes drop),
heaps (the same import) and argument buffers (which name no slot). On
that memory the view already takes the GPU's writes nowhere, so the
shader-side drop was redundant there. It was also wrong: a later
command of the same command buffer reads the stored words back from
the GPU's caches on Metal (8 runs of 8 on the M3 Max), and the
shader-side drop made it read the pages' own bytes.

Versions, placeholders for the landing to renumber: SEMANTICS_VERSION
2000, ARTIFACT_FORMAT_VERSION 500 (the codec loses four tags),
RUNTIME_VERSION 1840. api_signatures.tsv re-blessed, docs/REFUSALS.md
and docs/CONFORMANCE-COVERAGE.md regenerated, the runtime sources
re-pinned. FAST-PATHS: the read-only-memory known gap now says what is
true (writes reach the pages off macOS), and the dynamic multi-variable
row is scoped to bindings whose range stays as their offset moves.

Verified:
- metal2vulkan suite: 3329 of 3330 pass. golden_hashes moves 3391
  cells (every module with a device store loses its guard); the table
  is re-blessed on development.
- clippy -D warnings clean, plain and with --cfg m2v_gpu; rustdoc
  -D warnings clean for the four touched crates.
- MoltenVK 1.4.2 on the M3 Max: conformance replay of the four
  host-page-writes cases exits 0, both kernel-store cases exact (the
  visibility pair "announced", the fast-math notice, as before). The
  host-page, read-only and private-bit lanes and argument_table,
  neutral_zeros_shared and dynamic_multi_variable pass.
- lavapipe (arm64, linux-gate): full conformance replay exits 0, its
  891 gap rows exactly the ones the ledger expects on the venue (none
  unlisted, none stale); the same lanes pass.

* Lane: a kernel's stores into private-bit memory reach only its own command buffer

What. runtime_lane::degrade_notices gains
a_kernel_s_stores_into_private_bit_memory_reach_only_its_own_command_buffer.
It dispatches a4_index_word into no-copy memory of an anonymous
mapping, filled with 0xab and made with Metal's private option bit 24,
bound 512 bytes in, then copies the first 1024 bytes in the same
command buffer and in a later one, and reads them from the CPU.

Why. It holds Metal's measured answer where the runtime gives it: the
same command buffer's copy reads the stored words, everywhere; on
macOS, where the pages come through a read-only view, the later command
buffer and the CPU read the pages' own bytes and nothing is announced;
elsewhere they read the stores, announced once as the private-option
notice. Every byte the stores do not name keeps 0xab at every site.

Verified: MoltenVK 1.4.2 on the M3 Max prints "drops writes true; same
command buffer stored true, later command buffer stored false, CPU
stored false" and passes; lavapipe (arm64) prints "drops writes false;
... true, true, true" and passes.

* Number SEMANTICS_VERSION 1907, ARTIFACT_FORMAT_VERSION 475 and RUNTIME_VERSION 1681, past development's

The dropped-store mask's deletion took the placeholders 2000, 500 and
1840; development is at 1906, 474 and 1680.

* Re-bless the golden tables after the dropped-store mask's deletion

Every module with a device store loses its read-only guard (a31d02e99a),
so bless_golden_hashes moves 1330 rows of golden_hashes.tsv;
bless_engine_inventory, bless_engine_goldens and tests::air_input wrote
nothing new.

Verified: the three bless runs and air_input exit 0 at 623f8d2170.

* Re-bless the authored compile census after the dropped-store mask's deletion

corpus-triage --audit authored-compile --bless over 2253 cases and 21
profiles: 0 differences, 0 regressions, 0 failed, 20159 artifacts moved
by hash alone (the store guard's words). Slowest compile 586 ms,
slowest case across all profiles 18.5 s, peak worker RSS 231 MB.

Verified: the census run above at 623f8d2170.
2026-10-28 17:24:23 +02:00
Anees Iqbal 12cd1535a8 Keep the device's copy for blits through a texture Metal compresses
One work packet, landed as 9 commits (62c7d7a9f5..378d636d2f on archive/development-linear-2026-10-28), in order:

* Keep the device's copy for blits through a texture Metal compresses

Metal's GPU blit into or out of a texture it keeps losslessly compressed
writes three families' texels in its compressor's canonical encoding:
BGRA10_XR (and its sRGB twin) with each field's low six bits cleared and
the alpha code clamped, RG11B10Float with a NaN made the quiet NaN, and
RGB9E5Float with the shared exponent lowered. The runtime reproduced that
with a crate-owned compute rewrite of the copied rows (bind::CompressedBlit
and its module) after every such blit.

That is Metal's compressor's encoding, not the format's: Metal's own
uncompressed texture of the format keeps the bytes through the same blit,
and every rewritten texel reads the same value either way. The device's
copy, which keeps the bytes, is now the only form. A blit through such a
texture announces the note of the encoding it keeps, once per device:
extended-range-bits-kept (BGRA10_XR), device-nan-encoding (RG11B10Float)
and shared-exponent-kept (RGB9E5Float), each existing kinds; no new kind.
Where the device's own copy already writes Metal's encoding (MoltenVK,
RuntimeDriverDefect::CompressedImageCopiesRewriteTexels) nothing is
announced; the defect's PixelFormatView usage, which keeps CPU copies
byte-exact there, stays.

Removed public items: bind::CompressedBlit, bind::CompressedBlitModule,
bind::compressed_blit_module, WorkCounts::compressed_rows_rewritten.
RUNTIME_VERSION 1740. The conformance recordings' runtime cost records
that count compressed_rows_rewritten (compressed-blits-*, fresh-pattern-*,
xr-clear-routes-*, xr-draw-*) move at the next re-bless.

The compressed-blits lane now asserts the bytes are kept and each format's
note is announced; the conformance case declares the note where it is not
one of the suite's native notes.

Verified: cargo clippy --workspace --all-targets --all-features -D warnings;
RUSTFLAGS='--cfg m2v_gpu' cargo check of runtime and validation; nextest
of blit_plan, degradation, degradation_catalogue, conformance
compressed_blits, unused_bits, fast_paths, owned_divisions, api_surface,
api_signatures and refusal_surface (77 passed). Device lanes and replay
run after the whole series.

* Resolve a fetching pass's sample planes by the device's average

A color attachment whose sample planes held its samples as the pass ended
(framebuffer fetch in the pixel interlock on a device without multisampled
storage images: ANV, MoltenVK) was resolved from the planes by the
crate-owned resolve, which computes Metal's closed rules for every unorm,
snorm, sRGB, 32-bit float, half, packed 16-bit, RG11B10Float and
RGB9E5Float format. Every other color attachment resolves by the device's
AVERAGE. The average is the device's native answer, so it is now the only
form here too: the planes merge back and one more instance of no draws
resolves the attachment, announced device-rounded-resolve where the
driver's average is not measured to be Metal's (on MoltenVK it is,
DriverFact::ColorResolveAverageIsMetals, so nothing is announced there).

The crate-owned resolve keeps the two resolves no device's average writes:
into the attachment's format's sRGB twin (the 8-bit unorm and sRGB rules)
and of an extended-range attachment. Its rules for every other format, and
their tests, are deleted. ColorResolveFormat::of names the twin's eight
formats; sample planes are read only for an extended-range form, and a
module of a twin format from planes is refused.

Removed public items: ResolveRule::{HalfUnorm, Snorm, Float32, Float16,
SmallFloat, SharedExponent}, ResolveRule::bits, ResolveRule::resolves,
ColorResolveFormat::resolves; ResolveRule::Unorm loses its bits field.

Cost: such a pass now merges its planes back and resolves in one more
render pass instance, where it drew one resolve pass from the planes; a
memoryless attachment the pass only fetches and resolves needs a backing.

The ColorResolveAverageIsMetals docs, the shader-resolve and
device-rounded-resolve entries (degradation.rs, docs/API.md) now say what
resolves where. The fetch lanes expect no shader-resolve for a fetched
attachment.

Verified: cargo check --workspace --all-targets --all-features; the GPU
cfg check of runtime and validation; nextest of color_resolve,
sample_planes, degradation, driver_facts, fast_paths, api_surface,
api_signatures, refusal_surface (84 passed). Device lanes run after the
series.

* Clear a float attachment to the clear color as the device converts it

A render pass's Clear of a normalized, sRGB, packed 16-bit, half, float or
small-float color attachment computed Metal's texel on the CPU (its
rounding, its trip through half for the packed 16-bit formats, its
truncated small-float and shared-exponent mantissas) and handed the device
a value that converts back to it; a Depth16Unorm clear took a quarter step
above Metal's truncated code. The conversion is the device's native
answer, so the clear value is now the color (or depth) as a float, which
the device converts.

Where the device's conversion can stand a code from Metal's it is
announced, once per device: device-color-conversion where a normalized
channel's scaled value lies within 1/1024 of a midpoint between two codes
(a packed 16-bit channel's within Metal's half step too), an sRGB channel
lies inside (0, 1), or a half, small float or shared exponent does not
hold the value exactly; unorm-depth-rounding where a Depth16Unorm depth's
scaled value lies at or above a midpoint, which Metal truncates and a
device rounding to nearest takes up. Vulkan asks for rounding to nearest
and leaves ties, sRGB encodes and float rounding to the device. A NaN in a
normalized or RGB9E5Float channel still clears as 0 (Vulkan states no such
conversion); integer, extended-range, word and YCbCr attachments keep
Metal's conversion, which no device makes for them.

Metal's measured conversion moves into the tests as the model they compare
with. The renders lane accepts a device texel a code from Metal's where
the note is announced and prints it; the cleared sRGB resolve lane
compares the resolve with the device's own 1x clear.

UnormDepthRounding's docs and cost, PrecisionNote::DeviceColorConversion's
docs and both docs/API.md entries say so.

Verified: cargo clippy --workspace --all-targets --all-features -D
warnings; the GPU cfg check of validation; nextest of clear_value,
heap_tiled, fresh, nan_clear and degradation (55 passed). Device lanes and
replay run after the series.

* Expect the device's clear conversion in the lanes that clear at a tie

Since 5925c303f8 a clear converts the clear color (and a 16-bit depth)
the device's way, announcing device-color-conversion where a channel
lies at a rounding question (0.5 on an 8-bit unorm channel is 127.5
codes, a tie; any sRGB channel's encode) and unorm-depth-rounding where
a Depth16Unorm clear's fraction reaches the midpoint (Metal truncates).
Lanes that hold exact notice sets or Metal's truncated depth codes now
expect them:

- dont_care_stores: every pass clears through color_pass or earlier()
  at 0.5; clear_tie() adds the note to each expected set (MoltenVK's
  pipelines record no color-conversion note, so it showed there first).
- resolves: the depth stand-in clears Depth16Unorm to 0.5 (32767.5
  codes): Metal's 0x7fff or the device's 0x8000, and the note announced
  exactly for that format.
- buffer_depth_samples: the 16-bit clear to 0.25 (16383.75 codes)
  announces unorm-depth-rounding.
- buffer_texture_blits: the planar depth clears (0.375, 0.625, 0.875)
  hold Metal's truncated code or the one above it, the note's bound.

Verified: the four lanes' failing tests on lavapipe (linux-gate
halfnative) failed before these edits; on MoltenVK (Apple M3 Max,
maclock) dont_care_stores, resolves' depth stand-in,
buffer_depth_samples and the planar depth lane pass with them.

* Merge a fetched attachment's sample planes back before its twin resolve

A pass whose last draws fetch a multisampled attachment through sample
planes (the pixel interlock without multisampled storage images: ANV,
MoltenVK) left the planes unmerged after it under MultisampleResolve
wherever the crate-owned resolve drew the attachment's resolve, on the
reading that that resolve reads the planes. A resolve into the
attachment's sRGB twin is crate-owned but reads the attachment itself
(color_resolve.rs filters its planes out), so it resolved samples the
pass never wrote: on MoltenVK a 4x RGBA8Unorm attachment cleared to 0,
fetched once and resolved into RGBA8Unorm_sRGB read all zeros, where
the same pass stored too resolves (255, 225, 0, 0).

The planes steps now skip the merge only for a resolve that reads the
planes, an extended-range attachment's (the flag is renamed
planes_resolve to say so); a twin resolve merges first, as a stored
attachment does.

Test: runtime_lane::framebuffer_fetch::planes::
a_twin_resolve_of_a_fetched_attachment_reads_its_samples holds the
MultisampleResolve answer to the StoreAndMultisampleResolve one.

Verified on MoltenVK (Apple M3 Max, maclock): the test failed without
the fix (zeros) and passes with it, beside the planes, memoryless,
kept_resolves and twin-resolve lanes (18 passed); the runtime's
sample_planes unit tests pass.

* Expect the clear note in color_reformat's passes, through one helper

color_reformat's passes clear to (0.5, 0.25, 0.75, 1.0), whose red is a
tie in an 8-bit unorm channel, so the device's conversion of the clear
announces device-color-conversion at the device's first such pass.
Lavapipe's pipelines record the note already; MoltenVK's record none
(VkProperty::MetalColorWrites), so its exact notice sets failed there.

degrade_notices::tie_cleared() names that note for every lane whose
passes clear at a tie; dont_care_stores' local helper moves there.

Verified on MoltenVK (Apple M3 Max, maclock): color_reformat and
dont_care_stores pass (they failed in the full runtime_lane run before
this change).

* Hold the kept compressed-blit encodings to the ledger, and declare their notes

Since 01f733c6f0 a blit through a texture Metal keeps losslessly
compressed is the device's copy, which keeps the bytes Metal's
compression rewrites into the canonical encoding. The lavapipe replay
then read 46 rows the ledger did not expect:

- 28 value sites of compressed-blits-{bgra10xr,bgra10xr-srgb,rg11b10f,
  rgb9e5f}: the device's bytes against Metal's canonical encoding. Each
  is now a known-gaps.tsv row (venue llvmpipe) naming the note that
  records it: extended-range-bits-kept, device-nan-encoding,
  shared-exponent-kept, whose bound (the same value, another encoding)
  covers it. Nothing is open: rule 1 rules out writing Metal's encoding.
- 18 notice sites of fresh-pattern-{552,553,93}, xr-draw-bgra10xr*
  and xr-clear-routes-bgra10xr*: their read-backs blit out of such a
  texture and announce the note, every value exact. They now declare
  it through compressed_blits::kept_encoding_notice, the one table of
  which format announces which note (device-nan-encoding is native and
  declared for every case already). fresh_contents' row-notice test
  counts the three pattern rows' second allowance.

docs/CONFORMANCE-COVERAGE.md regenerated (the ledger's row count).

Verified: conformance replay --cpu on lavapipe (linux-gate halfnative,
arm64): exit 0, 751 rows, exactly the ledger's (723 before the series
plus these 28), 0 unlisted and 0 stale; cargo nextest -p
metal2vulkan-conformance (1005 passed); clippy -D warnings.

* Format owned_divisions' bind import after the rebase

The rebase onto development dropped both CompressedBlit (this series)
and BlockDecode (development's BC twin removal) from the import, which
rustfmt now joins onto one line. No behaviour changes.

Verified: cargo fmt --all --check.

* 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:22 +02:00
Anees Iqbal 8acf6ae154 Sample a BC texture's own image through the device's decode, keeping no twin
One work packet, landed as 3 commits (d8bb73078f..862d4c13a1 on archive/development-linear-2026-10-28), in order:

* Sample a BC texture's own image through the device's decode, keeping no twin

Under the native-arithmetic rule a device that has a BC format decodes it itself: its decode is
the answer, recorded where it can differ from Metal's. The BC1 to BC5 decoded twin emulated
Metal's 6-bit-weight decode on drivers not measured to make it (lavapipe, NVIDIA, ANV, RADV's
BC4/BC5), at the cost of a second image 4 to 8 times the blocks and a decode after every write.
It goes, and with it every piece only it used:

- the translator's `bind::BlockDecode` and `bind::block_decode_module` (Metal's fitted BC1 to
  BC5 decode, its kernel and its tests); `bind/block_decode.rs` keeps only what the carriers'
  decode modules share (`BlockDecodeModule`, the bindings, `table`, `decode_module`);
- the runtime's `TwinDecode::Block`, `Device::twin_decode`, the twin's announcement
  `decoded-block-twin` (`Degradation::DecodedBlockTwin`, removed), the view-decode notice for a
  view of another decode (`degrade_view_decode`, `degrade_device_decode`), and the
  device-test-only `Scheduler::decodes_pending`, which only the BC twin's CPU decodes needed.

A BC texture (BC1 to BC7, the sRGB forms too) is now its own BC image on every device, and on a
device whose driver lacks the format's fact (`ColorBlockDecodeIsMetals`,
`ChannelBlockDecodeIsMetals`, `Bc6hBlockDecodeIsMetals`, `Bc7BlockDecodeIsMetals`) announces
`compressed-texel-decode`, now also for a sparse texture and a texture over the caller's
`VkImage`, which announced nothing before. The facts still decide the note. The carriers'
twins (ASTC, PVRTC, ETC2/EAC, 4:2:2) and their CPU decode thread are unchanged; a carrier whose
twin's format the device cannot sample is now refused typed instead of read as its carrier (no
conformant device lacks those formats). The sRGB forms' read through Metal's table is unchanged
here (another change replaces it).

Lanes and suite:
- `runtime_lane::compressed_decode` reads the device's decode: exact where the driver has the
  fact (within `device-texel-conversion`'s ulp off Metal's sampler), else within the note's
  stated per-format bound, with the note announced; no write makes a decode pass or CPU decode.
- `cpu-block-decode` keeps a lane site in `astc_textures` (`astc_cpu_writes_decode_on_the_cpu`,
  the CPU decode thread's ordering behind work in flight), and `chroma_pairs` holds its notice
  to the CPU decodes on every device.
- conformance: `compressed-texel-decode` joins `replay::NATIVE_NOTES`; the BC cases declare no
  twin notices; 40 llvmpipe rows in known-gaps.tsv, one per BC1 to BC5 round, each within the
  note's lavapipe bound. The cross-check `every_recorded_texel_is_the_lanes_fitted_rule` still
  holds the M3 Max's recorded texels to the case's own model of Metal's decode.
- new device test `tests::bc_own_image`: every BC format, `Shared` by `replaceRegion`, `Private`
  by a blit and a heap's, has no twin, keeps its blocks, makes no decode, and announces the note
  exactly where the fact is missing.

Docs: API.md's `compressed-texel-decode` entry and cost (lavapipe's BC4/BC5 bound widened to
2.4/255, signed 0.022, as measured below), `decoded-block-twin` removed; a FAST-PATHS.md
device-gap row; REFUSALS.md, api_signatures.tsv, api_surface and CONFORMANCE-COVERAGE.md
regenerated. RUNTIME_VERSION 1669 -> 1710 (renumbered at landing). SEMANTICS_VERSION stays: no
translation changes, so the golden hashes do not move. The runtime-sources pin is not re-pinned
here.

Verified:
- clippy `--workspace --all-targets --all-features -D warnings`, plain and `--cfg m2v_gpu`;
  rustdoc with `-D warnings`; the refusal, signature, Metal and conformance coverage checks.
- macOS, no device: metal2vulkan-runtime + metal2vulkan-conformance 2139 passed; metal2vulkan's
  fast_paths, owned_divisions, bind, api_surface, api_signatures, driver_facts and cache tests
  568 passed; conformance again after the ledger rows, 1007 passed.
- lavapipe (linux-gate arm64, `--cfg m2v_cpu_icd`): 145 tests of the touched families passed
  (bc_own_image, compressed_decode, astc_textures, chroma_pairs, pvrtc/etc textures,
  degrade_notices, texture_blits/fills, cpu_copy_layouts, image_plan, first_moves, the
  degradation tests). Largest differences from Metal: BC1/BC2 2/255, BC3 3/255, BC4 2.28/255
  (signed 0.0172), BC5 2.31/255 (signed 0.0212); BC6H has its fact there, BC7 announces.
  `conformance replay --cpu`: the only unlisted gaps were these 40 BC rounds, no stale row.
- MoltenVK on the M3 Max (maclock, memcap): 43 tests passed, every BC1 to BC5 channel exactly
  Metal's, no `compressed-texel-decode`; the replay of 105 touched cases left all 41 BC cases
  exact (one unrelated divergence, `read-write-tier-held`'s `set-past-layout-support` notice).

* Count the ASTC CPU-write lane's behind-work decodes from before the making

`astc_cpu_writes_decode_on_the_cpu` failed once on lavapipe after the rebase onto cb759a4c4a:
"ASTC4x4LDR Event: 2 CPU decodes, not 1". The cause is the test's window, not a second decode.
`WorkCounts::cpu_block_decodes` counts a write's decode when the device's decode thread finishes
it (`Image::finish_twin_decode`). The case writes the old blocks, commits the reader, and only
then took `before`. In the Busy case `scheduled(&reads)` waits for the reader's batch, which the
scheduler holds until the old blocks' decode finished, so `before` already holds it. In the Event
case nothing waits, so the old blocks' decode could land after `before` and be counted with the
new ones'. Each write queues exactly one job, and the thread takes them in order, so 2 is the old
write plus the new.

Now the case counts from before the texture's making and expects exactly two CPU decodes (its two
writes) where the copies go on the host or the staging queue, and none elsewhere. The count is
read after the later reader completed. That reader's batch waits for the new write's decode, the
thread finished every earlier job by then, and it counts each job before it releases the batches
that wait for it. Every earlier case's decodes landed before its own later reader completed too.
No sleep, and no looser bound.

Verified: clippy of the validation crate under `--cfg m2v_gpu`; on lavapipe (linux-gate arm64,
`--cfg m2v_cpu_icd`), the test 20 times and the families
bc_own_image|cpu_copy_layouts|compressed_decode|degrade_notices|astc|etc_textures|chroma_pairs|
event_round_trips|grouped_submissions|waiter_submits|scheduler. The 20 runs all passed: each of
the 80 behind-work cases (two formats, Busy and Event) counted exactly 2 CPU decodes, 0 cases
wrong; 13 Busy cases were void (the reader ran before the write) and 2 to 4 cases a run held.
The families: 86 tests passed.

* 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:22 +02:00
Anees Iqbal 5d09f454b4 Make the mipmap compute filter a plain bilinear filter in float
One work packet, landed as 4 commits (87ed7f903a..1af72fc0d8 on archive/development-linear-2026-10-28), in order:

* Make the mipmap compute filter a plain bilinear filter in float

The owner's decision for generate_mipmaps: the device's blit chain is the
answer wherever the device blit-filters the format, and a compute filter
runs only where it cannot (extended-range formats, formats without blits
or linear filtering). That filter is a plain bilinear (trilinear in 3D)
filter at texel centres in float, not a model of Apple's datapath.

bind::mipmap_filter keeps its planning, scratch layout and first-level
fetch, and drops the exact machinery: the measured answer tables, the
reciprocal and tail models, the soft-float arithmetic and MipmapRule.
The kernel decodes each field to float (Metal's 8-bit sRGB and
extended-range sRGB tables, the packed floats and RGB9E5 exactly), sums
the taps a linear sampler takes at the texel centres in tap order with no
contraction, and encodes to nearest even. It needs no 64-bit integers.
cpu.rs is the same filter on the CPU, the kernel's reference.

The runtime still names the removed items; it follows in the next commit.

Verified: cargo nextest run -p metal2vulkan --all-features --lib -E
'test(/mipmap_filter/) | test(/owned_divisions/)', 9 passed: every kernel
validates on every committed profile, and the kernel run in the SPIR-V
interpreter equals the CPU filter byte for byte over 38 formats and 9
shapes (arrays, cube, 3D, strips) and over 39 fetched first levels.

* Make generate_mipmaps the device's filter: its blits, else the compute filter

The owner's decision for generate_mipmaps: the device's blit chain
(vkCmdBlitImage, VK_FILTER_LINEAR) is the answer for every format its blits
filter, and the compute filter only where they cannot. No refusal for
accuracy; refusals stay for what cannot run or what Metal refuses.

mipmap_plan::plan_mipmaps now plans Blits, Picks or Filter. A filtered
format takes the blit chain where the image's format has BLIT_SRC, BLIT_DST
and SAMPLED_IMAGE_FILTER_LINEAR and the image takes transfers; it takes
the compute filter where they lack (an extended-range format, an 8-bit
sRGB texture held as its UNORM twin, a format without blits or linear
filtering) and the filter computes the format in an image of its bytes.
Otherwise the refusal names what the blits lack. The 1D refusal is gone
(Metal makes 1D textures of one level, which are left as they are).

Removed: the per-format first-use check against mipmap_answers.txt
(mipmap.rs keeps only the blit recorder), mipmap_answers.txt, MipmapVerdict
and Device::mipmap_generation, metal_release::MIPMAP_RULE, the texture
facts' check cache, new_runtime_texture (only the check used it), and the
degradation kinds mipmaps-within-spread and mipmap-tie-rounding. One kind
replaces them: device-filtered-mipmaps (precision), announced once per
device on both paths. WorkCounts::mipmaps_filtered counts compute-filter
chains; image_blits_recorded counts the chain's blits.

The filter kernel now decodes normalized, sRGB-step and extended-range
codes by a product with a reciprocal rounded once to f32 instead of a
division, so every operation is one Vulkan has a device round correctly
and the CPU model is the device's answer on a device keeping f32
subnormals.

The validation lane mipmaps_exact becomes mipmap_chains: the blit chain
(work counts, each halving level within a code of the float filter,
announced), every format the filter computes (the device's blits or the
filter, the filter's levels byte for byte the CPU's), an extended-range
texture announced as the filter, the picks, and the in-place fetch.
texture_blits' every-format lane prints each format's way. Docs: API.md's
catalogue, FAST-PATHS.md (a device-gaps row; the BGRA4Unorm gap's text),
the runtime README, REFUSALS.md regenerated, api_signatures blessed,
api_surface's table. RUNTIME_VERSION 1665 -> 1666 (mipmap behaviour
changed) and the runtime-sources pin.

Verified: cargo clippy --workspace --all-targets --all-features -D warnings,
plain and with --cfg m2v_gpu; rustdoc -D warnings for metal2vulkan and the
runtime; the runtime's whole suite plus the translator's surface, fast
paths, refusal and mipmap tests (1180 passed); the runtime-sources guard.
On lavapipe (scripts/linux-gate, arm64, --cfg m2v_cpu_icd), 13 passed:
mipmap_chains (5), texture_blits' every-format lane, read_through_views'
mipmaps, memoryless_uses (4), rgbx_textures' refusals and degrade_notices'
site list. There the blits made 29 of the 38 formats the filter computes
(87 chains), the compute filter made R8Unorm_sRGB, RG8Unorm_sRGB,
RG11B10Float, RGB9E5Float, BGR10A2Unorm and the four XR formats (27 chains),
each the CPU's byte for byte, and device-filtered-mipmaps was announced once.

* Hold the device's filtered mipmaps among the conformance suite's native notes

generate_mipmaps is now the device's filter (its blit chain, else the compute filter) and
announces device-filtered-mipmaps: the device's own filtering, which rule 1 names, so it joins
replay::NATIVE_NOTES beside device-sampling. Values still compare field by field.

Verified on the merged tree (5a1a62bb0e + the mipmap commits): clippy --workspace --all-targets
--all-features clean; nextest -p metal2vulkan-conformance -p metal2vulkan-runtime: 2140 passed.

* 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:21 +02:00
Anees Iqbal 7e86900912 Leave half-float texel writes to the device: drop the half-bits paths
One work packet, landed as 4 commits (a6e81074ae..77a585c009 on archive/development-linear-2026-10-28), in order:

* Leave half-float texel writes to the device: drop the half-bits paths

Under the native-arithmetic ruling the device's own write is the
answer for a half-float texture's stored NaN, recorded as
DeviceNanEncoding (or MetalHalfTexelWrites / MetalHalfStorageNans
where measured). Two paths existed only to store Metal's half NaN bits:

- the half-texel write route through the texture's unsigned integer
  alias (StorageImageClass::HalfBits), which a slot that writes a
  half-float texture took on a device without MetalHalfTexelWrites,
  with its alias view (metal::format::half_bits_view), its read and
  write conversions, its imageblock-slice bits leaf, the read note it
  recorded, and the own-format-views fact a wrapped image without
  MUTABLE_FORMAT needed to opt out of it (TextureFacts::own_format_views,
  TextureShape's field, storage_choice_viewed);
- the heap twin: StorageFormatClass::HalfBits and its neutral and heap
  class, the twin's element view, the own-view heap class indices
  (heap_own_view_index, HALF_BITS_FORMATS, heap_half_bits_indices),
  the twin write and its class test, RuntimeFact::HeapHalfTexelWrites,
  bind::heap_write_nans_converted, metal::format::half_write_nans_converted,
  and the runtime's NanResidue and its draw-time announcement.

What a device needs to write such a texture at all is unchanged: a
half-float slot is the format's own Identity choice on every profile.
The heap write path now records its notes statically: a float write's
rounding and NaN as MetalHalfStorageWrites/MetalHalfStorageNans or
DeviceColorConversion/DeviceNanEncoding, a half write's NaN as
DeviceNanEncoding.

Tests follow the behaviour: the format test asserts Identity for every
use, the heap texel write test asserts one storage class and the note,
the half-slice test asserts the device's widened halves, the half moves
and half texel write tests drop the alias case (the latter now checks a
declared RGBA16Float on every profile), and the twin-only tests go.
Docs the deletion made false are fixed; REFUSALS.md and
api_signatures.tsv are regenerated.

SEMANTICS_VERSION 1883, ARTIFACT_FORMAT_VERSION 466, RUNTIME_VERSION 1665.

Verified so far: cargo check --workspace --all-targets --all-features
is clean; conformance-coverage --check and refusal_surface pass.

* Drop the half-bits exact form from the llvmpipe half-texel rows

The llvmpipe half-texel-nans rows named the read side of the
StorageImageClass::HalfBits aliasing as the exact form behind a policy
switch; that aliasing is gone under the native-arithmetic ruling, so
the sentence describing it is false. The rows' verdicts and the
device-nan-encoding sentence stay.

Verified: scripts/conformance-coverage/coverage.py --check passes.

* Fix the two tests the half-bits deletion left stale

device::tests::mechanism numbers every RuntimeFact densely; with
HeapHalfTexelWrites gone the last tag moves into its place.

merged_argument_buffer_textures_share_one_heap_class bounded the module
at 1,600 words (2,300 with word ids) plus the twin's write words where
the profile took the twin. Without the twin the bound shows what that
allowance covered: on a device that holds an A8Unorm texture's alpha in
red (metal::format::alpha_in_red), the heap write's class-index read
and conversion, 87 words on RADV RDNA2/RDNA3, ANV ARL/Iris Xe,
lavapipe and NVIDIA, 1,591 words elsewhere. The bound now names that
allowance.

Verified: both tests pass under cargo nextest; clippy -p metal2vulkan
--all-targets --all-features -D warnings is clean.

* 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:21 +02:00
Anees Iqbal 79166a74b1 Leave NaN bits and min/max picks to the device
One work packet, landed as 6 commits (a6e97e7f93..3919c8c94a on archive/development-linear-2026-10-28), in order:

* Leave NaN bits and min/max picks to the device

On the owner's ruling to promise the GPU's native arithmetic with no exact
emulation, delete the NaN and minimum/maximum switch and every form that
only it, or Metal's NaN bits, kept.

What goes:
- DevicePolicy::nan_and_min_max and NanMinMaxPolicy (exact_answers line,
  serde, ExactFormsOverCompilerLimit::nan_and_min_max, the fit leg).
- The module's selects of Metal's NaN: NanEncoding::Device,
  ArithStrategy::Nan and lower/arith/nan.rs down to its answer classes.
  A NaN Metal answers that the device is not measured to answer records
  NativeNanEncoding.
- Metal's operand pick in fmin, fmax, min3, max3, clamp and saturate
  (metal_min_max, metal_saturate, MinMaxRoute): NMin, NMax and NClamp on
  every profile, NativeMinMax where MetalMinMax is not taken.
- Metal's texel NaN rule (TexelNanRoute, the 0x7e00 keeps, the half texel
  NaN keep, the NaN classes of reads, samples and gathers).
- NaN canonicalization before colour and storage writes:
  StorageImageClass::HalfQuietNan and SmallFloatQuietNan, the half write
  NaN classes (HalfNans), the quieted heap small floats, the colour lanes
  that chose 0x7fc00000, the 16-bit colour outputs (StageIo and
  StageModule half_bit_colors, IoType::bits, Degradation::
  ShaderHalfColorBits), PushField::TextureHalfChannels,
  RuntimeFact::StorageTextureHalfChannels and the slot word behind it.
  Such writes record DeviceNanEncoding where the stored NaN may not be
  Metal's (heap and formatless writes, 32-bit and packed float channels).
- The narrow-float vertex fetch's canonical NaN: noted instead.
- The runtime's colour NaN clears (nan_clear::NanClears and its texel
  computation, the inline-first NaN clear refusal, WorkCounts::
  passes_not_inline_actions_nan_clear): the device's clear, announced as
  DeviceNanEncoding. The depth NaN clear and the bit-exact copies stay.
- FAST-PATHS rows for the switch, the half texel keep and the half from
  bits under float controls; the known gap of RADV's sampler NaN; the
  API.md passages and catalogue entries.

Kept: the notes that describe the native answer (NativeNanEncoding,
NativeMinMax, DeviceNanEncoding), the measured deviations they read, the
copy and depth paths, keeps_nan_sign, the heap half-bits twin, the half
rounding and the blended snorm NaN of other lanes.

Versions: SEMANTICS_VERSION 1871, ARTIFACT_FORMAT_VERSION 454,
RUNTIME_VERSION 1652. docs/REFUSALS.md regenerated.

Verified: cargo clippy --workspace --all-targets --all-features -D
warnings, plain and with --cfg m2v_gpu; RUSTDOCFLAGS='-D warnings' cargo
doc --workspace --all-features --no-deps; nextest of metal2vulkan
filtered to the touched modules, fast_paths, catalogue, degradation,
api_surface and profile (see the report for counts), and of the runtime,
validation and conformance unit tests touched. No device test was run.

* Re-bless the API signatures after the NaN and min/max deletion

The table loses the public items the previous commit removed:
NanMinMaxPolicy and its variants, DevicePolicy::nan_and_min_max,
ExactFormsOverCompilerLimit::nan_and_min_max, PushField::
TextureHalfChannels, RuntimeFact::StorageTextureHalfChannels,
StorageImageClass::HalfQuietNan and SmallFloatQuietNan,
StageModule::half_bit_colors, Degradation::ShaderHalfColorBits and
WorkCounts::passes_not_inline_actions_nan_clear.

Verified: python3 scripts/api-signatures/signatures.py --bless; nextest
of the api_signatures, api_surface, refusal_surface and
feature_vocabulary binaries (21 passed); the previous commit's filtered
metal2vulkan run, 1056 passed, plus runtime (53), validation (83 of 84;
the failing c3 venue-identity test names the Apple M4 and touches no
file of this change) and conformance (38) filtered runs.

* Fix the tests the rebase onto development left broken

The rebase of the NaN and min/max deletion onto development left two test
compile errors: the extended-range samples still round through
`half_toward_zero`, which the resolution had dropped with the storage-slot
test that used it, and the RGBX storage cases named `HalfQuietNan`, which
both sides' deletions removed (a half-float twin is `Identity` now).

Verified: cargo clippy --workspace --all-targets --all-features -D warnings,
plain and with --cfg m2v_gpu; RUSTDOCFLAGS='-D warnings' cargo doc.

* Drop a dead dot form and let formatless half slots note conversion twice

select_float_fn still computed dot's scalar result form, which only the
removed NaN canonicalization read. The half-float storage test asserted
that a formatless slot notes DeviceColorConversion exactly when the
profile does not round Metal's way; a formatless slot may also reach a
normalized image, whose conversion is the device's on every profile, so
the note is only required one way there.

Verified: cargo check --workspace --all-targets --all-features is clean.

* Leave the fast division's NaN to the device in its test

The float-maths lane's a_fast_division_answers_metals_nans_on_every_profile
asserted Metal's canonical NaN after the device's OpFDiv where the
profile does not take MetalCanonicalNans. Under the native-arithmetic
ruling the module selects no NaN: the fast division is the device's
OpFDiv on every profile, noted NativeNanEncoding where the device is not
measured to answer Metal's. The test, now
a_fast_division_leaves_its_nans_to_the_device, checks that the module
is the same on both sides of the fact, the note where the fact is absent,
the device's arithmetic, division and denormal notes on every committed
profile, never DeviceNanEncoding, a NaN for each NaN case and 6 / 3
exactly.

Verified: cargo nextest -E 'test(/engine_arith::a_fast_division/)'
passes (2 tests); the previous form failed on amd-780m-hawkpoint-radv
for fast_one_by_negative_nan (0xffc00000, the device's).

* 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:20 +02:00
Anees Iqbal b7a62be64b Drop the exact tile store: a loaded snorm or RGB9E5Float attachment keeps the device's load and store
One work packet, landed as 7 commits (c18e40911e..53fcb867b4 on archive/development-linear-2026-10-28), in order:

* Drop the exact tile store: a loaded snorm or RGB9E5Float attachment keeps the device's load and store

The owner's ruling (2026-10-27): the GPU's native answers are the contract,
with no exact emulation. TileStorePolicy and DevicePolicy::tile_store go,
with the load pass's rewrite of a signed normalized attachment's minimum
codes and an RGB9E5Float attachment's unnormalized words, and the
unused-bits module's two rules that served only it. The load pass keeps the
extended-range, padded and bfloat attachments, whose raw codes no device
holds as Metal's (capability). snorm-minimum-kept and shared-exponent-kept
still announce the native answer at each such draw; DriverFact::TileStoreIsMetals
still keeps them quiet on MoltenVK.

Docs: the ledger row and docs/API.md's policy bullet go; the catalogue
entries and the notices' docs drop the switch. The validation lane tests the
one form.

Verified: cargo clippy --workspace --all-targets --all-features -D warnings;
nextest of bind::unused_bits, tests::fast_paths, tests::owned_divisions,
api_surface and the runtime's degradation and catalogue tests (49 passed).

* Drop the exact color resolve: the device's average resolves every attachment it can

The owner's ruling (2026-10-27): the GPU's native answers are the contract.
ResolvePolicy and DevicePolicy::resolve go, with the crate-owned resolve
drawn after the pass for a format of Metal's rules on a device whose average
is not measured to be Metal's. The device's AVERAGE in the pass is the one
form there, announced device-rounded-resolve as before. The crate-owned
resolve keeps the resolves no device's average can write: an extended-range
attachment's raw codes, a resolve into the attachment's format's sRGB twin
(VUID-VkSubpassDescription-pResolveAttachments-00850), and a fetching pass's
sample planes, read in place of merging them back.

Docs: the ledger row and docs/API.md's policy bullet go; the shader-resolve,
device-rounded-resolve and unmeasured-resolve entries describe what remains
(unmeasured-resolve's cost text with them).

Validation: the lanes ran under exact_answers, so their expectations follow
the device's resolve: resolve_kind is device-rounded-resolve wherever the
average is not measured to be Metal's; the exact form's tests
(color_resolves_against_metals_rules, the caller's-image copy path, its cost
scout) go; the Maps-form and probe-6 resolves hold Metal's texels where the
fact holds and the announced bound elsewhere; shader-resolve's lane site
moves to the extended-range resolve lane.

Verified: cargo clippy --workspace --all-targets --all-features -D warnings,
plain and under --cfg m2v_gpu; nextest of fast_paths, the degradation and
catalogue tests, the runtime's resolve, sample-plane, framebuffer-fetch and
stand-in tests, and api_surface (129 passed). The device lanes were not run.

* Drop the depth twin: every Depth32Float texture is its D32_SFLOAT depth image

The owner's ruling: promise the GPU's native arithmetic, no exact emulation.
A Depth32Float texture the program only reads was held in an R32_SFLOAT
image with a D32_SFLOAT twin for comparisons, on a driver not measured to
keep every float in a depth image (plan_depth_twin), and a multisampled one
in R32_SFLOAT under MultisampleDepthTwinPolicy::Exact. Both forms exist only
to keep Metal's texel bits; the native form is the depth image, whose
possible clamp or denormal flush the existing notices already announce at
the write (restricted-depth-upload, depth-denormals).

Removed:
- MultisampleDepthTwinPolicy and DevicePolicy::multisample_depth_twin, its
  FAST-PATHS row, its known-gap paragraph and its fast_paths choice.
- image_plan::plan_images, plan_depth_twin, holds_depth_in_colour,
  holds_multisample_depth_in_colour, ImageFacts::depth_loss and
  ImageFacts::multisample_depth_twin.
- The twin image of a texture (Image::twin), its copies in replace_region,
  blits and host copies, Owner::HeapTwin and the heap plan's twin (heap_extent
  now takes the image alone; check_heap_base the route alone; Mine is gone).
- The depth-twin degrade kind (Degradation::DepthTwin) and its docs/API.md
  catalogue entry.
- The bind side: TextureFacts::depth_twin, TextureShape::Texture::depth_twin,
  ImageViewDesc::twin and sampled_view's twin argument.
- A sparse Depth32Float texture is no longer refused for needing a twin.
- copy_unit refuses any depth format held in colour (none is now).

Tests: the twin tests are replaced by one that holds a Depth32Float texture
in its D32_SFLOAT image on every committed profile (single-sampled,
array, cube, render target, 2 and 4 samples); the heap and copy-plan unit
tests follow the one-image forms. The validation lanes that expected a twin
(texture_blits' upload lane, clear_reach, resolves' read-only depth pass,
texture_fills, heap_textures) now expect the depth image and its notices;
conformance's fill cases allow Depth32Float's digest unchecked where
restricted-depth-upload fires, as Depth32Float_Stencil8's already is.

RUNTIME_VERSION 1656: what a run of an unchanged pipeline does with such a
texture changes.

Verified: cargo clippy --workspace --all-targets --all-features -D warnings,
plain and with --cfg m2v_gpu; nextest of the translator and runtime
image_plan, heap, copy_plan, texture_facts, families, texture, degradation,
catalogue, fast_paths, profile, api_surface, bind and driver_facts tests
(973 passed). Device lanes not run.

* Drop the magnitude stand-in and the sign strip: a stored signed depth is tested natively

On the owner's ruling to promise the GPU's native arithmetic, a render target's
32-bit float depth that may hold a negative value or a NaN is no longer
switched on to render over a magnitude stand-in, and no pass strips the signs
of the words it did not write. The device's depth test compares the stored
value as it is and its pass keeps every bit; the runtime announces that
answer.

What goes:
- texture/signed_depth.rs, with the switch-on flags, the stand-in plans, the
  write-backs and the sign strips in render.rs and render_pass.rs;
- Cause::Magnitude in attachment_stand_in.rs;
- the translator's DepthMagnitudeModule (bind/depth_magnitude.rs) and the
  DepthStencilCopy::{DepthMagnitude, MagnitudeBits} draws;
- OwnedModule::DepthMagnitude;
- copy_plan's holds_unlike_its_stand_in;
- WorkCounts' signed_depth_switch_ons, magnitude_stand_in_passes,
  magnitude_write_backs and sign_strips (and their counters).

What stays, describing the native answer:
- signed-depth-test is announced where a write (a host upload, a blit, a copy,
  a written NaN clear, a new target's pattern loaded) may store such a value in
  a render target's Depth32Float or Depth32Float_Stencil8 depth on a device
  that keeps it and whose test is not Metal's (no
  DriverFact::DepthTestComparesMagnitudes);
- where the device's test is Metal's own (MoltenVK), signed-depth-test is
  announced only at a pass that loads and stores the depth and sets a state
  with depth writes but draws under none, which keeps the signs.

The denormal notice no longer mentions the stand-in.

Docs:
- FAST-PATHS drops "A stored negative or NaN depth is tested by its magnitude"
  and the matching known gap;
- FAST-PATHS also drops "A Depth16Unorm depth whose code the fragment stage
  writes is tested after the stage" (the shader write is the translator's to
  remove);
- API.md's depth-denormals and signed-depth-test entries now state the native
  answer;
- doc comments the earlier steps left past 100 columns are reflowed, and the
  remaining depth-twin mentions (bind docs, fast_paths' comment, three
  conformance known-gap todos) are dropped.

Validation:
- depth_denormals' lanes check every read, sample and comparison against
  Metal's, the depth tests only where the device's test is Metal's own, and
  the notices where they now fall;
- the sign-strip lane is deleted;
- texture_blits expects signed-depth-test at the render-target upload.

Verified: clippy with all targets and all features, plain and with
--cfg m2v_gpu, across the workspace; rustdoc with -D warnings; the runtime's
nextest suite (1150 passed); the translator's touched tests (fast_paths,
catalogue, degradation, api_surface, depth_stencil_copy, owned_divisions,
profile, driver_facts, bind, policy: 671 passed); validation and conformance
non-device tests in the touched areas (230 passed). Device lanes were not run.

* Re-bless the API signatures and regenerate the refusal surface

The lane's removals leave the public surface without:
- MultisampleDepthTwinPolicy, TileStorePolicy and ResolvePolicy, with their
  DevicePolicy fields;
- TextureFacts::depth_twin, TextureShape::Texture's depth_twin and
  ImageViewDesc::twin;
- DepthMagnitudeModule and depth_magnitude_module;
- DepthStencilCopy::{DepthMagnitude, MagnitudeBits};
- Degradation::DepthTwin;
- WorkCounts' signed_depth_switch_ons, magnitude_stand_in_passes,
  magnitude_write_backs and sign_strips.

The refusal surface loses four sites:
- the sparse depth-twin refusal (SparseHeaps, texture.rs plan_sparse_texture);
- the host heap's twin refusal (HeapTextureMemory, heap.rs host_heap_plan);
- the heap twin's DetachTextures site (heap.rs heap_texture_at);
- the sign strip's SeparateMultisampledDepthStencil site
  (signed_depth.rs sample_strip).

Verified: python3 scripts/api-signatures/signatures.py --bless and
python3 scripts/refusal-surface/refusal_surface.py, then the api_signatures,
refusal, api_surface, published_crates, fast_paths and degradation_catalogue
tests (81 passed).

* Format the policy import lists after the half switches' removal

The rebase onto development (where the half-precision lane removed three policies) kept both lanes' removals; cargo fmt re-flows the shortened lists.

Verified: clippy (workspace, all targets, all features) clean; 709 touched tests (fast_paths, api_surface, api_signatures, catalogue, degradation, profile, bind, image_plan, published_crates, policy) pass.

* 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:20 +02:00
Anees Iqbal ec72c052dd Answer as one macOS release, 27.0.1, on every host
The owner's ruling: the runtime imitates the latest measured release
only, not the history of releases. Capabilities (GPU family, features,
limits) still follow the GPU; every answer that differs by release is
macOS 27.0.1's (build 26A434, measured on an Apple M3 Max), on every
host, whatever release it runs.

What changed:
- metal_level.rs becomes metal_release.rs: the public const
  MACOS_RELEASE ("27.0.1") and the release's answers in one place
  (heap block placement per family, the nil-texture stack alignment,
  the mipmap rule, a depth/stencil state's resource ID below Apple10).
  The pixel-format table and the private properties hold 27.0.1's
  answers alone.
- Removed the MetalLevel enum and its 26.7 row, the host-release read
  and the level choice, DeviceOptions::metal_level,
  RawDevice::metal_level and DeviceProperties::metal_level.
- Removed what existed only for 26.7: the indirect-dispatch-of-another-
  type refusal and its predication tracking, the depth/stencil resource
  ID refusal, the M3 Max GPU row counting for heap blocks, PVRTC's
  unmeasured heap placement, and the M4 mipmap stand-in emission.
- Problem::HostReleaseUnmeasured (the Unproven site),
  Problem::IndirectDispatchOfAnotherType and
  Problem::DepthStencilResourceId are gone. The Unproven type is
  untouched.
- Degradations metal-level-below-host, metal-level-not-macos and
  mipmaps-as-apple-m4 are retired (RETIRED_CODES, the retired section
  of docs/API.md); mipmap-tie-rounding's trigger and cost drop the 26.7
  clauses.
- Conformance: the recordings keep their "metal_level": "27.0.1" key as
  a fact about the recording; record and replay compare it with
  MACOS_RELEASE. Venue no longer carries a level.
- Validation's runtime_lane tests run on the default device, with the
  26.7-only tests and level loops removed.
- A runtime unit test now holds the block-compressed kind on ASTC 4x2,
  its one remaining trigger, in place of PVRTC at 26.7.

Docs: docs/API.md, docs/FAST-PATHS.md, docs/RUNTIME-PORTING.md and the
runtime README; docs/REFUSALS.md and docs/METAL-COVERAGE.md
regenerated (CONFORMANCE-COVERAGE.md regenerated, unchanged); the
signature table re-blessed with scripts/api-signatures/signatures.py.

Carried onto development from the parked development-performance branch
(a23f8181d9 there). The three conflicts were that branch's pipeline-record
hook (RawDevice and DeviceOptions fields and their Debug impls), which
development lacks: development's side is kept, without the release field.

Verified: cargo check --workspace --all-targets --all-features, plain and
with --cfg m2v_gpu; refusal_surface.py, signatures.py --check and the two
coverage generators leave the committed files unchanged.

Originally 79bb9749d3 (archive/development-linear-2026-10-28).
2026-10-28 17:24:20 +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 87994746ea Take IdPlacement::Outside for a texture over the caller's VkImage
One work packet, landed as 2 commits (6e5d7acfc7..6c8a857d8b on archive/development-linear-2026-10-28), in order:

* Take IdPlacement::Outside for a texture over the caller's VkImage

`Device::new_texture_with_vk_image` now accepts `IdPlacement::Outside`,
the runtime extension `Device::new_texture` already takes for a caller's
helper texture: the placement check is skipped for Outside, and
`Texture::made` (already handed `IdUse::Program(placement)`) takes no ID
and holds no slot. The wrapped path otherwise behaves as before; it still
takes no device sampler ID at any placement.

Why: the consumer wraps its swapchain images with this call. Refused at
Outside, it had to give them `Any`, so they took texture resource IDs and
a guest's textures' `gpuResourceID` and `uniqueIdentifier` started past
them while a window was open: the guest's answers depended on whether a
window existed. At Outside the program's textures are numbered as with
no window.

Docs: `IdPlacement::Outside`, the resource-ID module docs,
`check_texture_placement`, `Problem::OutsidePlacement`,
`TextureDescriptor::placement`, the call's own doc (which now says it is
a runtime extension and how it places the texture), docs/API.md and the
runtime README. docs/REFUSALS.md regenerated (the OutsidePlacement row's
wording). No public signature moved (`signatures.py --check` passes).

RUNTIME_VERSION 1647: a call that was refused now makes a texture, which
the version's rule ("a refusal or its class") counts as a behaviour
change. runtime-sources.sha256 follows the edited runtime files.

Test: `presenting::a_callers_image_placed_outside_takes_no_id` (device
lane). After a reservation of 20000, a plain texture takes 20001 on a
device with no caller's texture; a caller's texture placed Any takes
20001 itself and moves the plain texture to 20002; one placed Outside
answers 0 and the plain texture takes 20001. Placed Outside before the
reservation it starts no space (the plain texture still takes 20001),
and a clear of it is what a blit copy of it reads.

Verified, on this Mac (Apple M3 Max, MoltenVK, --cfg m2v_gpu, under
the shared GPU lock): the new test passes and prints "the plain texture
after a reservation of 20000 answers 20001 with no caller's texture;
(Some(20001), 20002) after one placed Any; (Some(0), 20001) after one
placed Outside". With the old unconditional placement check put back it
fails: new_texture_with_vk_image returns
Invalid(OutsidePlacement). Also passing in the same run: every
presenting test, resource_ids::an_outside_texture_takes_no_id, and the
runtime-sources guard. clippy -D warnings for metal2vulkan-runtime
(all targets, all features) plain, and for metal2vulkan-runtime and
metal2vulkan-validation under --cfg m2v_gpu; runtime rustdoc with
-D warnings; the refusal_surface, api_surface and api_signatures tests.

* 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 675a3ee122 Take sampled textures over host pages in place where the device's check passes
One work packet, landed as 2 commits (86ec320bae..8485bc6865 on archive/development-linear-2026-10-28), in order:

* Take sampled textures over host pages in place where the device's check passes

A 2D texture (or array) over host pages is now a linear image aliasing those pages, with no shadow,
when all of these hold:
- its declared usage only samples or reads it (no RenderTarget, ShaderWrite or ShaderAtomic);
- the pages are a no-copy buffer's, imported by their pointer or as dma-bufs, or a buffer the
  runtime placed in fresh pages;
- a startup check shows that, on this device, the image's first move keeps every byte while the
  CPU writes beside it.

Vulkan makes such an image start UNDEFINED (VUID-VkImageCreateInfo-pNext-01443) and lets the move
read and write every byte bound to it. Relying on the driver here, once checked, is the owner's
ruling ("In place, trusting the driver"): a deliberate, scoped exception, recorded in FAST-PATHS.

The switch is DevicePolicy::host_page_textures:
- HostPageTexturePolicy::InPlace is the default.
- HostPageTexturePolicy::Shadow is the exact form, which exact_answers() selects. Under it every
  such texture stays a shadow and no check runs.

The check (in_place_check.rs):
- It runs on a thread of its own, started by the first texture that asks, per class of pages:
  pointer imports, fresh pages and dma-buf imports. On a Unix target the dma-buf class uses an
  exported allocation of the device's own.
- Each class tries 11 shapes, 3 rounds each, through the product's own Buffer::new_texture:
  - packed rows of 1, 2, 4, 8 and 16-byte texels;
  - rows with bytes between them, for the same texel sizes;
  - one 3840x2160 surface.
  A shape the device makes no image of is skipped, as the product makes none either.
- A writer thread writes the pattern's complement through texels, the bytes between rows and the
  bytes after the image while the move runs. Every byte is then compared.
- The pattern is a 4099-byte prime period, so it lines up with no row, page or texel. The window
  is filled by copies and compared written bytes first, then a period at a time. That makes the
  33 MB surface cost about 11 ms a round in release.

The verdicts are kept as one record in the shader cache's content store:
- The record is named by vendor, device, driver ID, version, name and info, the UUID, the check's
  kind and version, and RUNTIME_VERSION.
- It is checksummed. A bad, partial or other-version record counts as none: the check reruns and
  overwrites it.
- With no cache directory, the check runs once per process.
- A forced failure (DeviceOptions::fail_in_place_check, a hidden test hook) keeps nothing.

Every texture that still takes a shadow announces why (shadowed-texture) and is counted by cause:
- the policy;
- usage that renders or writes;
- check pending, failed or unchecked;
- refused: rows, detached, image, pitch, placement, the dma-buf source, other dma-buf reasons.

WorkCounts also counts the in-place textures by class and pitched images, and the check's runs and
verdicts.

How an image in place is made, used and visible:
- Pointer and fresh pages take a linear image made for host allocations at Metal's pitch, or a
  DRM_FORMAT_MOD_LINEAR image at an explicit pitch over the host allocation where the driver makes
  one. Dma-buf pages take the modifier image over a dma-buf of the texture's own pages.
- A rebind remakes these images like the others.
- A write or pass beyond the declared usage goes through the existing usage shadow and attachment
  stand-in.
- A CPU write reaches the image's commands as it reaches the buffer's (Host Write Ordering
  Guarantees).

RUNTIME_VERSION 1643 -> 1644. The runtime-sources pin is left for the landing.

Check duration, Apple M3 Max on MoltenVK 1.4.2:
- 75-78 ms in release: Pointer and Fresh passed; DmaBuf unchecked, as there are no dma-bufs on
  macOS.
- 1.76 s in a debug build.
- The first version took 4.1-4.2 s in debug, almost all of it the 3840x2160 shape's per-byte
  hashed fill (240 ms) and compare (461 ms) per round, times 3 rounds and 2 classes; the GPU move
  itself took 0.15-3 ms.
- Nothing was dropped from the check. The 64x64/256 shape became 64x16/256, and packed shapes of
  each texel size were added, because MoltenVK takes no padded pitch: the first version made only
  4-byte images there.

Verified on the M3 Max (debug lanes, --cfg m2v_gpu):
- in_place_textures, all five tests:
  - the path follows the check, and an event-held CPU write after the commit is read;
  - a kernel write and a pass beyond the usage go through their shadows and keep the image;
  - a forced failure keeps the shadow and no record; the next device runs the check, and the one
    after recalls three verdicts and checks nothing;
  - the costs.
- first_use_writes under both settings: 1920x1080/7680 in place, 0 of 542 writes undone.
- no_copy_textures read/write under both settings: ShaderRead-only textures in place at packed
  rows, the rest shadows.
- pitched_surfaces, including the new _in_place variants of the only-reads and read-only-pages
  tests.
- The runtime and translator suites passed (4971 tests), with clippy plain and under --cfg m2v_gpu.

Cost on the M3 Max, release, median GPU time per command buffer, in place against shadow:
- 3840x2160, one pass reading a 32-row strip: 492 against 553 us.
- 1920x1080 strip: 457 against 452 us.
- 1920x1080 whole: 393 against 466 us.
- 1920x1080, three whole passes: 566 against 545 us.

Untested here: RADV, lavapipe and the dma-buf class, which follow; ANV and NVIDIA have no venue
now.

* 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 fc6e726daa Write no zeros into a region of a chunk that reads zero unwritten
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
- Re-pin the runtime sources at the landing tip

Content: the tree of `development` at b5b8bb0770, unchanged.
2026-10-26 13:19:22 +02:00
Anees Iqbal ca74ea24d4 Send a dropped store through a descriptor view to a sink binding, not around a branch
The steps this packet landed as, in order:
- Select the sink's place only where the store needs no word atomic, and re-bless
- Account for the sink's descriptor in the tests it moved, and read coherence through the selection
- Set the two variable-pointer features through their Vulkan 1.1 members
- Name the two variable-pointer members in validation's feature table
- Flatten the one-entry by-name copy and write the runtime-sources pin
- Re-pin the runtime sources onto the twin-resolve landing

Content: the tree of `development` at 55117cdfe4, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal 939e9d6e4a Keep the samples a resolve drawn after the pass reads, as Metal keeps them
The steps this packet landed as, in order:
- Record what the kept samples' negative control actually read
- Read an extended-range attachment's samples back after its resolve too
- Re-pin the runtime sources after the kept-samples change
- Re-derive the generated documents at the landing tip
- Bless the public surface the shader-cache landing added

Content: the tree of `development` at 60ff6f9405, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal 3cb648543f Take the indexed draw a buffer of DRAW alone runs as nothing
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
- Record the runtime sources' hash after the indexed draw on a DRAW-only buffer

Content: the tree of `development` at 4d0b93e5a3, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal d83182d197 Record the runtime sources' hash after the two indirect over-refusals
The steps this packet landed as, in order:
- Stop claiming two indirect calls are refused when the runtime takes them

Content: the tree of `development` at 161fd37a49, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal 0d37c17103 Measure what plain Metal runs for a tile dispatch past the tile, and for an indirect indexed draw past its index buffer
The steps this packet landed as, in order:
- Take RUNTIME_VERSION 1605 for the tile dispatch past Metal's limit
- Add the limit boundary and an odd dispatch to the tile spill's counted basis
- Rewrap the tile module doc's line at 100 columns

Content: the tree of `development` at b2670d8596, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal b31e26710b Serve a blit out of a plane whose GPU rows share bytes
The steps this packet landed as, in order:
- Ask the read probe only for the plane form Metal makes
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at 468e7db286, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 04bc130a4c Make the indirect buffer and bind counts plain Metal makes, and refuse only what its process does not survive
The steps this packet landed as, in order:
- Measure the slots past the records before anything is taken, and read the taken calls at commit
- Bless the public signature table after the bind-count refusal's variant
- Take runtime version 1605 and re-derive the generated documents at the rebase tip

Content: the tree of `development` at 7f47d5fffe, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal e283c925a9 Resolve a multisampled attachment into its sRGB twin in the twin's encoding
The steps this packet landed as, in order:
- Note the sRGB twin resolve in the color-resolve ledger row
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at 6ad082ffc1, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 1395addb47 Say what Metal leaves where a plane's GPU rows share bytes, and guard the copy that had no rule
The steps this packet landed as, in order:
- Name BGRA4Unorm's packed-16 attachment and its color input in the API guide

Content: the tree of `development` at ebd18b3408, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 2887c7e7a3 Remove RenderPassProblem::MemorylessStore, a refusal nothing can construct
Content: the tree of `development` at 7e5eb0f84f, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 02ce60a7f3 Remove Problem::NoBufferBound, a refusal nothing can construct
The steps this packet landed as, in order:
- Take a late store action of `Store` on a memoryless attachment

Content: the tree of `development` at 0c4ffadc0a, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 87d4d3b881 Copy the levels plain Metal copies and refuse only what it refuses
The steps this packet landed as, in order:
- Give BGRA4Unorm its texture round-trip row, recorded on Metal
- Re-derive the generated documents at the landing tip
- Record the runtime sources' hash after the level-copy narrowing

Content: the tree of `development` at 233e95d38e, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 5ef24f1f56 Record the runtime sources' hash after the memoryless and unbound-offset narrowings
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at 4ca407bfc0, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 6b069c02fe Record the runtime sources' hash at the landing tip
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at a2203c191a, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal f9ad123a0a Place every tile threadgroup argument offset, as plain Metal does
Content: the tree of `development` at c51c2421ff, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 26c7aad1d0 Name the device and release behind twenty-one forwarded refusals' measurements
Content: the tree of `development` at ead49055ec, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 1366be1718 Read the problems a Problem forwards to, and hold each to a basis
The steps this packet landed as, in order:
- Keep the quoted Metal messages out of rustdoc's link syntax
- Record the runtime sources' hash after the sub-problem basis lines

Content: the tree of `development` at 3ade9d9999, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 15f99831b6 Narrow two indirect refusals to the halves Metal does not take
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at 788eeefda0, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal cee7431132 Record, per refusal, why Metal is believed to refuse the input
The steps this packet landed as, in order:
- Record the runtime sources' hash after the refusals' basis lines

Content: the tree of `development` at 75f847189a, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 25653b5b1b Hold a heap texture to the heap's base only where an image of it binds there
Content: the tree of `development` at bb29a64948, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal ce22858836 Move the fill's empty pattern and the unstrided indirect buffer out of Invalid
Content: the tree of `development` at cac3120433, unchanged.
2026-10-26 13:19:17 +02:00
Anees Iqbal 7561e7bc4e Move the four refusals plain Metal takes out of Error::Invalid
The steps this packet landed as, in order:
- Hold the off-four execution range to an offset inside its buffer

Content: the tree of `development` at 15b0982f8c, unchanged.
2026-10-26 13:19:17 +02:00
Anees Iqbal eab25ced7d Cite a refusal's sites by file and function, with no generation stamp
The steps this packet landed as, in order:
- Say so when a conformance-coverage module is run as a command
- Order the TOOLCHAIN fixture lines by byte value, not by the host's locale

Content: the tree of `development` at b5a0b1378b, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal d6a3b3a4b0 Copy a snapshot's half-float texel through the alias its read widens
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at 8a9eb1d469, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 5c74da4e82 Name the declaration a signature mismatch is of, and the function calling it
The steps this packet landed as, in order:
- Read the two ABI shapes AIR 1.8 and AIR 2.4 write for a target and a member
- Take the operand forms Apple wrote before AIR 2.0 and the one it added at 2.9
- Pin five AIR emitter steps as fixtures, and record the AIR 1.x sampler gap
- Hold the two declaration-form tests to shapes a Metal compiler writes
- Record the five new fixtures and the two form fields in the golden tables
- Bless the golden hash tables for the six AIR-step fixtures
- Re-derive the generated documents at the landing tip
- Recompute the runtime-sources pin at the round's tip

Content: the tree of `development` at 27599dec48, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 383aa5f976 Answer a device's PCI bus address and DRM render node, and name the default one before making it
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip

Content: the tree of `development` at 0ead573733, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal 0ce84de6bc Answer a depth/stencil state's resource ID as plain Metal does below Apple10
The steps this packet landed as, in order:
- Take every tile threadgroup argument length plain Metal takes

Content: the tree of `development` at 4d695b78ae, 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 6c05931d19 Run a ragged dispatchThreads: as Metal's one dispatch where the kernel allows
The steps this packet landed as, in order:
- Regenerate the refusal surface at the tip

Content: the tree of `development` at 68529de026, unchanged.
2026-10-26 13:19:16 +02:00
Anees Iqbal b2d385e461 Name the two policies and the format reader the surface table was missing
The steps this packet landed as, in order:
- Regenerate the refusal surface for tonight's landings

Content: the tree of `development` at c2f0ffa64f, unchanged.
2026-10-26 13:19:15 +02:00
Anees Iqbal 8da790d75f Give the device-gated integrity guard the run count the replay now takes
The steps this packet landed as, in order:
- Answer the stage-input pipeline row: the stride is not what scales
- Regenerate the refusal surface for the lines the layer drop moved

Content: the tree of `development` at 294e3bdf0e, unchanged.
2026-10-26 13:19:15 +02:00
Anees Iqbal 03be9240cd Version the multisampled depth twin and recompute the pin
The steps this packet landed as, in order:
- Re-derive the refusal surface after the depth-twin switch moved its sites

Content: the tree of `development` at e9fd83f7c4, unchanged.
2026-10-26 13:19:15 +02:00
Anees Iqbal b13100744b Make the llvmpipe venue's ledger current in both directions
The steps this packet landed as, in order:
- Re-derive the refusal surface after the sparse tail moved its line numbers

Content: the tree of `development` at d6b44d626e, unchanged.
2026-10-26 13:19:15 +02:00
Anees Iqbal cb0ced8bdc Make the memoryless texture buffer plain Metal makes
The steps this packet landed as, in order:
- Say in the notice what the footprint now is

Content: the tree of `development` at c8cee22aa9, unchanged.
2026-10-26 13:19:14 +02:00
Anees Iqbal f7d857ec55 Answer a heap's and a heap texture's footprint Metal's numbers
The steps this packet landed as, in order:
- Say in the ledger that the ASTC heap size query answers
- Make the holding rule a named function and hold it to a table

Content: the tree of `development` at 74da346075, unchanged.
2026-10-26 13:19:14 +02:00
Anees Iqbal 235b12a3b5 Answer Metal's canonical NaN at a fixed-function narrow-float fetch
The steps this packet landed as, in order:
- Re-derive the refusal surface for the changed public types
- Hold the fixed-function NaN test to each format having run
- Cut the sparse known gap back to a gap
- Give the landing wave its own runtime version
- Recompute the runtime-sources pin for the table and fetch landings

Content: the tree of `development` at 2250342551, unchanged.
2026-10-26 13:19:14 +02:00
Anees Iqbal 9ed028eb5c Take the empty switch for a table call nothing linked can answer
The steps this packet landed as, in order:
- Take the table's own count off the runtime's public surface

Content: the tree of `development` at 5a23469901, unchanged.
2026-10-26 13:19:14 +02:00
Anees Iqbal 73c4e3ab3c Ask every line-rasterizing pipeline for Bresenham's line mode
The steps this packet landed as, in order:
- Retire the line-rectangle gap and record the tie that is the driver's

Content: the tree of `development` at 733c5801ce, unchanged.
2026-10-26 13:19:14 +02:00