Commit Graph
7618 Commits
Author SHA1 Message Date
Anees Iqbal f88dac1890 rt tests: three of argument buffers tier 2's forms on every device
Device tests, under either device cfg, of three things Metal's argument buffers tier 2 adds over
tier 1 (Apple's "Improving CPU performance by using argument buffers"), each a kernel run through
the form and its result checked:
- writable textures in an argument buffer: a8r_buffers' a8r_held reads a read_write member's
  texels, then writes it and a write member;
- an argument buffer the GPU writes: ab_tier2's ab_copy copies a texture member from one argument
  buffer to another, and ab_read reads through the copy;
- an argument buffer the CPU cannot reach: a Private buffer a blit filled, which ab_read reads
  through.
The program writes each texture member as the texture's gpuResourceID.

The tier answer itself (argumentBuffersSupport) is not here: the fourth form, pointer indexing
through a pointer member to other argument buffers, is refused by the translator under the
identity domains (ab_indexed: Unsupported{IdentityDomains, NotImplemented}, job m3-max-51819), and
the planner rules the answer.

Verified: the three passed on lavapipe in job m3-max-51819's device-tests step (at the commit
that held them beside the getter); this commit's own run is the next check job.
2026-11-19 06:34:27 -08:00
Anees Iqbal ee856ea6aa fixtures: ab_tier2's companions, from scripts/regen-air-fixtures on the M3 (job m3-max-51730) 2026-11-19 06:34:27 -08:00
Anees Iqbal 0dc0ccfa95 fixtures: ab_tier2, our MSL for argument buffers tier 2's GPU-written, Private and pointer-indexed argument buffers
Three kernels for the runtime's device test of what tier 2 adds beside writable textures
(a8r_buffers' a8r_held holds those): ab_copy copies a texture member device to device, ab_read
reads texel (0, 0) through an argument buffer's member, and ab_indexed reads through element g
of an array of argument buffers that a pointer member reaches. The companions follow from
scripts/regen-air-fixtures on the M3.
2026-11-19 06:34:26 -08:00
Anees Iqbal c1bd06c085 rt tests: the read-write tier test's kernels number a sampler for the texture's write as well as its read
The translator numbers the sampler of a texture write (NumberedSampler::Write) beside its read's,
so each kernel's state asks for two sampler numbers, not one: the test asserted [Read] and answered
one number, and failed on lavapipe in job m3-max-51819 (left [Read, Write], right [Read]). It now
asserts both and answers sampler 0 for each.

Verified: the failure is 51819's device-tests step on lavapipe; the fix's run is the next check
job.
2026-11-19 06:34:26 -08:00
Anees Iqbal 061ea2762d rt tests: the read-write tier test compares the storage image choice's format as the translator's own
storage_image_choice answers a metal2vulkan::vk::Format, the translator's generated enum, not
ash's; the test imported ash::vk, so comparing the choice with Format::UNDEFINED did not
type-check under either device cfg. It now names the translator's vk module.

Verified: read against StorageImageChoice (pipeline/lower_inputs.rs) and the translator's own
tests, which compare with crate::vk::Format::UNDEFINED; the compile is the next check job.
2026-11-19 06:34:26 -08:00
Anees Iqbal b1d687600a rt: readWriteTextureSupport is tier 2 on the floor, and a device test reads and writes its 18 formats
The planner's capability rule: an answer that promises runtime behaviour is rt's, and a device
test holds the promise. Tier 2's formats are storage images on every device above the floor.
Vulkan requires the four-channel and 32-bit ones, and the floor's
shaderStorageImageExtendedFormats (every floor driver reports it, 6529ce3187) requires the six 8-
and 16-bit single-channel ones. So Device::read_write_texture_support answers Tier2, and rt
re-exports the translator's ReadWriteTextureTier.

tests/read_write_tier.rs: three hand-written kernels, float, uint and int, each over a
texture2d<T, access::read_write>. For each of the 18 formats, a 4 x 4 texture of shader-read and
shader-write usage is loaded with codes every channel moves. The kernel reads each texel into a
buffer, which checks the read's conversion and the missing channels (0, 0, 1). It then writes
back 1 - v (float, normalized) or v ^ 0x5a (integer), and the texture is read back. A normalized
byte's write may land within one of 255 - k, as Vulkan's float-to-normalized conversion allows;
every other comparison is exact. The test counts the formats the translator declared without a
format and those it declared with one, as the device's format-less read decides.

The conformance rt side answers read_write_texture_tier from the getter (a D-list method). The
rt README states the answer; api_signatures.tsv is blessed (+7).

Verified: signatures.py, coverage.py and refusal_surface.py regenerate; build and the device
test on each GPU follow.
2026-11-19 06:34:26 -08:00
Anees Iqbal 0a45e5edb6 conformance: a leg our side did not run answers with its refusal in five more families and the host-page bytes
memory2's tessellation fix made a leg whose pipeline or pass our side refused answer with that
refusal as the leg's own site, instead of recording the read-back's starting bytes beside a
"pass" leaf. Five other families had the same shape and compared bytes no draw wrote:
discard_hoist, int_attributes, vertex_formats, wide_int_attributes and wide_points. So did
host_page_writes, whose three bytes sites read back after a write the new runtime refuses
(the visibility rows' Counting mode, Gap::Draw of VisibilityResults).

- case.rs now holds the helpers, moved from tessellation_sweeps.rs: pipeline_or_refused,
  refused_leg and drawn_or_refused, plus PassOutcome::refusal. The tessellation families import
  them from there.
- discard_hoist, wide_points: a row whose pass or read was refused answers with the refusal.
  wide_points' written-words roll-up answers with the first refusal when a row was not drawn.
- int_attributes: a row whose pass was refused answers with the refusal.
- vertex_formats, wide_int_attributes: the pipelines are kept as Result. A format whose pipeline
  or pass was refused answers with that refusal; its slice holds only the filler.
- host_page_writes: each bytes site answers with the write's refusal, else the refusal of the
  copy that fills it.

The other twenty of the twenty-five files memory2 counted already record each piece's answer and
abort at the first refused piece before any read-back, so no bytes are compared there:
compute_render_chains, depth_stencil_space, depth_resolve_pairs, draw_state_changes,
frame_chains, indirect_command_depth, indirect_commands, layered_targets, pass_attachment_pairs,
pass_bound_pairs, pass_start_reads, pass_sequence_actions, primitive_type_crossings,
render_draw_forms, render_chains, render_depth_stencil_state, render_residency, render_state,
stencil_resolve_pairs and stencil_resolved_sample.

Metal's recordings of the six families hold no refused site, so Metal's transcripts are
unchanged; a leg drawn on our side is unchanged.

Verified: build, tests and the lavapipe replays of both sides follow in the check job.
2026-11-19 06:34:26 -08:00
Anees Iqbal 3207a1615a conformance: a drawing state's three tile getter rows cite the libs census
The rows of pipeline-facts-render-plain's maxTotalThreadsPerThreadgroup,
threadgroupSizeMatchesTileSize and requiredThreadsPerTileThreadgroup fields take the libs census
head (11-19, m3-max-51379..51431: 0 tile pipelines over the 17 streams), as the options rows
cite it: a Metal feature no stream uses is a typed refusal until a stream needs it (main's
ruling).

Verified: coverage.py writes the document unchanged.
2026-11-19 06:34:26 -08:00
Anees Iqbal 30156e1aaf conformance: the new runtime's side answers pipeline state facts, label, device and the tile getters refused fields
compute_pipeline_facts and render_pipeline_facts were left at the Side default on the rt side,
so the two pipeline-facts cases whose state rt makes (pipeline-facts-compute-plain and
pipeline-facts-render-plain) refused the whole facts call. Both now answer through the state:

- compute: staticThreadgroupMemoryLength, supportIndirectCommandBuffers (false on every state rt
  makes), imageblockMemoryLengthForDimensions: and requiredThreadsPerThreadgroup, the last two
  getters present landed in 90792a2bfa;
- render: imageblockSampleLength, imageblockMemoryLengthForDimensions: and
  supportIndirectCommandBuffers.

label and device are the consumer's own (rt keeps neither on a state), and a drawing state's
three tile getters (maxTotalThreadsPerThreadgroup, a tile threadgroup's, per Metal's
documentation of the render state's getter, threadgroupSizeMatchesTileSize and
requiredThreadsPerTileThreadgroup) are not rt's, as rt makes no tile render state (the
planner's ruling). Each is a refused Field, so the state's other getters compare.
imageblockMemoryLengthForDimensions: of a compute state is a Field too, as rt answers it with a
typed error for a kernel whose imageblock it does not measure.

Rows: 7, every venue: label and device of both cases (the consumer's own), and the three tile
fields of the render case, in words (rt's README names the tile getters it lacks). The rt
README's tile getter list gains maxTotalThreadsPerThreadgroup. The coverage document gains the
two facts types' field rows.

The other four cases are refused at the making as before (indirect command buffers, and the
kernel that reaches an imageblock).

Verified: coverage.py writes the document; build, tests and the lavapipe replay of both sides
follow in the check job.
2026-11-19 06:34:26 -08:00
Anees Iqbal 41bc2c1b80 rt README: a device that ran work does not exit cleanly alive on NVIDIA; drop it or _exit
The quiesce section's 50-of-50 clean exits were runs that made a device and ran nothing. A consumer
running a guest's work measured otherwise: on an RTX 3090 with driver 620.70.06, 3 of 9 power-offs
crashed with SIGSEGV in exit() after quiesce answered true (0.4-5 ms, every rt thread ended). The
faulting thread is the driver's own (libnvidia-eglcore, near NULL+0x18), and the main thread sits in
the ICD's exit handler waiting on a rwlock; no rt frame is on either. The RTX 2080 was 0 of 4. The
consumer's fix is to drop the device at its last release. The README now scopes the clean-exit
numbers to their runs and states the gap and the two exits that avoid it.

Verified: doc-only; the numbers are the consumer's (reims b264 rt platform, relayed 11-19).
2026-11-19 06:32:12 -08:00
Anees Iqbal ee1a8aee7c REPLAY-STREAM: the new runtime's player binds a range as the single-slot bind of each 2026-11-19 06:17:51 -08:00
Anees Iqbal 21bfaaf044 replay: the fragment texture range test makes its textures of one descriptor without a clone 2026-11-19 06:17:51 -08:00
Anees Iqbal ef60110704 replay: a device test for each range form of a buffer or texture bind
One stream a test, played on the new runtime: vertex buffers bound through a
range draw at their offsets; fragment buffers bound at location 1 fill slots 1
and 2, so an offset of slot 2 plays and one of slot 0 is the runtime's refusal;
a skipped texture bound to the vertex stage at location 1 skips the draws until
a nil at location 1 takes it off; a fragment function reads the texture at the
slot its range names; a kernel reads and writes the textures a compute
encoder's ranges bind. Each fails on the player before the range arms, which
refused the call.
2026-11-19 06:17:51 -08:00
Anees Iqbal b3ea60cbd7 replay: the rt player plays the range forms of buffer and texture binds
The new runtime's player refused every range form of a buffer or texture bind
("not played on a render encoder"), though rt builds each as a loop of its
single-slot call: setVertexTextures:withRange:, setFragmentTextures:withRange:,
setVertexBuffers:offsets:withRange:, setFragmentBuffers:offsets:withRange: and
the compute encoder's setTextures:withRange:. Each now binds its objects from
the range's location on, through the helper its single-slot form uses, so a
skipped object in a range marks its own slot and skips the draws or dispatches
as a single bind of it does.

The cover tracker (covers.rs, shared by both players) reads the range forms of
texture binds too, so a draw's or dispatch's write through a range-bound slot
still covers what the texture meets in its placement heap.
2026-11-19 06:17:51 -08:00
Anees Iqbal b8ea291aa5 validation: the dump writer takes completed command buffers off its list one by one
Clippy's drain_collect refused the drain into a new Vec of the same type
(check m3-max-51969). The ids now come off the list with pop; the order
does not matter, since each buffer is written to its own files.

Verified by the check named when this lands.
2026-11-19 06:06:57 -08:00
Anees Iqbal d75eab9c2b validation: the per-command-buffer compare of two plays applies the cover rule, word by word
The 3090 chain gate compared rt's and the old runtime's plays command buffer by command buffer
through a probe that never lands: whole-object checksums of each buffer a command buffer named,
then a script that asked the probe's dumps of Covers. A whole-object checksum is no compare under
the cover rule: a buffer partly under a texture's write differs under the cover, and a word that
differs outside it shows only as the same mismatch. This lands the compare in the player's own
tooling, on the player's own Covers (94d7c1620c's rule, unchanged).

- Player::dumping(command buffers, dir): once each listed command buffer completed (its wait
  seen, before the next call plays), every buffer its encoders named is written into dir as
  cbC-objO.bin, with cbC-objO.cover holding the ranges of it the cover rule held covered then, or
  cbC-objO.unread where the backend could not read it. A write failure ends the play
  (PlayError::Dump). Off unless asked.
- compare_dumps(a, b) (replay/dumps.rs) compares two plays' dumps word by word, leaves out a word
  wholly inside a range either play held covered (the old runtime answers no slot access, so its
  plays cover less), and reports every other differing word per command buffer and buffer, a dump
  one play lacks, and a dump either could not read.
- command-replay: --dump-command-buffers FIRST..LAST --dump-dir DIR on play; compare-dumps --a DIR
  --b DIR prints a line per buffer that differs outside every cover and a summary ending agree or
  DIFFER, exit 0 / 1 / 2.
- Covers::ranges(object), read-only, for the dump.
- docs/REPLAY-STREAM.md, section 10: the options, the files and the compare's lines.

Tests (no GPU, the player on the test backend, two plays each that differ only in the words at
bytes 0x10 and 0x1800 of a 0x2000-byte heap buffer whose first 0x1000 bytes a texture's write
covers after the command buffer bound it):
- replay::tests::the_dump_compare_reports_a_differing_word_outside_every_cover: the dump's cover
  is 0..4096; the word at 0x10 is covered, the one at 0x1800 (word 1536) is reported; DIFFER.
- replay::tests::the_dump_compare_reports_a_word_whose_cover_the_buffer_s_last_write_voided: the
  encoder binds the buffer again after the dispatch (a binding counts as a write), the dump holds
  no cover, and both words are reported.
- replay::tests::the_dump_compare_agrees_on_alike_plays_and_reports_a_dump_one_play_lacks.
The test backend now keeps a heap buffer's bytes as it keeps a device buffer's, so a write into
one reads back.

Verified: the check job named at hand-over compiles it and runs the replay tests.
2026-11-19 06:06:56 -08:00
Anees Iqbal 4a88543b7b rt README: a decoded picture in an exported block costs one copy a plane at its first use, measured per card
The known gap for textures over buffers in imported or exported blocks gets its measured cost for
decoded video: one copy a plane before the first submission that uses a picture, none for a picture
written over before any use; 2 copies and about 8.6 MB a picture used over the replayed decodes
(8-bit 1920x1080 and 16-bit 3840x2160 pictures of two planes), and the copies' GPU time a picture on
four cards. No worst-present figure: a present is a span of records, not a frame.

Verified: replays with the player that fills a picture's shapes at their first use (development
0c36de79d9): vaapi-780m-wd presents 376..1816 on the Radeon 780M (job 52006: 1,440 pictures, 1,415
filled, 19 written over first, 2.00 copies and 0.288 ms of GPU time a picture filled), nvdec-3090-wd
presents 390..1833 on the RTX 3090 (52007: 1,435 pictures, 1,416 filled, 16 written over first,
2.00 copies and 0.653 ms a picture filled); the RX 550 (51913, 0.294 ms a picture) and the Iris Xe
(51922, 0.520 ms) from plays of vaapi-780m-wd with the player at 9f9744827d, whose copies a picture
are the same two.
2026-11-19 05:51:39 -08:00
Anees Iqbal e8d0cf46a9 rt README: the Gen12 cost of an access through an address, read from ANV's ISA, and its measured size
The planner ruled the Iris Xe's 1.26x on the particle kernel a known gap on Gen12, with the three
remedies already measured and closed. The 2 GiB cap gap's Gen12 sentence now says what the cost
is and how large it measured:

- The cause, read from the GEN assembly ANV compiled for rt's module and the old runtime's (the
  pipeline executables' disassembly, job 51999 on the Iris Xe RPL-P, Mesa 26.2.6): Gen12 has no
  64-bit integer add, so rt's access through an address takes, beyond the binding-table access
  the old runtime makes (add of the offset, one send), a compare for the carry, an add of the
  high word and four moves that pack the a64 address into the message, and the bias one 32-bit
  add more. The particle kernel's loop, one read an iteration, is 31 instructions against the
  old runtime's 24 (one a64_untyped_read against one bti untyped_read).
- The size, measured (job 51999, kalone, the kernel alone back to back, forward and reverse):
  best median per dispatch 502.0 us for rt at development a352921d81, 397.0 us for the native
  Vulkan program and 429.5 us for the old runtime: 1.26x native and 1.17x the old runtime, the
  output bytes' hashes equal across the three.
- Intel's Windows driver on Gen12 is unaudited (no Gen12 Windows host).

Docs only; no ceiling changes.
2026-11-19 05:49:24 -08:00
Anees Iqbal c8fa4e9440 rt: a render encoder keeps a line width; a draw of lines at another width than 1 is Gap::Draw{LineWidth}
A gap against the old runtime. Apple's private setLineWidth: has no rt setter, so the rt player
refused the call ("not played on a render encoder") and every rt play of a stream that sets it
stopped at its first call, while the old runtime plays it.

RenderCommandEncoder::set_line_width(f32) keeps the width the encoder's later draws see, Metal's 1
until set, each encoder starting at 1. Every width is accepted, as on Metal. The runtime draws
lines at width 1 alone: its pipelines fix the width at 1, and Vulkan's wider lines are a device
feature (wideLines) that the floor does not require, so no second form is built on it. A draw of
lines or a line strip while the width is not 1 is the new DrawKind::LineWidth, refused at the
draw before anything is recorded; a draw of no vertices records nothing as at any width, and a
draw of triangles runs at any width, as Metal's filled triangles do. A triangle fill mode of lines,
which Metal draws at the width, is already refused where it is set (DrawKind::FillMode).

The player plays setLineWidth: into the setter; a line draw under another width is then the
runtime's gap, skipped and counted like any other.

Also: fill_push's doc comment had landed above `primitives`; it is back on its function.

Docs: the setter's doc names Metal's counterpart (the private setLineWidth: of
MTLRenderCommandEncoder) and what is refused; DrawKind::LineWidth says why; the rt README holds
the width in the encoder's state and the draw in its known gaps. api_signatures gains the method
and the variant. refusal_surface.py regenerates docs/REFUSALS.md with no change: it lists
Gap::Draw by its raise sites, and the new kind is raised in draw, already listed. api_surface pins
the translator's module roots alone, so no row moves.

Tests: tests::draw::on_device::every_device_draws_lines_at_width_1_alone (width 2: a line and a
line strip refused with DrawKind::LineWidth, an empty line draw and a triangle draw; width 1 again
and a later encoder's default: lines draw their rows) and
runtime_lane::rt_replay::a_line_width_plays_and_a_line_drawn_at_another_width_is_skipped (at 1
nothing skipped; at 2 the line is skipped and counted as Draw { kind: LineWidth } at its call).

Verified: the check job named at hand-over compiles it and runs the touched tests.
2026-11-19 05:41:47 -08:00
Anees Iqbal b119e71f6a rt: pixel_format_info's flags promise nothing about this device; a write there is the storage-element gap
What: Device::pixel_format_info's doc and the runtime README's line on it now say that the M3's
flags promise nothing about this device, and that this device's answer to a write to a texture of
a format with no storage element here is Gap::StorageElement. The module docs already state that
the description is Apple's GPU's, not the device's.

Why: the flags read as capabilities. Measured against Apple's tables (the old runtime's
families/formats.rs, the Apple9 cells), over the 136 formats both name, these bits of the M3
Max's MTLPixelFormatInfo flags match one documented capability each, 136 of 136: 0x02 Write,
0x04 Filter (0x00030000 also matches Filter), 0x08 Blend, 0x10 Color, 0x80 Resolve, 0x100 MSAA;
no bit matches Atomic or Sparse. No caller of the runtime reads the Write bit and the guest never
receives the per-format word, so the flags stay the M3's on every device and only the docs change.

Verified: cargo fmt. Rustdoc in the check job named at hand-over.
2026-11-19 05:31:58 -08:00
Anees Iqbal 0c36de79d9 replay: a surface's pictures fill its shapes at their first use, as the product's lazy fill does
m2v.externalWriteDone (a decoded picture landed in a receiver buffer) no longer refills the
buffer's shapes at once. As the product's per-shape form does after a video command buffer, every
shape of the buffer owes a fill from it, its own write lost; the first command buffer whose
encoders use a texture of the buffer (a binding, a pass's attachment, a blit, a useResource)
fills every owing shape of the buffers it uses before its commit, by blits in a command buffer of
the player's own committed then. A picture another lands over before any use is never copied.
The eager form copied every picture at its landing, so a burst of pictures landing at one present
was copied there whether used or not.

New counters: surface_pictures_filled (pictures a fill took) and surface_pictures_unfilled (those
another landed over before any use, or whose buffer went first); the surfaces line also gives the
pictures not used yet. The copy-from-guest-RAM comment now names the product's fill from the
pages, not a refill. docs/REPLAY-STREAM.md sections 4 and 10 say so.

Verified: the new device test a_surface_picture_fills_its_shapes_at_their_first_use (two pictures
land before a kernel reads the texture: one fill of one shape, the second picture read, the first
never copied) runs in the check that follows this commit; not yet run. The eager form fails it
(two refills).
2026-11-19 05:26:09 -08:00
Anees Iqbal 8a2a6d71c4 matrix: the Iris Xe's alu and long_4cb and the 3090's 64 MiB creation take ruled ceilings; the Windows rt suite room
Ruled by the planner on round 951b93a645:
- 8086:a7a0 alu and long_4cb: the rt README's recorded Gen12 gap under the biased slot word (a
  change before an identical loop moves a kernel -18% to +14%, mechanism not shown; neutral arm
  m3-max-51663). Medians 1.139 and 1.141 (m3-max-51733).
- 10de:2204 create_64MiB first_take and device_first: the 2080's known gap, the driver's
  allocation of host-visible system memory against old's import of its own pages. One line for
  both 3090s at the higher card's medians, 2.841 and 1.943 (um870, m3-max-51756); ms01 reads
  2.359 and 1.673 (m3-max-51747).
The ruling named 1.14, 2.84 and 1.94. A ceiling under its row's own median fails the row at once,
so each is rounded UP to cover the median, as every earlier ceiling was (1.877 to 1.88): alu
1.14, long_4cb 1.15, first_take 2.85, device_first 1.95. The planner is told.

The Windows rt suite's default room goes from 4 to 8 GiB. In the same round its run on the UHD
630 went over 4 GiB in 34 s (m3-max-51691, exit 137). The retry at twice the room is capped at the
kind's default, so a kill at the default was never retried and the leg reported no suite.

Verified: the matrix unit tests run after landing (matrix-unit.sh).
2026-11-19 05:18:26 -08:00
Anees Iqbal 391db1e57a translator: the old render descriptor key at SEMANTICS_VERSION 2191
The old runtime's render descriptor key covers SEMANTICS_VERSION (each stage's
function_compile_key), so 2190 -> 2191 moves it: the_old_render_descriptor_key_keeps_its_value
pins 91981465..., the left side check job 51812 printed at 4c8dac5d9e (development's versions are
still 2190/547, so this branch's 2191/548 are the next numbers). The fixture's bytes are unchanged.
2026-11-19 05:09:37 -08:00
Anees Iqbal 7f0f14435a rt: the declared-write test's parent texture takes an index
The device test made its RGBA8Unorm parent of shader-read and shader-write usage with no index,
which the runtime refuses (a texture shaders read or write takes an index): legs 51836 (3090) and
51837 (lavapipe) panicked there, before any case ran. It takes the grant's next index.
2026-11-19 05:09:37 -08:00
Anees Iqbal 71d767c904 translator: the storage-texture fact names the texture access type the air crate now exports
What: metal2vulkan-air exported intrinsics::Access only under cfg(test), so the unbound analysis
of 0a810a7ab5 did not compile (E0432). The air crate now exports Access (Form stays test-only),
the type of Texture's public access field. The analysis counts a read or block read through a
loaded texture as a storage access unless the operation declares access::sample or access::read,
so a read that declares no access (an emitter before AIR 2.0) counts, as the fact's 'false is
proven' needs. The interface and API.md docs say so.

Verified: cargo fmt; signatures.py --check gives no diff. The check job compiles it.
2026-11-19 05:09:37 -08:00
Anees Iqbal 4231c5ba25 rt, translator: a declared write of a texture with no storage element refuses the argument-buffer dispatch
What: bug 4's held path. A compute encoder's use_resource with a usage that writes a texture (or a
view of one) made for shader writes with no storage element (Texture::unstored) now makes every
later dispatch of that encoder whose kernel may reach a texture through its storage image beyond
its bound slots Gap::StorageElement, with no slot and the texture's format. A kernel without such
an access dispatches whatever is resident, and use_heap declares nothing (Apple's header: useHeap
declares the heap's resources read only through an argument buffer), so a write through a
resource ID with no write-usage use_resource stays dropped, outside documented Metal.

How: the translator had no fact for that access (writes_unbound_resources with
texture_writing_stages would also refuse a kernel that writes a bound texture and a buffer through
an argument buffer), so StageInterface and PipelineInterface gain unbound_storage_textures,
decided in compile/unbound.rs beside the read and write facts: a texture write or atomic, or a
read of a texture the operation declares access::write or access::read_write, on a handle that
may come from memory, an integer or a call; an intersection or a call the entry cannot see into
counts; indirect-command and acceleration-structure operations touch no texture.
Gap::StorageElement's slot becomes Option<u32>. The render encoder builds no useResource:, so the
draw half has no trigger; the README says it waits for it.

SEMANTICS_VERSION 2190 -> 2191 and ARTIFACT_FORMAT_VERSION 547 -> 548 (one field in
StageInterface and PipelineInterface). docs/REFUSALS.md regenerated; api_signatures gains the
field and the variant's new shape; docs/API.md states the fact; the rt README's known gap says
what is refused and what stays dropped.

Tests: the translator's unbound-facts test states the new fact (an argument buffer's texture
write and a read_write read count, a sample and a read do not); storage_element gains
every_device_refuses_a_declared_write_of_a_texture_with_no_storage_element over RGBA8Unorm_sRGB,
BGRA8Unorm_sRGB, A8Unorm and an sRGB view of an RGBA8Unorm texture, and the same formats in a heap
under use_heap alone.

Verified so far: cargo fmt; refusal_surface.py, signatures.py --check and metal-coverage --check
give no further diff. The build, the suites and the device legs follow in potluck jobs.
2026-11-19 05:09:37 -08:00
Anees Iqbal df54c9a8e8 matrix: the RX 550's constant rows leave the ceilings, both under old in round 951b93a645
The planner's rule for these two ceilings (1.20 each): the next round's ratio lowers them, and a
row at or under 1.0 leaves the list. In the round at 951b93a645 (jobs m3-max-51721, m3-max-51731,
gem10's RX 550, RADV POLARIS12, Mesa 26.2.6) the wall ratios are constant_managed 0.956 and
constant_private 0.953, with GPU p50 1972.6 us vs old 2094.4 us and 2013.8 us vs old 2101.8 us.
Both rows are within HARNESS_BUDGET, so the leg judges them without a ceiling.

Verified: the only test that names the RX 550 leg patches HARNESS_CEILINGS to {}; the matrix unit
tests run after landing (matrix-unit.sh).
2026-11-19 05:08:48 -08:00
Anees Iqbal a2576535bd replay: a plain surface shape takes shader read and render-target usage alone
The surface form's usage word, as ruled final. A shape no texture over it declares shader
write, shader atomic or Metal's unknown usage for (a plain shape) is made with shader read
and render-target usage alone: rt gives such a texture its format and that format's sRGB
sibling as views, and no storage view, so a plain shape's attachment reads are not refused
and its image carries the short view list. A shape shaders may write keeps the usage Metal
gives a texture whose use it does not know (shader atomic where declared), with the long
view list, so a storage plane's textures of other formats of the same bytes a texel stay
views of it with no copy.

A texture or view of a format other than a plain shape's own or that format's sRGB sibling
is refused (surface_format_refusals), and textures over a plain shape that declare
pixel-format-view usage are counted (surface_plain_format_views). docs/REPLAY-STREAM.md
section 10 says so.

Verified: the new test a_plain_surface_shape_views_as_its_format_and_its_srgb_sibling_alone
(a sibling view found, another format refused as a texture and as a view, counted) runs in
the device suite of the check that follows this commit; not yet run.
2026-11-19 04:51:43 -08:00
Anees Iqbal 0b8fe27977 replay: the surface form counts order-case shapes
surface_order_shapes counts the shapes shaders may write made over a plane that holds a shape
of their extent shaders may not write: the order case, which the storage bit makes another
shape. The doc's counter list reflows. Not yet compiled.
2026-11-19 04:51:43 -08:00
Anees Iqbal a5f4f03a32 replay: the surface form counts the slot writes a pipeline state's interface declares
surface_declared_writes counts the draws' and dispatches' surface texture slots whose bound
state's interface writes them, beside surface_usage_writes, those taken as writes by usage
with no interface at hand: together they say which binds write a shape. Not yet compiled.
2026-11-19 04:51:43 -08:00
Anees Iqbal 079fe12625 replay: a surface shape takes storage for shader atomic usage too; the shapes' sort and drop count as clippy and the type checker want
The planner's storage test is shader write, shader atomic or unknown usage (an image atomic is
a storage image's operation); a shape made for a texture that declares shader atomic carries it.
The idle shapes sort by recency with sort_unstable_by_key, and the overlap drop's count filters
by reference. Not yet compiled.
2026-11-19 04:51:43 -08:00
Anees Iqbal aa8dd9f131 replay: surface textures play as the product's per-shape form, with the usage word
The rt player's surface form now mirrors the product's per-shape form (reims's
surface cache, shapes.rs): a shape is a plane's (receiver, plane, offset, pitch)
texture of one extent and texel size, and every shape is current over its whole
extent by the product's three rules. A new shape is filled from the buffer once
the dirty shapes are written back; a copy back to the guest's RAM first writes
every dirty shape back; at the end of an encoder that may have written a shape,
the write goes through the buffer into each other shape of its plane that a live
texture views or that is dirty, and the plane's other shapes go. Writes are noted
from pass attachments, blit destinations, the slots the bound pipeline state's
interface writes (texture_accesses), and by usage where no interface is at hand.
The newest-entry rule, its download at a new shape and the older-shape use
counter are gone.

The usage word: a shape is made with shader read, render-target and
pixel-format-view usage, and shader write (a storage view) only for a texture
that declares it or Metal's unknown usage; the shape key carries that bit. A
storage shape serves a later texture of its extent that does not declare it; a
declaring texture over a plane whose shape has no storage is another shape.

The report and counters give overlap copies and bytes, straddled texels,
unordered writes, usage writes and write-backs. The device test now checks a
copy from the guest's RAM reaching both shapes of a plane and a blit through one
shape reaching the other at its encoder's end. Not yet compiled.
2026-11-19 04:51:43 -08:00
Anees Iqbal ed2d2295ce rt tests: the compute device test's interface states Metal's limit for the kernel, and a capped state's threadgroup past it is the device's Limit
The threadgroup limit change gave the pipeline interface Metal's own maxTotalThreadsPerThreadgroup
beside the device's, and the device test's hand-made interface did not state it (E0063 under
--cfg m2v_gpu and --cfg m2v_cpu_icd, m3-max-51501). It states 1024, as the device's, and the
encoder refusal test adds a state capped at 256 on the device: a 512-thread threadgroup on it is
Limit::ThreadgroupThreads, while 2048 threads stay Metal's ThreadgroupSize refusal.
2026-11-19 04:44:17 -08:00
Anees Iqbal cce95596b4 rt: a threadgroup within Metal's limit for the kernel and past this device's is the device's Limit, not Metal's refusal
A compute state answers the least of Metal's maxTotalThreadsPerThreadgroup for the kernel and
this device's limits for it (maxComputeWorkGroupSize, its subgroups' count, and for emulated SIMD
groups their scratch beside maxComputeSharedMemorySize). A dispatch past that answer was
Refusal::ThreadgroupSize, which states that Metal itself refuses the threadgroup: on lavapipe
compute-threadgroup-simd-scratch's 1024 threads, which Metal runs, were refused as "past the
state's 256" and the suite counted our refusal where the old runtime reports the device's lack
(MaxComputeSharedMemorySize 32768 against 57344).

The interface keeps Metal's own answer beside the state's
(ComputePipelineMetalInfo::metal_max_total_threads_per_threadgroup, or a required size's
threads). A threadgroup past Metal's answer stays Refusal::ThreadgroupSize; one within it and past
the state's is the new Limit::ThreadgroupThreads { size, max }, basis device. The conformance
crate's rt side reads that limit as the venue's lack, as it reads the translator's device gaps.
REFUSALS.md and api_signatures.tsv regenerated.

Verified at this commit: cargo fmt, refusal_surface.py, signatures.py --bless and coverage.py
--check; the build, the suites and the lavapipe replay (where the case should read lacks-feature)
run in the lane's check job.
2026-11-19 04:44:17 -08:00
Anees Iqbal 451f6e9900 conformance: the function and library facts' device and options rows on every venue
The new runtime's side refuses two fields of these facts: the device relation of a library and
a function (the consumer's own, device), at 24 cases' case/facts/device, and a function's options
(memory2's libs census 11-19, m3-max-51379..51431: every function descriptor of the 17 streams
has options 0), at 22 cases' case/facts/options. Each row is one m3-max-51389 replay on lavapipe
listed as unlisted, every other field of these cases comparing exactly there; the facts reach no
device, so the rows hold on every venue. The coverage document counts them by field.

Verified at this commit: the rows are those m3-max-51389's rt lavapipe replay lists (46, site and
answer as listed); coverage.py --check.
2026-11-19 04:44:17 -08:00
Anees Iqbal 2bb8b4fe71 conformance: the old runtime's side no longer imports TessellationDescriptor by name
Moving the descriptor stating into descriptor_reads left the old side naming the tessellation
descriptor only by its full path, so its import was unused (clippy, m3-max-51389).

Verified at this commit: cargo fmt only; the build runs in the lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal ad7c6b4fa8 conformance: binary archives are the consumer's own, the descriptors' binaryArchives field and the archive programs
reims keeps binary archives in its guest bundle: the device's MTLBinaryArchive holds only each
added function's lookup key, serializing and loading use the bundle's own file format, and no
message reaches the host, so neither runtime is ever asked. The planner ruled them the consumer's
own (ConsumerObject::BinaryArchive, "MTLBinaryArchive, binaryArchives", named in rt's README).

Rows on every venue: the six pipeline descriptor cases' binaryArchives field, which the new
runtime's side refuses, and the six binary-archive cases' archive programs (case/program), which
it leaves at the trait's default. The dynamic-library cases and library-from-data share the
archive program and are not archives, so they keep no row.

Verified at this commit: cargo fmt and coverage.py --check; the ledger and the replay run in the
lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal df4903b21a conformance: the new runtime's side answers function and library facts, the device and options refused fields
RtSide left function_facts, function_facts_from_descriptor and library_facts at the trait's
default, so 24 cases ended refused on rt (15, 7 and 2 on the earlier whole-set run). The
runtime's library is the translator's and a function is the translator's function of it, so the
side reads each getter as a consumer holding them does: the library's functions a program makes by
name (a Core Image kernel library's extern functions left out, by the translator's own stage), its
type and install name; a function's reflected properties and constants dictionary, through
Function::properties, or Function::specialized_properties for a function made with constant
values, whose dictionary the translator states is empty, as Metal answers it. The old runtime's
side shares the attribute and constant-value helpers, which move into function_facts.

FunctionFacts takes options and the device relation as Fields, and LibraryFacts the device
relation. The runtime keeps no device on a library or a function, so device is the consumer's
own, as the planner ruled (ConsumerObject::Device, named in rt's README); a function keeps no
MTLFunctionOptions, so options is refused, its rows waiting on memory2's every-stream count of
function options. Failure derives Eq, so every facts type keeps its Eq.

Verified at this commit: cargo fmt only and coverage.py --check; the build, the suites and the
lavapipe replays run in the lane's check job, whose replay names the device rows' sites.
2026-11-19 04:44:16 -08:00
Anees Iqbal f297ec44b6 conformance: the new runtime's side answers the rising-value probe, its label a refused field
RtSide left Side::shared_event_rises at the trait's default, so shared-event-rising-value ended
refused on rt. The probe's host sets, GPU signals and bounded host waits are the runtime's shared
event's, made as the old runtime's side makes them; the runtime keeps no label, so EventRise's
label becomes a Field the side refuses (the consumer's own, label), with its every-venue row, and
the coverage document counts EventRise by field.

Verified at this commit: cargo fmt only and coverage.py --check; the build, the suites and the
lavapipe replays run in the lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal 4913a812df conformance: the coverage document counts a field-by-field facts type by field, and rt's label rows
A facts call running said nothing of which of its fields were compared, so a field the new
runtime's side refuses read as covered beside its call. The coverage document gains a section
that counts each facts type answering field by field (a struct with a crate::case::Field field)
by field: its fields, the ones a side may refuse, the leaf each records at (read from the type's
node), and the new runtime's ledger rows that refuse each at that leaf, of the cases whose module
calls a Side method answering the type. A Field whose node records it at no leaf this can read
stops the generator.

The six pipeline descriptor cases' label rows (pipeline-descriptor-* and compute-descriptor-*,
every venue: the consumer's own, label) go into known-gaps-rt.tsv. Their binaryArchives rows wait
for memory2's every-stream count of binary archives, which their head will cite.

Verified at this commit: coverage.py --check passes on the regenerated document; the build, the
suites and the lavapipe replays run in the lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal 9c00288ab6 conformance: a facts answer refuses a getter field by field, and the new runtime's side reads the pipeline descriptors
A facts call (a pipeline descriptor's read-back, later a function's or a state's) answered all
of its getters or none, so a side whose runtime has no counterpart of one getter refused the whole
call and compared nothing. A field of such an answer is now a Field<T>: the same Answer a call
gives, its refusal recorded by Failure::recorded at the field's own site. The comparison reads it
as a refusal at that site, and the known-gaps ledger holds it as it holds a call's refusal: an
unlisted field refusal fails the run as an unlisted call refusal does. The fields beside it still
compare.

RenderDescriptorFacts and ComputeDescriptorFacts take label and binaryArchives as fields. Both
runtimes take Metal's pipeline descriptors as the translator's, so the stating and reading move
from the old runtime's side into descriptor_reads, which both sides call: the old side answers
the label and archives from its creation options, the new runtime's side answers
render_descriptor_facts and compute_descriptor_facts from the translator's descriptor, defaults
included, with label and binaryArchives refused (the runtime keeps no label and takes no binary
archive). The label joins the consumer's own (ConsumerObject::Label, named in rt's README), as the
planner ruled.

Verified at this commit: cargo fmt only; the build, the suites and the lavapipe replays run in the
lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal 0b50b892ba conformance: the sampleRateShading cases' 45 refusals every venue holds, typed by the every-stream census
Every venue run refuses the same 45 places of the 77 sampleRateShading cases on rt, and the
ledger listed none of them. memory2's every-stream census 11-19 (all 17 matrix streams on player
db1d5c1929, every dump complete; m3-max-51200 to 51246) counts the three paths rt does not build,
so their rows take "refused: no stream uses it yet" with that census, each followed by its facts:

- 28 extended-range rows (BGRA10_XR, BGRA10_XR_sRGB, BGR10_XR, BGR10_XR_sRGB, the XR10 two-plane
  and its sRGB): no stream makes an extended-range texture, and no drawable or layer has one. The
  translator holds each raw in an integer format (FormatEmulation::ExtendedRange) and rt's texture
  refuses that emulation before the device's format query is asked;
- 12 rows of a plane of a 3D texture as an attachment: no stream attaches a 3D texture or sets a
  depthPlane; rt's render pass refuses the texture type and its descriptor has no depthPlane;
- 2 resolve rows: no stream sets a resolveTexture or a resolving store action; rt builds no
  resolve.

One extended-range-family row, xr-unwritten-rgb10a2unorm-srgb-no-fragment, names
MTLPixelFormatRGB10A2Unorm_sRGB, which is no public Metal format and which the census does not
count, so its row keeps its facts as words. The off-alignment bind's row quotes Metal's own API
validation, which refuses the bind (the recording's validated fact), and the dispatchType getter's
row is the consumer's own (dispatchType).

Verified at this commit: cargo fmt only; the ledger check and the rt lavapipe replay run in the
lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal 929d50804e harness command: its docs say where a runtime's own rows run
The rows of a runtime's own run after the creation workloads, and only
with the authored workloads; the command's docs now say so beside the
creation workloads', and that a runtime without the row prints "not
compared". Documentation only.
2026-11-19 04:27:39 -08:00
Anees Iqbal e55a9f482c harness: rows of a runtime's own; the idle frees' and the exports' timing leaves rt's suite
The suite's two timing records read noise in the parallel nextest run. The
planner ruled that their timing moves to harness rows, which run alone,
and that each test keeps its functional part.

- Harness: a row of one runtime's own (authored::OWN_ROWS, OwnRow).
  - It runs calls with no Metal counterpart through a new Device::own_row,
    on a device of its own on the session's GPU, and checks what it
    measured before it reports.
  - A runtime without the row answers None and prints "not compared".
    That is the old runtime for every row, so the plumbing is general,
    not a case for these rows.
  - Rows run after the creation rows, are selected by --only/--skip like
    any workload, and print their times as
    M2V-MATRIX time harness-<runtime>/<row>/<what>. A failed check prints
    M2V-FAILED harness-<runtime>/<row>, which fails the leg
    (results.py's HARNESS_FAILED).
- idle_frees and idle_frees_under_commits are judged absolute, per the
  planner's ruling: a free that began 25 ms or more past its allocation's
  idle age fails the row.
  - The count is rt's public Metrics::idle_frees_by_age: its 250-275 ms
    bucket is on time, every other bucket fails.
  - A small block held to the end keeps every allocation weighed, so none
    is kept as the reserve.
  - Without commits, four 16 MiB blocks are given back 150 ms apart. With
    a commit every 2 ms, two are given back, the second once the first's
    free ended. Either way no free waits for another, so each is measured
    alone.
  - These rows record no time, so no ratio or cross-GPU rule reads them.
- export_submit_cost uses rt's public calls only: new_exported_block
  (the first handle the device takes), raw, with_present_queue.
  - It times vkQueueSubmit2 of one command buffer recording a global
    barrier, waited for by a fence, in 3 rounds of 200 with no export and
    with 64 live.
  - It records the medians, none and exports_64, in us. The matrix judges
    them as a cross-GPU outlier, as any time of one runtime; with no old
    row there is no budget.
- rt suite:
  - memory.rs's two idle tests keep every check of order and age, and
    print no time record; assert_freed_at_the_idle_age returns nothing.
  - export.rs's exported_blocks_submit_cost becomes
    every_device_submits_beside_64_live_exports: the same submissions,
    now under the validation layer and untimed, with the exports gauge
    at 64 and back to 0 each round.
  - validation.rs's doc drops the export test from the layer-less
    instance's users.
- rt README names the harness rows where the idle age and the exports'
  submission cost are described.

Unverified in this commit: no build yet.
2026-11-19 04:27:39 -08:00
Anees Iqbal a352921d81 translator: SEMANTICS_VERSION 2190, ARTIFACT_FORMAT_VERSION 547 for the identity domains' unordered SIMD-groups
What: the identity domains (the new runtime's) now lower kernels with no lockstep order, which
changes what a cached translation holds and the artifact facts it encodes (the one-row facts are
gone), so both versions rise: SEMANTICS_VERSION 2189 -> 2190 and ARTIFACT_FORMAT_VERSION 546 -> 547.
These are this change's only version bumps; development's 2189 (the alpha test reference) and 546
stay below them. RUNTIME_VERSION stays at development's 2539.

The old runtime's render descriptor key covers SEMANTICS_VERSION (through each stage's
function_compile_key), so the_old_render_descriptor_key_keeps_its_value pins the key these
versions give: 9a3ee09e..., the left side job 51531 printed at the same versions (792f520713, this
change on 90792a2bfa). The fixture's bytes are unchanged.

Verified: cargo fmt; signatures.py --bless, refusal_surface.py and coverage.py --check give no
diff on 951b93a645. The check job named at hand-over compiles it and runs the suites.
2026-11-19 04:21:15 -08:00
Anees Iqbal aa4f6ac7bc rt: the device tests' compute state takes the one kernel
f28e9b3060 took the one-row variant out of Compiled::new, but the device tests' constructor
(ComputePipelineState::for_test, compiled only under m2v_gpu or m2v_cpu_icd) still passed a
(kernel, variant) pair, so clippy and the device test builds under either cfg failed to compile
it (E0308). It now passes the kernel alone.

Verified: job 49928 (msi, f28e9b3060 + a33dcf4fed) showed the E0308 at pipeline.rs:1187 in
clippy-gpu, clippy-cpu and both device-test archive builds, and no other error; this commit's
own build is the next check job.
2026-11-19 04:21:14 -08:00
Anees Iqbal b683148a41 rt, translator: the identity domains give a SIMD-group's threads no lockstep order
What: under the identity domains (the new runtime's profile) the translator no longer inserts the
barriers that make Apple's SIMD-group lockstep explicit (`lockstep::order`): `OrderKey::of` is
`None` there and `ordered_entry` takes the specialized entry as it is. The resident-table domains
(the old runtime's) keep the order until the cutover. With no lockstep barrier on the new
runtime's path, its one-row machinery is dead and deleted: `Compiled::rows`, `pipeline::one_row`,
`encoder::Module::Rows`, `keeps_rows` and `choose`'s `rows`, the `OneRow` and `RowLockstep` arms,
and the translator's `CompiledFunction::runs_lockstep_barriers_in_rows` with
`KernelFacts::lockstep_in_rows` (the API signature table; the version numbers rise in the
branch's last commit).

Why: documented Metal orders the threads of a SIMD-group only through barriers and atomics; the
Metal Shading Language calls two of them that conflict between barriers a data race. The order was
an emulation of undocumented Apple-GPU behaviour (owner's rule 1). Its barriers made 1,443 of 5,368
distinct kernels of the recorded streams observe their threadgroup partition, every pair of them
unproven, and they stopped partial-threadgroup dispatches the variant cannot run (rt's frame-320 and
frame-335 refusals of the 30-wide kernels). docs/API.md's accepted differences gain one entry, the
conformance case `simdgroup_lockstep` leaves its output words unchecked against it, and
CONFORMANCE-COVERAGE.md and REFUSALS.md are regenerated.

Tests: the identity-profile one-row test becomes `the_identity_domains_order_no_lockstep_pair`
(barriers under the default domains, none under the identity domains, the partial variant in
tiles); the harness's cells test keeps the old domains' one-row facts and adds the identity
domains' none; rt's one-row tests and the row-lockstep tree test go, and `row_cells` runs every grid
on its tiles' pipeline made with the state.

Verified: cargo fmt; coverage.py and refusal_surface.py regenerated. Clippy and the suites run on
the check job named when the branch is handed over.
2026-11-19 04:21:14 -08:00
Anees Iqbal fb046c8b24 nextest: the old runtime's queue-turns test runs alone, beside its file's other GPU-time bounds
tests::queue_share_device::a_later_queue_s_command_buffer_takes_its_turn_ahead_of_another_queue_s_burst
holds each of a burst's command buffers to a submission at most 20 ms after the GPU end of the
one before it: a bound other test processes' GPU and CPU work spends. On lavapipe on msi-laptop,
beside two other build and test jobs, the burst's eighth missed it (m3-max-51548, development
951b93a645); the same 64-test set on an idle node passed 3 runs of 3 (m3-max-51697). It joins
the override that already runs the file's other GPU-time-bound tests alone. The frozen crate is
unchanged; the override goes with it at the cutover. No other test in the file carries the bound.
2026-11-19 04:17:58 -08:00
Anees Iqbal 6364d3c20c rt README: the Iris Xe's (Gen12) rows under the biased offset are stated as measured, with no cause
The 2 GiB cap gap's Gen12 sentence named rows and an instruction count. It now says only what the
Iris Xe's probes measured:
- The form's median over the harness's 38 workloads is +0.03%. Three rows are up: alu and long_4cb
  14%, image_filter 7.6%. Three are down: zero_products 18%, vote_loop 9%, frame_5cb 7%.
- A change in the code that runs before an otherwise identical loop moves the kernel by -18% to
  +14%. The mechanism is not shown, and the probes ruled out four causes:
  - Placement: with ANV's instruction compaction off, every loop moves in memory and the gaps hold
    within 0.15 points.
  - Instruction count: a neutral arm (the sign-extended form plus live instructions before the loop
    that touch no address) times at the base's speed in every row.
  - The thread payload: the pushed registers and the push ranges are the same in both forms, and
    the one pulled load is the same.
  - Register numbers: the neutral arm's loop registers are shifted and it times at 0.0%.
- zero_products has the same three bias instructions before its loop as fma_chains, so one change
  moves kernels in both directions.

Verified: the A/B rows are from the Iris leg; the ISA comparisons are from INTEL_DEBUG=cs dumps of
both forms and the neutral arm, with the driver's shader cache off; the timings were taken with
compaction on and off. The README is in no crate's rustdoc. The one test that reads it (rt's floor
test) reads its "## Floor" section, which this does not touch.
2026-11-19 04:15:02 -08:00
Anees Iqbal 118b5b530d matrix: the RTX 2080's 64 MiB creation rows take their ruled known-gap ceilings
The planner ruled create_64MiB/first_take 2.30 and create_64MiB/device_first 2.14 on 10de:1e87,
from the medians of the alternated run m3-max-51634 (base 7cda47f536 and head 296e110c0f, the
higher of the two): the driver's own allocation of 64 MiB of host-visible system memory takes
about 12.5 ms where the old runtime imports pages it mapped itself in about 5.8 (m3-max-48212),
and it stays the driver's memory because an import as the allocator costs every submission on
every AMD card. row_limit applies HARNESS_BUDGET on top, as for the 1.40 lines. The 3090 has
no line yet: it takes one from its own rows.
2026-11-19 04:12:30 -08:00