Commit Graph
7316 Commits
Author SHA1 Message Date
Anees Iqbal 8126ccecbe validation test: the half-division cases divide every pair of half values once
Each case over the half-division fixture takes 64 dividends a grid row from its base, function
constant 0, each by all 65536 divisors; the test holds their dividend ranges to tiling the 65536
half values with no gap and no overlap, 2^32 pairs in all, in eight cases. The cases come in the
next commit, made on the M3.
2026-11-18 17:59:36 -08:00
Anees Iqbal d5cedca71b validation fixture: the half-division kernel takes its dividends' base as function constant 0, an eighth of them a grid
The source alone; its companions are regenerated on the M3 in the next commit.
2026-11-18 17:59:36 -08:00
Anees Iqbal 6c3a579cea rt README: a command buffer whose stamps are not available at its signal is a known gap
The planner ruled that the status form (a signalled command buffer whose timestamp pair reads
unavailable fails as one the device did not finish) does not land: without the wait bit Vulkan
lets vkGetQueryPoolResults answer NOT_READY for a query not yet available, only the wait bit
defines a dependency on the writes, and a signal says nothing about a query's availability. An
Intel UHD 630 on Windows read such a pair in a burst with its device going on (matrix 749c939440,
the old runtime). The counter (`Metrics::stamps_not_available`) stays as the guard, and the case
is recorded where a user reads it: the queue's known gaps say such a command buffer reports no GPU
times and is counted.

Docs only; no build.
2026-11-18 17:58:28 -08:00
Anees Iqbal 3a88a36924 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-11-18 17:58:04 -08:00
Anees Iqbal e3b8d67b5b runtime: a command buffer whose timestamps read unavailable completes, counted, and is no victim
A regression fix in the frozen old runtime. Matrix 749c939440's UHD 630 leg (Windows, Intel driver
101.2145, job 48872) failed the old runtime's burst_2000 and burst_2000x5 with "the command buffer
ended Error: Some(GpuRecoveryVictim)", with no device loss and no recovery notice: at least one of
the old runtime's 2,010 submissions a run read a timestamp unavailable once its queue's timeline
had passed it, and the old runtime took that as work the driver dropped and failed it as a victim
of a GPU recovery. The old runtime's poll already orders the read after a host wait on the fence
or the timeline, so this driver showed the signal before the timestamps' availability. A
signalled submission with its timestamps unavailable is no lost GPU: the command buffer now
completes, its GPU times 0, counted as before (`WorkCounts::unrun_command_buffers`), as the new
runtime counts the same case and fails nothing.

The cost is the case the branch was made for: work Linux's amdgpu drops with no error (a job its
timeout ended, and those queued behind it) completes with no error too. The FAST-PATHS known gaps,
the module docs, the error's and the count's docs and the README say so.

Test: the device test `dropped_work` now asserts the injected unavailable read completes with no
error, its fill ran, its GPU times 0, counted once, and the queue runs on (the old form asserted
the victim). Verified in the jobs named in the landing message.
2026-11-18 17:45:51 -08:00
Anees Iqbal dfa92ba821 matrix: the creation round's device totals are kept apart, as its gauges at drop already were
Every harness process prints its device's totals over the device's life
(`M2V-MATRIX metric harness-<runtime>/device/<total>`, since ebfc68ebb7) once its workloads have
run. The first creation round's processes (5849a7f029: one per runtime, their output kept whole)
are harness processes of their own, so each printed `harness-<runtime>/device/stamps_not_available`
a second time beside the other rows' process, and every GPU leg of matrix 749c939440 failed on
"record metric harness-new/device/stamps_not_available: recorded twice". The device's gauges at
drop had the same double and were already kept apart by CREATES_APART, which renamed only gauges.
CREATES_APART now renames every record of the device's life, of any kind, to
`harness-<runtime>/creates/device/...`, so the totals take the same road as the gauges and each
key is recorded once. A base without the renamed keys judges nothing on them.

Verified: the matrix's Python tests (test_results, test_matrix) pass, locally and in the job
named in the landing message; the creation test now feeds a device total through both the other
rows' process and the creation process and asserts each key once; with the gauge-only program it
fails on the same "recorded twice" line the matrix printed.
2026-11-18 17:41:12 -08:00
Anees Iqbal 1ba761329c replay: a render pipeline record's tessellation state and call-stack depths are read
reims's recorder (descwire) now writes three keys at the end of each
newRenderPipelineStateWithDescriptor:error: map, always:
- `tessellation`, a map of the seven tessellation properties as Metal's raw
  values;
- `maxVertexCallStackDepth`;
- `maxFragmentCallStackDepth`.
The players refused any key they did not know, so every pipeline of such a
stream would have been refused. A stream without the keys means Metal's
defaults (0, 16, false, 0, 0, 0, 0; depths 1 and 1): the device built those
before the recorder carried them. There is no header bit, and the host's
short display map is unchanged.

Both players (translator::render_pipeline) now accept the keys:
- The depths always go to the descriptor.
- The tessellation state goes to it only where it differs from Metal's
  defaults and the vertex function is a post-tessellation one (patchType not
  None). Any other vertex function ignores the state, as Metal does, so a
  plain pipeline is never handed tessellation state the new runtime would
  refuse.
docs/REPLAY-STREAM.md section 9 states the keys, their defaults and the
names that differ from Metal's.

Test: a unit test parses the recorder's pinned record (partition 3, factor
32, scale on, half, uint32 indices, per-patch, counter-clockwise; depths 2 and
3) to those values, a record without the keys to the defaults, and refuses an
unknown key at the top and inside the tessellation map. Verified by the lane
check named in the hand-over.
2026-11-18 17:40:11 -08:00
Anees Iqbal 57272b7db9 replay: a compute pipeline state the runtime does not build is skipped and counted
A per-gap play counts the gaps, but a compute pipeline state that the runtime
answered with a typed gap, or that the translator refused, stopped the new
runtime's play at once. glbench-3090-r2 stopped at frame 0 on an
IdentityDomains refusal, and nothing after it was counted.

Compute pipeline states are now skipped and counted the way render pipeline
states are (c027cc2cfa): by the runtime's gap, or `Translation` for the
translator's refusal, together with the first state's object and the runtime's
answer. They appear as `skipped_compute_states` and the report line
`skipped compute states GAP N, the first #ID: WHY`. A dispatch of a skipped
state is skipped and counted (`skipped_dispatches`), and the play goes on. Any
other error still stops it. Render and compute share the counting
(Skips::skipped_state). docs/REPLAY-STREAM.md section 10 says so.

Test: a device test plays a state made for indirect command buffers. The
runtime refuses it as IndirectCommandBuffers; the test expects it counted,
its dispatch skipped and the play ended normally. The rt_replay library
helper takes any of the runtime examples' functions, a kernel among them.
Verified by the lane check named in the hand-over.
2026-11-18 17:39:03 -08:00
Anees Iqbal 3070737d28 translator: a kernel that encodes indirect commands is refused for that feature under the identity domains
Under the identity domains an encoder operation was refused only at the domains' admission check, as Unsupported{IdentityDomains, NotImplemented}: its plan pushes the resident set's root table and the execution status, which the identity domains do not take. The refusal now names the feature the kernel uses: the encoder operation's own check (encode.rs, needs) refuses it as Unsupported{GpuEncodedIndirectCommands, NotImplemented} under those domains. The new runtime already answers a state for indirect command buffers with Gap::IndirectCommandBuffers; its README says the translator refuses a kernel that encodes into one. docs/REFUSALS.md regenerated.

Verified: the new engine_identity test fails before the change (IdentityDomains) and passes after; job named with the sha.
2026-11-18 17:37:57 -08:00
Anees Iqbal 0549d44775 rt: turn_taken is compiled for the device tests alone, which alone call it
44676f7998 gave the commit-lock test a turn_taken() under #[cfg(test)]; the
test runs under --cfg m2v_gpu or m2v_cpu_icd only, so the plain test build's
clippy refused the method as never used (build m3-max-48982, clippy plain
EXIT=101). It takes the device tests' cfg, as texture.rs's test-only
helpers do.
2026-11-18 17:31:51 -08:00
Anees Iqbal 96ef4a692e replay: a buffer's linear texture plays as the texture over it where 2D
The SPI newLinearTextureWithDescriptor:offset:bytesPerRow:bytesPerImage:
stopped the new runtime's play of webdiv-780m-2 at frame 0 ("not played on a
buffer"): the stream makes one such texture, a 2D one over a no-copy buffer.
Neither player knew the selector.

The old runtime measured the SPI as newTextureWithDescriptor:offset:bytesPerRow:
for a 2D descriptor, plus 2D arrays whose slices Metal lays out itself
(bytesPerImage ignored; Buffer::new_linear_texture). The old player now calls
that. The new runtime has no form of the array layout, so its player plays a
2D descriptor as the public texture over the buffer (its resource index
included) and refuses any other type, "a linear texture of a type other than
2D". docs/REPLAY-STREAM.md section 5 names the selector.

Test: a device test plays a 2D linear texture with nothing skipped and gets
the refusal for a 2D array. Verified by the lane check named in the hand-over.
2026-11-18 17:29:04 -08:00
Anees Iqbal e987f3147f matrix test: the node's ready carry is the build's (made, why), as gpu_node reads it
Verified: the matrix's Python tests in the job named in the landing message.
2026-11-18 17:27:11 -08:00
Anees Iqbal e04254de14 matrix: a timing leg names its old runtime's own spread, and is timed again past 10%
The planner's rule for timing legs: each prints the BASE arm's own spread across its passes;
past 10% the leg is VOID and is timed once more at another time, and a leg VOID twice is
reported as "venue unstable", never as a red row. In a matrix harness leg the base arm is the
old runtime, and the rows it times more than once in a leg are the re-timed ones: its main run
and each re-timed pair's (RETIME_PAIRS). results.base_spread takes, of each such row, the old
runtime's largest time over its smallest, less 1, on the time the row is judged on (its GPU time
where gpu_judged), and the largest of the rows; a creation row's first samples are cold, spread
by nature and judged cold against cold, so none counts; with no row re-timed it is n/a and voids
nothing.

Past BASE_SPREAD (10%), harness_budget names every problem the leg's times would raise VOID and
parks it, and the problems of its records and counts stand; the over table reads VOID on each of
the leg's times. The matrix (Run.timed_again) times such a leg's harness once more, after the
node's other jobs (the Windows host's right after its own), and judges that timing. The leg's
line names its base spread and what came of a first timing; a leg VOID in both reads `venue
unstable`, verdict UNSTABLE, which the run counts apart and which does not fail it. A node's last
job is now the last one it actually runs, the re-timing included, so the tree and the carry's
mirror are tidied after it.

Verified: the matrix's Python tests, new ones: the spread on time and on GPU time, n/a with no
re-timed row, a cold first sample never counting; a leg past it failing on its records alone and
the same row failing within it; the verdict line's spread, n/a and UNSTABLE; the over table's
VOID; and a node's harness timed once more after its other jobs, once only, its last job the
tidying one. In the job named in the landing message.
2026-11-18 17:27:11 -08:00
Anees Iqbal 255f531ccd validation: a detach between submissions is judged by its order, not by 100 ms
The split detach test asserted that each detach returned within EARLY (100 ms) of its call, a wall-clock bound a loaded host can break with no fault in the runtime. Each now asserts that, once the detach returned, its command buffer is not Completed: the second submission waits on a gate the test raises only after the detach, so a detach that waited for the command buffer could not have returned there.

Verified: the test under lavapipe, quiet and in loaded rounds (job named with the sha).
2026-11-18 17:17:19 -08:00
Anees Iqbal 7e33975f58 matrix: NVIDIA's first take of 64 MiB is judged on the new runtime's own part
The planner's ruling on create_64MiB/first_take on NVIDIA's legs: the gate changes, not the
ceilings. From the next round on the row is judged on the new runtime's own part, its first take
less the time inside the driver's calls the same process recorded, against the old runtime's whole
first take, each the median of the five creation processes; the driver's part and the whole ratio
are shown beside it, with the gap's name. An own part past the row's limit (1.03 times its floor,
the parity every row gets) fails the leg as a regression of its own.

The driver's part is `first_allocation_total`, the new runtime's `vkAllocateMemory` time on the
harness's thread in the same take, kept from every process already (FIRST_KEEP). rt counts no
`vkMapMemory` time, so the map stays in the own part, the stricter reading. On 5f2494bfc5 the
allocation took 9902 of the 2080's 12521 us first take (old's whole 5668 us), and 14164 of 17013
us and 10013 of 15066 us on the 3090's legs (old 4865 and 6166 us), against 954-1061 us on RADV.

The table OWN_PART_GATES names the row and its driver's part for the two NVIDIA cards the matrix
runs, which takes the place of their ceilings (1.88 and 2.26), deleted with their status.tsv gap
entries: the row is now over only when its own part is, which is a regression, not the gap. The
over table names such a row's kind `own part`. docs/VALIDATION.md says how the gate judges.

Verified: the matrix's Python tests, two new: the gated row within on its own part though 2.4
times old whole, past it as a regression, a process without its driver's part failing, an extra
leg held to its card's gate and another card's row judged whole; and the over table listing the
row by its own part alone. In the job named in the landing message.
2026-11-18 17:14:56 -08:00
Anees Iqbal 6f07c7861b replay tests: the render-state gap test's pipeline is refused for its 4 samples
The runtime builds a pipeline state's depth attachment since f9633bf18d, and
RenderPipelineKind::DepthAttachment is gone, so the test's Depth32Float
pipeline now plays and its expected "DepthAttachment" skip line never comes:
the test fails on every device run. Its pipeline now rasterizes at 4 samples
(rasterSampleCount 4), which the runtime refuses as
RenderPipeline { kind: Multisample }, and the test expects that line.

Verified by the lane check named in the hand-over (lavapipe device run).
2026-11-18 17:13:33 -08:00
Anees Iqbal 75012ea52b validation: the second-process test asserts the first's entries are on disk as the second starts
The planner asked for the check that fails without the cache run's wait: before spawning the
second process, the test now asserts the translator's artifacts on disk number at least the
first run's writes, and its driver records at least its driver_saves where the driver's data is
kept. Without the wait (cache_run's entries_written) a probe found one file missing in 2 of 12
loaded rounds (m3-max-48434).


Verified at this tree (m3-max-48666, msi, lavapipe as the leg builds it): validation clippy
clean, the cache module's 6 tests pass, the second-process test passes 5 of 5 rounds under 48
busy loops. With cache_run's wait taken out it also passed 12 of 12 loaded rounds there: the race
did not recur at this tip under that load, so the assertion is shown to hold, not yet to fail.
2026-11-18 17:05:03 -08:00
Anees Iqbal 44676f7998 rt tests: the commit-lock, quiesce and idle-free tests state orders, not wall-clock bounds
Planner ruling D: no wall-clock threshold in a suite that runs beside other jobs. rt's device
suite had six, each replaced by the deterministic statement it stood for:

- every_device_counts_a_commits_wait_for_the_submission_lock asserted a counted wait of 10 ms or
  more after a 20 ms hold, which a committing thread that starts late misses. The test now waits
  for the commit's turn (taken after its count began; Work::turn_taken, test-only), then holds the
  lock 20 ms, and asserts the counted wait is at least the hold's length past the turn, by
  host_time.
- every_device_quiesces_with_handles_alive asserted a second quiesce answers in under 1 s: now
  quiesce(Duration::ZERO) gives the first call's answer, true.
- every_device_answers_false_to_a_quiesce_in_a_scheduled_handler asserted the false answer came
  in under 1 s: the handler's quiesce now has ten times the test's patience as its deadline, and
  the answer must come within that patience, so it was not the deadline's.
- The idle-free tests asserted each free began within a 50 ms slack of its idle age, the oldest
  idle-age gauge under the idle age plus that slack, a take 50 ms on counted 50 to 250 ms idle,
  and a 3 s commit loop sampled 1.4 s in. Now: each free begins at or after its idle age and
  after the free before it ended; the gauge is at most the time since the first give-back, by
  host_time; the take comes at once, counted in a bucket no older than the time since the
  give-back (the test asserts its own take came within the idle age, else the test was late, not
  the runtime); the commits give the second block back once the first's free ended and stop once
  the second's ended. Each test prints its latest free past due as
  `M2V-MATRIX time idle_frees/latest_past_due` and `idle_frees_under_commits/latest_past_due`,
  microseconds, for the matrix's GPU legs.


Verified at this tree (m3-max-48666, msi, built as the lavapipe leg builds: --cfg m2v_cpu_icd,
LP_NUM_THREADS=1): rt clippy clean; the five tests pass through the matrix's own nextest options
and output filter, whose kept output holds both M2V-MATRIX time lines (167 and 135 us); they
pass 3 of 3 rounds under 48 busy loops on 24 CPUs (latest free past due 0.5 to 4.8 ms). With the
committing thread started 15 ms into the hold, the old commit-lock form fails (command.rs:1253)
and the new one passes. The old forms passed the same 3 loaded rounds.
2026-11-18 17:05:02 -08:00
Anees Iqbal f3853ef7b7 replay tests: the render-state gap test's pipeline takes the short descriptor's colour key
The colors list form needs every colour attachment field the player
requires (blendingEnabled and the rest); the test's stream gave only the
pixel format, so the play stopped on 'no blendingEnabled' before the
runtime saw the state (check 48543, lavapipe). color0PixelFormat is the
short descriptor the draw test already plays.
2026-11-18 16:57:09 -08:00
Anees Iqbal c027cc2cfa replay: skipped render pipeline states are counted by the runtime's gap
The report gave one line for every skipped render pipeline state, its
total and the first one's answer, so a stream's states refused for a
depth attachment, for framebuffer fetch or by the translator read as one
number. The planner's census of what the new runtime refuses needs the
count of each kind per stream.

The backend now keeps the skipped states by the gap as Rust prints it
for debugging (Translation where the translator refused), with the
first one's object and answer, and the report gives a
"skipped render states GAP N, the first #ID: WHY" line for each, as it
does for render commands; skipped_render_states is their sum.
docs/REPLAY-STREAM.md describes the line.

Verified: see the check job (a new rt_replay device test: a state with
a Depth32Float depth attachment is counted under
RenderPipeline { kind: DepthAttachment }).
2026-11-18 16:57:09 -08:00
Anees Iqbal 749c939440 matrix status: the first interleaved round's rows over their limits take their owners
The round at 5f2494bfc5 is the first with both runtimes interleaved, the noise meter's base, so
its 39 rows over their limits are owned here, by the owners main named:

- memory2: the creation rows that time block allocation or a take, 12 rows: create_64MiB on the
  XTX, 2080 and 3090; create_64MiB/first_take on the 780M (both), RX 550, XTX and Iris Xe;
  create_private_16MiB/first_take on the 2080, 3090, UHD 630 and Iris Xe.
- entry: create_state/first on the 3090 (both of its legs).
- identity: the translator's GPU rows, 12: wide_bindings on the RX 550, sampling_deep_64x64x16 on
  the UHD 630, and on the Iris Xe constant_managed, constant_private, constexpr_sampling, the five
  sampling_deep rows, threadgroup_scan and waves, noted "Iris swing unresolved".
- Known gaps by the planner's rulings of 2026-11-18: create_64MiB/first_take on the 3090 (as
  before) and on the 2080, the same NVIDIA large Shared allocation: in this round the new
  runtime's allocation calls (create_64MiB/first_allocation_total) took 9902 of the 2080's
  12521 us first take, as they took 14164 of 17013 us and 10013 of 15066 us on the 3090's two
  legs, against 954-1061 us on RADV; and create_state/first on the Iris Xe, the meter's artifact.

The notes that waited for this round go: the 64 MiB rows on the four RADV cards were "unjudged
until the first interleaved round", and the Iris Xe's GPU rows had "one time-boxed investigation
after the first interleaved round"; both are now open records. The Iris Xe's vote_loop and
zero_products keep their card's variance (CARD_VARIANCE), and the frames' commit_to_complete rows
need no entry, gone since 6605f18ddf.

Verified: the matrix's Python tests (the stored table reads) in the job named in the landing
message.
2026-11-18 16:55:12 -08:00
Anees Iqbal ed1e57ed1e rt: the depth attachment test counts the first command buffer's move of its new images
The draw test's first command buffer recorded 4 barriers on lavapipe (m3-max-48760, ms01), not
the 3 it expected: the first command buffer also moves the two new images (the colour target and
the depth texture) from undefined to their home layouts, expected Vulkan work. The count is now
per command buffer, 4 then 3, and the assertion names why.
2026-11-18 16:52:30 -08:00
Anees Iqbal f9633bf18d rt: a pass's depth attachment is loaded, cleared and stored, untested; a pipeline state takes its depth format
The render-state lane's first feature. A replay stream's 478 depth passes (depth census
m3-max-48544, the one stream with any) are a shader-read Depth32Float texture with no stencil
attachment beside it, a Clear of 1 (476) or a Load (2) and a Store, drawn under Metal's default
depth-stencil state (compare Always, no write) by four pipeline states of depthAttachmentPixelFormat
Depth32Float. rt refused all of them: the pass by RenderPassKind::DepthAttachment, the states by
RenderPipelineKind::DepthAttachment.

- pass.rs: Pass holds the depth attachment as it holds the stencil one: a format with depth
  (else Refusal::AttachmentFormat, as Metal's validation stops it), the texture's view of the
  level and layer, Metal's load and store actions as for a colour, its clear depth a float.
  `vkCmdBeginRendering` takes it as pDepthAttachment. With a stencil attachment beside it the two
  are one view (VUID-VkRenderingInfo-pDepthAttachment-06085): two others are
  RenderPassKind::DepthStencilViews. A Clear outside [0, 1] or NaN is RenderPassKind::ClearDepth
  (VUID-VkClearDepthStencilValue-depth-00022; the floor has no VK_EXT_depth_range_unrestricted).
  Pass::targets yields each image once, so a combined texture's one view is moved, kept and
  barriered once.
- render.rs: the descriptor's depth format is no refusal. Fixed holds the translator's depth
  format (vk_format over the device's format query: a format the device does not render depth
  in is the translator's typed refusal), the VkPipeline renders into it, and renders_into holds
  it to the pass's depth attachment, as the colour and stencil formats are.
- The draw keeps DrawKind::DepthTest for a state that tests or writes depth; the encoder's
  dynamic depth state stays off, which is what the default state means.
- error.rs: RenderPassKind::DepthAttachment and RenderPipelineKind::DepthAttachment go;
  DepthStencilViews and ClearDepth come. Their docs, the bases and Refusal::AttachmentFormat's
  doc say what is built.
- README: the render pass and encoder sections and their known gaps.
- docs/REFUSALS.md regenerated; the API signature table blessed (two variants out, two in).
- tests:
  - draw.rs every_device_clears_loads_and_stores_a_depth_attachment_its_draws_do_not_test: a
    shader-read Depth32Float attachment cleared to 0.25, then loaded, each pass one submission,
    three barriers, one pass, no byte copied; the colour drawn; the depth read back 0.25; a state
    without the pass's depth format, one with it in a pass without depth, and a Less test are
    each their gap.
  - pass.rs: the depth refusal is replaced by a depth attachment of a colour format, a depth and
    a stencil of two textures, and a clear depth of 2 and of NaN.
  - render.rs: the depth attachment leaves the pipeline refusal list.

Verified: nothing yet; the next check job compiles and runs it.
2026-11-18 16:52:29 -08:00
Anees Iqbal c49a3cc9c6 rt tests: the render-target reach test writes its cleared texels as arrays, as clippy's as_chunks asks
Clippy under --cfg m2v_gpu and --cfg m2v_cpu_icd (check 48620) refused chunks_exact_mut(4) in
tests::over's new test; as_chunks_mut::<4>() fills the row's texels with the clear's bytes, the
same bytes. To be checked by clippy in both device configurations.
2026-11-18 16:51:37 -08:00
Anees Iqbal 3244b7da19 rt: a render target over a buffer is in place only within its own rows and its buffer
A store, a clear or a resolve of an attachment may read and write back any byte of the image
subresource bound for it (Vulkan's load and store operations). A copy, a fill and a shader's
write have no such clause. So a texture over a buffer in place with render-target usage could
rewrite bytes past its own rows, or past its buffer, with whatever the device read there. llvmpipe
does it: it advertises a linear image's height rounded up to 4 rows and stores whole blocks of 4
by 4 texels, so a draw into a 3-row render target over a buffer that ends at its rows wrote the
fourth row past the buffer (the lavapipe read, repro lvp-block-store.c).

What:
- A texture with render-target usage is in place only where the subresource the device
  advertises (vkGetImageSubresourceLayout's offset and size from its place) ends at or before
  both its own rows' end (offset plus height rows of bytes_per_row) and the buffer's end
  (texture::render_reach, texture::in_reach, Bind::InPlace's reach). Otherwise it takes the
  copied form, whose copies are counted in Metrics::over_copies, as every copied texture over a
  buffer's are.
- A texture of any other usage writes its texels alone and keeps the bound it had: its image's
  memory inside the buffer's block.
- linear_layout answers the subresource's size too, for a device test's hook
  (Device::linear_subresource_size, test cfgs only); its doc comment, which sat on
  linear_rounding, is back on it.

The count before building, from the replay streams' calls (jobs 48529 and 48566): every one of
the 406 render targets over buffers in the five streams that make any (u2 61, u3 62, b3 49, and
the 780M's two 3D streams 86 and 148) starts at its buffer's first byte and its rows end at the
buffer's end. On the venues' layouts from the pad probe, none of those in place today ends past
that bound on any hardware venue. On llvmpipe, 3 to 6 per stream do, each of a height that is not
a multiple of 4.

README and Buffer::new_texture's doc: the bytes of a render-target texture's rows that are not
texels may be rewritten with their earlier values while a pass renders it; the in-place rule; the
known gap of the copied form on lavapipe and of a render target ending at its buffer's last texel
with a pitch wider than its row.

Tests:
- tests::texture: over every venue's linear layout (RADV on the 780M and XTX, RADV on the RX 550,
  NVIDIA, ANV on the UHD 630 and the Iris Xe, KosmicKrisp on the M3, llvmpipe), for the streams'
  render target shapes and heights 3 and 4: in a buffer that ends at the rows' end, in place on
  every venue but llvmpipe, which copies a height that is not a multiple of 4; in a buffer that
  ends at the last texel, copied where the pitch is wider than the row; a sampled texture in place
  everywhere.
- tests::over (device cfgs): a 16-texel RGBA8Unorm render target at the device's pitch, of 3 and
  then 4 rows, in a buffer that ends at its rows, is copied wherever its advertised subresource
  passes its rows, and on lavapipe the 3-row one is copied and the 4-row one in place; a pass that
  clears and stores it leaves its texels the clear's and every other byte of a span 64 KiB past it
  the host's sentinel, its copies counted where it is copied; a sampled texture over the same
  buffer is in place on every device.
- tests::over_aliases and tests::layouts print and document the render-target rule where a device
  does not take their render target in place.

Checked by the jobs named in the lane's report: the rt check (clippy in every configuration, the
suites, rustdoc), the device legs on lavapipe and every GPU, and the over-copies of b3, u2 and u3
played on a 780M and the Iris against development.
2026-11-18 16:51:37 -08:00
Anees Iqbal 0f1844deb4 conformance: the rt ledger's cube array rows: no stream makes one
The 87 rows the whole-set replay of the new runtime refuses with the cube array gap
("cube array textures are not built", seven cases: heap sizes, format footprints, read-write
tiers and texture descriptor pairs) take the typed reason "no stream uses it yet", naming the
cube census: m3-max-48683, 48687, 48688 and 48720 read every texture descriptor, made texture and
newTextureView of the ten replay streams (the gb, glbench, web3d, windrag and webdiv recordings)
and found no CubeArray type; glbench's two recordings make 13 Cube textures each.

Rows written by class from the whole-set output of m3-max-48742 (lavapipe on um790, the gap's
commit), refused rows only: no divergent row is taken as a cascade of the cube refusal.
2026-11-18 16:49:13 -08:00
Anees Iqbal 8c4e1a97af replay: the play's last frame under the recording range is the range's own rule, unit-tested
RecordingRange::last_frame holds the rule the player applies (the
earlier of --until-frame and the range, unless --past-range yes), so a
test reaches it without a device: a_play_ends_at_the_recording_range_unless_asked_past_it.
2026-11-18 16:47:13 -08:00
Anees Iqbal a314b75ee6 replay: a play ends at the stream's recording range unless --past-range yes takes it past
A known-bad tail cost a ring timeout on a shared card and a wrongly
bounded play. The player now ends every play at the recording range by
default:
- the stream's sidecar, NAME.range beside NAME.0000.m2vr, one line:
  "last-frame F" or "whole";
- else the player's table RECORDED_RANGES for the streams recorded
  before sidecars, found by the first segment's file name and byte
  length: u2 1128, u3 1178, r3 1137, r4 1099, b3 whole;
- else the whole stream (the 3D streams until their ranges are stated).

--past-range yes plays past it; without it --until-frame F stops at the
earlier of F and the range. Every report says which range the play
used, where it came from and whether the play ends there, on a range
line after the completion mark; a sidecar of neither form is a harness
error (exit 2). docs/REPLAY-STREAM.md: section 1 names the sidecar,
section 10 the default, the flag and the report line.

Tests: replay::tests a_recording_range_comes_from_the_sidecar_then_the_table
(sidecar over table, table row by name and length, no row, bad sidecar);
integration replay_range runs the binary over a synthetic stream with no
sidecar, a last-frame sidecar, the flag and a bad sidecar (no device
opens); replay_completion_mark now expects the range line second.
2026-11-18 16:47:13 -08:00
Anees Iqbal b6af679b43 rt README: on NVIDIA a burst of short command buffers takes more submissions than the old runtime's, a known gap
The arm-L rule's end: the last arm (L2', which sent a group at once from an idle queue and
re-took only while work was in flight) brought the 2080's frame_5cb submissions from about 2.5
to 2.1 a run and its throughput 7% closer, but it put the first buffer from idle up to 3.4 us
later on the XTX and the 780M's frame row two in flight up to 12% behind (48705, 48748), so it
does not land and the row becomes the known gap: NVIDIA's latency per submission; rt submits
sooner. Latency from idle is equal, and the r3 play on the 2080 is 1.5x ahead of the old runtime,
with the recorder caveat: r3 was recorded before the recorder's completion fix.

Docs only.
2026-11-18 16:40:46 -08:00
Anees Iqbal 0a0ce8e29b rt: a cube array texture is a typed gap, so no view needs imageCubeArray
rt made VK_IMAGE_VIEW_TYPE_CUBE_ARRAY views without the imageCubeArray feature, which its floor
(Vulkan 1.3) does not require: the conformance whole set's layer leg on lavapipe (job
m3-max-48531) logged VUID-VkImageViewCreateInfo-viewType-01004 ten times once the rt side made the
cases' cube array textures. No replay stream makes a cube array texture or view (cube census over
every stream, jobs listed in the landing message), so by the planner's scope rule a cube array is
a typed gap until one does, and the floor is unchanged.

- error.rs: Gap::CubeArrayTexture, basis ours.
- texture.rs: prepare refuses a CubeArray descriptor, which every texture and every view of one
  passes through, so no cube array view is made; the descriptor's and new_texture's docs name it.
- README: the texture section's gaps.
- docs/REFUSALS.md regenerated; the API signature table blessed (one variant added).
- tests/texture.rs: a cube array texture is the gap on every device of the cfg.

Verified: nothing yet; the next check job compiles and runs it.
2026-11-18 16:39:42 -08:00
Anees Iqbal 5849a7f029 matrix: each runtime's creation rows run in a process of their own, cold against cold
The planner's rule: a cold first sample is compared cold against cold. The creation rows ran in
five processes that each timed both runtimes, the new runtime first, so the driver's
process-wide setup fell on the new runtime's first pipeline and the old runtime's first samples
came after it, warm. Measured on the Iris Xe (job 48650, ms01 alone, both runtimes from the
harness at cb25e3a83e, five processes each): the old runtime's create_state/first was 5265.8 us
behind the new runtime in one process and 16732.8 us in a process of its own (0.315x);
device_first 0.167x, first_call 0.099x. The one-process ratio new/old 1.302 at first was a
cold-against-warm ratio; cold against cold it is 0.410.

Of the two forms the planner allowed, each runtime's own fresh process is the cheaper: the
harness does not change, and the extra five processes a leg runs take about a second each
(create_state's processes on the Iris ran in under one second). The other form, one unrelated
pipeline before either runtime in a shared process, would need harness code and leaves the
first samples process-warm, not cold. So each of the five rounds now runs `--runtime new` and
`--runtime old` in processes of their own, each on a fresh driver cache and store, the order
alternating from round to round (new first in rounds 1, 3 and 5); the first round's two outputs
are kept whole, the later rounds' first samples as before. The records, their names and the
budget's medians do not change.

Verified: the matrix's Python tests in the job named in the landing message (the harness-runs
test now pins the processes and their order).
2026-11-18 16:35:27 -08:00
Anees Iqbal ebfc68ebb7 rt: a timestamp pair read as not available after its submission signalled is counted, and every play and suite leg reports the count
The read without the wait (f6906db61e) reports no times for a pair that is not available. Two
things leave a pair that way once its submission signalled: a submission the device cancelled
at a reset, which signals having run nothing, and a driver that makes timestamps available only
after the signal (MoltenVK 1.4.2 on an M3 Max did, for most command buffers, which is why the
read waited; MoltenVK is below the floor now). The second would zero GPU times with no other
sign, so each such read is counted: Metrics::stamps_not_available, through Pair::times, the
one counted read that CbInner::stamps makes.

Reported where the matrix records it:
- rt's device tests: `M2V-MATRIX metric <test>/stamps_not_available <n>` from each device the
  device loop opens (tests::command::on_device::on_each_device);
- the harness: `M2V-MATRIX metric harness-<runtime>/device/stamps_not_available <n>`, from the new
  Device::totals and Session::totals, before the session finishes (empty for the old runtime);
- the replay player: the `stamps_not_available` counter in each frame's executed counters.

The readback test now reads through Pair::times on counters of its own and checks that the read
counts one, so the device's record stays that of its real command buffers.

The specification read (Vulkan 1.4.366, sections 7.4 to 7.4.4, 23.2, 23.5 and the memory
model's system-synchronizes-with):
- "A query is made available by the operation of ... vkCmdWriteTimestamp2" (23.2);
- the signal's first synchronization scope "includes every command in the same batch that the
  signal operation is defined in, and all commands that occur earlier in submission order"
  (vkQueueSubmit2);
- "signal operations happening before host operations that wait on them" (memory model, the
  note under System-Synchronizes-With).
So a pair is available to a read made after a host wait (vkWaitSemaphores) that saw its
submission's value. The completion thread also retires values it learns from
vkGetSemaphoreCounterValue alone (after a wait that returned for an event, for its wake or for an
earlier value), and for that command the specification states no ordering: only that "the value
returned by this command may immediately be out of date". The count covers both.

Public surface: Metrics::stamps_not_available (api_signatures.tsv; signatures.py --check run
here and clean). Not yet compiled or run.
2026-11-18 16:32:06 -08:00
Anees Iqbal 3f59e7b0f9 rt: a command buffer's timestamps are read with no wait, so a cancelled submission's retire at once
On RADV a GPU fault's submission is cancelled at the ring reset, and its progress value is still
signalled then, so the completion thread retires it and reads its timestamp pair, which the device
never wrote. With VK_QUERY_RESULT_WAIT_BIT, RADV's vkGetQueryPoolResults checks for a lost device
once, then spins on the value for twice the kernel's 60 s compute timeout
(radv_get_rel_timeout_for_query) and returns VK_ERROR_DEVICE_LOST. For those 120 s the completion
thread ran nothing else: the buffer's completed handler waited, the guest's next commit waited
for it, and the loss reached the runtime at the next submission, about 123 s after the fault
(u3 play, job 48532 on a 780M: the completion thread in state R at every 1 s sample, the submit
thread idle, the next vkQueueSubmit2 failing at once 120.02 s after the reset).

The read no longer waits. The spec, read whole (Queries: Query Operation, vkGetQueryPoolResults,
Timestamp Queries; Synchronization: semaphore signaling and waiting, vkQueueSubmit2; the memory
model's system-synchronizes-with):
- "The first synchronization scope of each semaphore signal operation defined by this command
  includes every command in the same batch that the signal operation is defined in, and all
  commands that occur earlier in submission order." The progress signal's stage mask is all
  commands.
- "This covers all Vulkan synchronization primitives, including ... signal operations happening
  before host operations that wait on them": the completion thread's host wait that sees the
  value happens after the signal.
- "A query is made available by the operation of ... vkCmdWriteTimestamp2", and with the wait
  bit the read "defines an execution dependency with any earlier commands that write one of the
  identified queries": the host wait already gives that dependency.
- "If VK_QUERY_RESULT_WAIT_BIT is not set, vkGetQueryPoolResults may return VK_NOT_READY if
  there are queries in the unavailable state."
So a pair of a submission that ran is available to a read with no wait, which is what the runtime
already relied on (the caller reads only pairs of submissions it saw complete), and a pair a
cancelled submission never wrote reads as not ready at once: that buffer's GPU times are 0, as for
a driver that reports neither. The wait was there for MoltenVK 1.4.2, which made timestamps
available only after the signal; MoltenVK is below the floor. No retry, no timer.

Test: tests::readback::a_pair_no_submission_wrote_reads_as_no_times_at_once (the commit before)
fails with the waiting read on RADV and passes with this one; on lavapipe it passes either way.
Expected, not yet run: the matrix jobs named in the hand-off.
2026-11-18 16:32:05 -08:00
Anees Iqbal 080965f430 rt test: a timestamp pair no submission wrote reads as no times, at once
The state a submission the device cancelled at a ring reset leaves: its progress value signalled,
its timestamps never written. The completion thread reads such a pair when it retires the
command buffer. The read must report no times and return at once; this test bounds it by the
tests' patience (60 s), so a read that waits for values that never come fails it. On RADV the
waiting read (VK_QUERY_RESULT_WAIT_BIT) spins for twice the kernel's 60 s compute timeout
(radv_get_rel_timeout_for_query) before it returns VK_ERROR_DEVICE_LOST, so with today's read
this test fails there. On lavapipe a query no command wrote reads as not ready with or without
the wait flag (lvp_GetQueryPoolResults), so there it passes either way. The fix follows.
2026-11-18 16:32:05 -08:00
Anees Iqbal 6605f18ddf harness, matrix: the frames' commit-to-complete row is gone after its one round
The planner's frame ruling showed the frames' old figure, their last command buffer's
commit-to-complete time (`<row>/commit_to_complete`), beside the new throughput row for one round,
unjudged, then deleted. The round at 5f2494bfc5 is that round. The harness no longer prints the
record, the matrix no longer has a shown-rows table (its one row was this), and the docs and
the frames test lose it. The frames' latency from idle stays a row of its own.

Verified: the harness gate in the job named in the landing message (clippy plain, m2v_gpu and
m2v_cpu_icd, rustdoc, unit tests, the matrix's Python tests).
2026-11-18 16:28:03 -08:00
Anees Iqbal 32df0845b6 harness: the first state's threadgroup size is the harness's Size 2026-11-18 16:27:00 -08:00
Anees Iqbal ca92b2aa9e harness: a compute state row's first dispatches 64x1x1, the streams' commonest size; one thread beside it
The create_state row's first dispatched one thread (1x1x1), a size of few dispatches: 3.9% of the
compute dispatches in the discrete replay recordings (from 3 to 5 kernels) and at most 0.5% in the
unified ones, by identity's census of every stream's threadsPerThreadgroup. A runtime that
compiles its pipeline for the dispatch's size (the old runtime) compiled the first at 1x1x1, where
a program's first dispatch runs at its own size. The first now dispatches one threadgroup of
FIRST_THREADGROUP, 64x1x1: the commonest size over the five streams of record, 24.1% of their
compute dispatches (41.7% of the unified recordings', 7.1% of the discrete ones', where 128x1x1
leads with 39.3%; 128x1x1 is 23.3% overall). Each thread's 16 bytes are checked.

Today's form stays beside it, shown and never judged: another content's first (the kernel with
other constants) dispatched as one thread, create_state/first_one_thread
(CreateReport::one_thread_first_us; results.SHOWN_FIRST). The name has no digits so the matrix's
FIRST_KEEP keeps it from every creation process, which a results test holds. The warm-up stays at
one thread. docs/VALIDATION.md and the crate doc say it; the authored device test asserts the
compute row has the one-thread first.
2026-11-18 16:27:00 -08:00
Anees Iqbal c1bd2d46d6 replay: a report of a stream recorded before the completion fix says so on its first line
The recorder's completion fix marks a stream with header flag bit 1,
FLAG_COMPLETION_BYTES_RECORDED (value 2): at each command buffer's
completion the stream holds every chunk the buffer's work could store to
as the GPU left it, before any later CPU write, on all four late routes
(signalled event, final status read, refused hook, released command
buffer). Fixed streams read flags 3; every stream recorded so far reads 1.

- The reader takes bit 1 (it refused any bit but 0 before), so a fixed
  stream plays.
- command-replay play writes "recorded before the recorder's completion
  fix: the stream may differ from what the program did" by itself as the
  first line of report.txt for every stream without bit 1, so no table
  relayed from a report loses it. The stream is now read before the
  device type is parsed, so even a report that stops there carries it.
- docs/REPLAY-STREAM.md: section 1 names the bit, section 6 replaces the
  rule that described a stream without completion writes as allowed with
  the completion invariant and what a stream without the bit may miss,
  and section 10 names the line and its place in report.txt.

Tests: replay_completion_mark (integration) runs the player binary on a
one-call stream with flags 1 (the report begins with the line) and flags
3 (it does not), with a device type no device has so no device opens;
the header flags test now reads flags 3 and refuses bit 2.
2026-11-18 16:24:06 -08:00
Anees Iqbal 4dc00c65b1 conformance: the rt side's trait answers name texture_facts and reflection_is_the_consumers without linking them
Rustdoc of the conformance crate (job m3-max-48531, -D warnings) refused seven doc links: each
answer is a public trait method's, and both functions are private (rustdoc::private_intra_doc_links).
The names stay, in code spans.

Verified: nothing yet; the next check job documents it.
2026-11-18 16:18:07 -08:00
Anees Iqbal 77e5554af0 conformance: pipeline reflection and the named options are the consumer's own
The planner ruled pipeline reflection and options the consumer's: rt's API has no reflection
item and acts on no pipeline option, and its consumer builds reflection from the library's AIR
(the host never sees the options or the reflection pointer).

- known_gaps: ConsumerObject::PipelineReflection, the closed list's fifth object. Its name lists
  MTLComputePipelineReflection, MTLRenderPipelineReflection and the four options one by one
  (FailOnBinaryArchiveMiss, ArgumentInfo, BufferTypeInfo, BindingInfo), as the ruling asks.
- rt_side answers the consumer's own for compute_pipeline_bindings,
  compute_pipeline_under_options, render_pipeline_under_options,
  compute_pipeline_reflection_under and pipeline_both_paths' compute forms, only for an options
  word within the three named bits. A word with any other bit stays the call's Unavailable, so an
  option the reason does not name is never counted the consumer's. Both-paths' render, tile and
  mesh forms stay Unavailable.
- rt's README: the object in "What the consumer implements", and the contract line beside each
  "without reflection" line of the compute and render pipeline sections.
- tests: only_the_named_pipeline_options_are_the_consumer_s_own; the README and reasons tests
  cover the fifth object through ConsumerObject::ALL.

Verified: nothing yet; the step-2 check job compiles and tests it.
2026-11-18 16:18:07 -08:00
Anees Iqbal 488180f7bf conformance: the rt side makes heaps as rt's consumer does; MTLHeap's own calls are the consumer's
R3 (job 48327) refused 117 rows at "heap", most of them cases that go on to ask the heap's own
getters. The heap calls now answer as follows:
- Side::heap takes a block of the heap's size and storage, as rt's consumer makes a heap. rt
  has no heap object; its blocks are the memory the consumer places resources in.
- heap_buffer places a placement heap's buffer at its offset in that block (Device::new_buffer,
  not zeroed, as heap memory is not). That is rt's own answer.
- An automatic heap's suballocation, and a heap buffer with no offset, answer TheConsumers.
- heap_own_facts, heap_max_available_size, set_heap_label and heap_purgeable_state answer
  TheConsumers.
"MTLHeap and its getters" is one of the planner's closed objects of the consumer's own, named
in rt's README.

rt_side/work.rs's heap maker is now heap_of, which both callers share.

Verified: nothing yet; the next check job compiles it.
2026-11-18 16:18:06 -08:00
Anees Iqbal f98a38eda1 conformance: the consumer's own reason takes the planner's closed list of objects, counted apart
The planner approved the third reason with conditions (11-18), and this commit applies them:
- The object is one of a closed list, ConsumerObject: the render pass descriptor's read-back,
  MTLHeap and its getters, the encoder's dispatchType, and MTLTexture's cpuCacheMode,
  hazardTrackingMode and allowGPUOptimizedContents. A row naming any other object fails to
  parse. Adding a variant is the planner's ruling.
- A row takes the reason only where rt's public API has no item that could answer it. The
  device's size and alignment of a resource in a heap stays rt's.
- rt's README names each object as the consumer's, in a new section "What the consumer
  implements", and a test holds the two together.
- The count prints on a line of its own, outside the cutover's count.

Verified: nothing yet; the next check job runs the conformance tests.
2026-11-18 16:18:06 -08:00
Anees Iqbal 13997a4888 conformance: the ledger's third typed reason, "the consumer's own (<object>)", counted apart
Some Metal objects and getters have no rt counterpart by design: rt's RenderPassDescriptor is
a value its consumer fills, its memory blocks are no MTLHeap, and an encoder keeps no
dispatchType getter. A row for one of those now states it as a typed reason,
Reason::TheConsumers { object }, under the head "refused: the consumer's own (<object>)".
The replay's count line prints those rows apart, by object. This is the third reason beside not
built yet and no stream uses it yet. It is written ahead of the planner's ruling, at main's ask,
so a yes lands without rework. No row states it yet.

The reasons test parses one such row, counts it on the line, and refuses the head with no object.

Verified: nothing yet; the next check job runs the conformance tests.
2026-11-18 16:18:06 -08:00
Anees Iqbal b62863b786 conformance: every draw-forms case declares device-point-size, a static note of its state
The family's vertex function, icb_merged_vertex, writes [[point_size]]. A device whose largest
point is below Metal's notes that, and the cases declared the notice only where they draw
points: the old runtime announces it at a draw of points. rt's render state carries it as a
static note of the state, whatever primitive the draw takes, as rule 1 asks. So on rt,
render-draw-forms-lines announced it with every draw site matching Metal (R3, job 48327), and
its notices site diverged as undeclared.

Every case of the family now declares it. The family test holds each to the declaration and to
its count. On the old runtime, the triangles and lines declarations never fire, which counts
and fails nothing.

Verified: the lines case's divergence in 48327; the next check job runs the family test and
the slice.
2026-11-18 16:18:06 -08:00
Anees Iqbal 67fd507159 conformance: the rt side answers a render pass descriptor's read-back as the consumer's own
pass_descriptor_facts (357 rows in R2b, job 48281) asks what Metal's MTLRenderPassDescriptor
answers of its fields after a sequence of setters. rt has no descriptor object: its
RenderPassDescriptor is a value its consumer fills. The call now answers TheConsumers, saying
so, in place of Unavailable. The read-back is one of the planner's closed list of objects of the
consumer's own (Reason::TheConsumers) and is named in rt's README. Its rows wait for that
reason's landing.

Verified: nothing yet; the next check job compiles it.
2026-11-18 16:18:06 -08:00
Anees Iqbal d9adf23f72 conformance: rt_side/work.rs names the blocks a buffer or heap holds alive
Made::Buffer and Made::Heap held their blocks in tuple fields that nothing reads, which rustc's
dead-code lint names. They are now named fields, _blocks and _block, beside the buffer and the
range the steps read.

Verified: nothing yet; the next check job's clippy covers it.
2026-11-18 16:18:06 -08:00
Anees Iqbal 8578f925ce conformance: the rt side reads back the textures it makes; three getters are the consumer's
BufferTextureFacts' cpuCacheMode, hazardTrackingMode and allowGPUOptimizedContents are now
each the Value a side recorded, not a bare integer or bool. The Metal side and the old runtime's
side record what they read, as before, so the sites keep the same names and values. The rt side
records its refusal at those three sites alone: TheConsumers, the planner's closed object for
the three texture descriptor fields. rt's TextureDescriptor states none of them, and its README
names them as the consumer's.

With that, the rt side answers two calls through rt:
- queried_texture_facts (201 rows refused in R2b, job 48281): Device::new_texture of the query,
  read back from its descriptor;
- buffer_texture (23 rows): Buffer::new_texture on a buffer of the request's length and storage,
  made as rt_side/work.rs makes one (buffer_of).

Verified: nothing yet; the next check job compiles it on Linux. metal_side.rs, which compiles on
macOS alone, changes three field expressions and needs a macOS build.
2026-11-18 16:18:06 -08:00
Anees Iqbal 80c0e1d72a conformance: the rt side's render target over a buffer is the buffer's texture
A render case's target over a buffer (TargetSpec::over_buffer) answered Unavailable
(newTextureWithDescriptor:offset:bytesPerRow:, 12 rows in R2b, job 48281). It is now the buffer's
Buffer::new_texture of one level of 2D, at the next texture index where a shader reaches it. As
the old runtime's side makes it, the storage is the buffer's, and a stride that would end Metal's
process is refused before anything is made.

Verified: nothing yet; the next check job compiles it.
2026-11-18 16:18:06 -08:00
Anees Iqbal 99ddc603f6 conformance: the rt side runs copy-and-fill programs (Side::work)
rt_side/work.rs runs a Work program on rt as runtime_work.rs runs it on the old runtime. The
resources are made in order. The steps go into one blit encoder at a time, and the reads are
answered after a bounded wait. R2b (48281) refused 253 rows at "work". The previous commit
names this module, which lands here.

The side is rt's consumer and places memory itself:
- a buffer takes a block of its own, zeroed as newBufferWithLength: is;
- a Managed buffer takes a Shared block for its bytes, plus a Private block for the device's
  copy where the device keeps one;
- a placement heap is a block of its storage, and its buffers (not zeroed, as Metal's are not)
  and textures are placed in it.
A texture a shader reaches takes the next texture index.

The steps rt has no counterpart of answer Unavailable with their Metal call:
- the two fills, which are Apple SPI with carried Metal answers;
- the whole-texture and slice copies;
- generateMipmapsForTexture: and the two optimize calls;
- synchronizeTexture:slice:level:;
- a copy with a depth, stencil or PVRTC blit option.
A heap of Managed or Memoryless storage and a Memoryless buffer are unavailable too. Metal
makes neither.

Verified: nothing yet; the next check job compiles it and runs the whole set.
2026-11-18 16:18:05 -08:00
Anees Iqbal 6be9bce5ba conformance: the rt side makes whole texture requests and answers the texture queries it has
The rt side answers through rt's own calls:
- Side::texture: Device::new_texture, Buffer::new_texture or Texture::new_texture_view, each at
  the next texture index where a shader reaches the texture, then the request's uploads. R2b
  (48281) refused 198 rows of 143 cases at "texture".
- read_texture_over (62 rows).
- heap_texture_size_and_align (850 rows).
- makes_texture (500 rows).
- minimum_linear_texture_alignment (16 rows).

rt's descriptor has no allowGPUOptimizedContents. The flag permits a device layout and leaves
the texels Metal answers unchanged, so the request's flag asks rt nothing. A view with a
swizzle other than the identity stays unavailable, because rt's view call takes none.

makes_texture answers true for a texture made. Every rt error is recorded as our failure, because
none of rt's texture errors is one Metal answers nil for. The query descriptor states each field
as the query does, zeros included.

RtDevice::texture_index is the one rule for which textures take an index: shader read or write,
or no bit, which rt takes as every usage.

Verified: nothing yet; the next check job compiles it and runs the whole set.
2026-11-18 16:18:05 -08:00