Commit Graph
6966 Commits
Author SHA1 Message Date
Anees Iqbal cfcb9a82d5 rt test: the clamp device test lends its device's name; the rule's doc names no private item
The clamp device test of e75e9e7f4b passed the device's name by value where finished takes a
borrow (a compile error under --cfg m2v_gpu, job 49121), and lod_clamps_read_alike's doc linked
the private LAST_WORD_LEVEL (rustdoc's private-intra-doc-links, same job). Verified in the job
named in the landing message.
2026-11-18 18:05:44 -08:00
Anees Iqbal 59bb3634d1 rt: the compute encoder takes setStageInRegion:, which changes nothing it dispatches
glbench's streams call setStageInRegion: 158,349 times (780M) and 300,832 times (3090), every call
on an encoder whose kernel has no stage-in argument; neither stream makes a compute state with one
(replay's census over 204 and 148 states). Metal's region is what a kernel's [[stage_in]] argument
fetches by, and rt refuses a kernel with one at its state's creation (Gap::KernelInput,
pipeline.rs), so no state the encoder dispatches reads the region: `set_stage_in_region` accepts
it and changes nothing, as a kernel without the argument ignores it on Metal. No stage-in fetch is
built; the refusal stays.

Test: the sampling device test sets a stage-in region before its dispatch and checks the samples
as before. README and the signature table updated. Verified in the job named in the landing
message.
2026-11-18 18:05:44 -08:00
Anees Iqbal b7ef04ae97 rt: a sampler state binds with LOD clamps that read as its own; others are Gap::LodClamps
The replay streams bind sampler states with Metal's bind-time LOD clamps
(`setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:`): web3d on the 780M makes 2,635
such calls and on the 3090 2,627, every one over a state made with clamps (0, FLT_MAX), half of
them binding (0, FLT_MAX) and half (0, 1000); glbench makes none (replay's census). rt had no
such form, so the player skipped and counted the second kind.

A sample's level is clamped into the clamps and then to the texture's levels, at most 14 (Metal's
largest textures have 15 levels), and a level below 0 is level 0. So two clamps read alike where
each bound held to [0, 15] (the translator's LAST_WORD_LEVEL) is equal: in Metal's sampler, in
the device sampler `vk_sampler` makes (Vulkan clamps into [minLod, maxLod] and then to the view's
levels) and in the sampler word. The translator states the rule
(`metal::sampler::lod_clamps_read_alike`); rt's compute encoder (`set_sampler_state_with_lod_clamps`)
and render encoder (`set_vertex_sampler_state_with_lod_clamps`,
`set_fragment_sampler_state_with_lod_clamps`) bind the state as it is where the clamps read as
its own, which covers every call the streams make at no cost, and refuse others as the new
`Gap::LodClamps`, binding nothing (no stream makes one; a variant or a shader clamp is built when
one does). Each range form is a loop of its single form.

Tests: the translator's unit test pins the rule (1000 and infinity over FLT_MAX, -1 over 0 alike;
14, a raised lower bound and NaN not) and that every alike pair gives the descriptor's word, query
level and device lods; a device test binds on the three forms and gets the gap on each; the
sampling test binds its state with (0, 1000) and checks its samples as before. REFUSALS.md
regenerated; the signature and surface tables take the new items. Verified in the job named in the
landing message.
2026-11-18 18:05:44 -08:00
Anees Iqbal 39f60107ec 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 18:03:25 -08:00
Anees Iqbal 6b72ac4b7b rt: the compute tests' interface states no storage reads
The device tests' kernel interface literal gains the field 687e953492 added; lavapipe's
build of the device tests (49126) stopped on it.
2026-11-18 18:02:34 -08:00
Anees Iqbal aab68d6253 rt: a read_write slot a function only reads is the swizzled-texture gap too
The gap was found from the slot's hazard access, which the translator gives by use: a
read_write slot the function only reads is a read there, so a swizzled view bound to it
passed the check and its read answered the texel unswizzled. The device test caught it on
lavapipe (49090: the read_write read of the view returned no gap).

The translator now states the declared side: TextureSlot::storage, true where the function
declares the slot write or read_write and so reaches a storage image, whose view maps each
channel to itself. rt keeps the slots read through one (storage with a read) for kernels
and for draws, and the gap is found from that list. The cache encoding carries the field
(ARTIFACT_FORMAT_VERSION 540); api_signatures gains the field; REFUSALS regenerated.

Verified: to follow in the build, tests and touched stages.
2026-11-18 18:02:34 -08:00
Anees Iqbal 670dd580ca rt tests: the depth draw's instruction count adds the setters alone
Main asked what the changing arm's extra is made of. A fourth arm calls
set_depth_stencil_state and set_depth_bias as often with no draw between, so
the changing arm less the set-once arm and the setters is what a draw records
of the changed state: ten dynamic-state commands for the depth-stencil state
(depth test, write, compare op, stencil test enable, and each face's stencil
op, compare mask and write mask) and two for the bias and its enable.
2026-11-18 18:02:34 -08:00
Anees Iqbal 2012b832c0 rt: a read_write slot bound to a swizzled texture is a typed gap at the bind
Apple defines the swizzle for reads and samples. A write through a swizzled
view, and a render pass into one, store the texels unswizzled: Metal's
documented answer, so that half leaves the README's known gap. A read() of an
access::read_write slot reads through the texture's storage element, which
maps each channel to itself as Vulkan requires of a storage image
(VUID-VkWriteDescriptorSet-descriptorType-00336), and would answer the texel
unswizzled where Metal reads it through the swizzle: a wrong answer, which no
static note covers.

Such a draw or dispatch is now Gap::SwizzledReadWrite { slot }, found with the
bind-time facts (the draw's Facts::find, the dispatch's alignment check), so
the test runs once per pipeline-state or binding change and only for the
translated interface's read-write texture slots. The players count it as they
count every gap.

Test (tests/swizzle.rs, on devices, the owned fixture rrp_swizzled_storage):
an access::read read through a [B,G,R,1] view of (10,20,30,40) answers
(30,20,10,255); an access::write write through it stores (0.2,0.4,0.6,0.8)
unswizzled at each texel; the read_write kernel bound to the view is
Gap::SwizzledReadWrite { slot: 0 } and over the texture itself reads its
texel.
2026-11-18 18:02:34 -08:00
Anees Iqbal 1440a93e6c rt: swizzled texture views, the view's swizzle over its parent's
newTextureViewWithPixelFormat:textureType:levels:slices:swizzle: is
Texture::new_texture_view_with_swizzle. The view's swizzle combines with the
parent's as Apple states it (each channel the view takes from red, green, blue
or alpha is the parent's as the parent's swizzle reads it; Apple's example
[R,G,A,B] over [R,1,1,G] is [R,1,G,1]), so a view of a swizzled texture is
built too and TextureViewKind::Swizzle goes. The view's descriptor holds the
combined swizzle and its resource ID that swizzle's TextureWord.

Metal takes the call whatever the parent's usage: glbench-780m-r1's 128
non-identity views are of textures of shader-write, and most of render-target,
usage. A view takes its descriptor's checks but the swizzle-with-writes
refusal, which Metal makes of a texture's own descriptor alone (prepare's
checks split into checked()). The sampled element takes the combined swizzle;
the storage element and attachment views map each channel to itself, as
Vulkan requires (VUID-VkWriteDescriptorSet-descriptorType-00336, the rendering
attachments' identity VUIDs). A read of an access::read_write texture and a
write through such a view therefore reach the texels unswizzled where Metal
swizzles them (and, recorded by swizzled-storage-*, undoes the swizzle on
writes): a known gap in the README.

The rt player maps the selector and its resourceIndex form; the conformance
rt side makes the requested swizzled views instead of answering unavailable.

Tests: the combination (Apple's example, identity on either side, constants,
a rotation twice); on devices, a view's descriptor and word for Apple's
example, a view without a swizzle keeping the parent's, and a swizzled view of
a shader-write, render-target texture made.
2026-11-18 18:02:34 -08:00
Anees Iqbal 678895d00b rt tests: the depth draw's instruction count adds a depth test set once beside the changing one
The count compared the draw path with no depth attachment against draws that set a depth-stencil
state and a bias before each draw, which counts the setters too. A third arm sets the state once,
so the depth path's own cost a draw reads beside the current draw path's.
2026-11-18 18:02:34 -08:00
Anees Iqbal cdb55a3b16 replay: the rt player maps setViewports:count:, setScissorRects:count: and setDepthClipModeSPI:
glbench's recordings set their one viewport and scissor rectangle through the list calls (36,051
and 76,107 of each) and the depth clip mode through setDepthClipModeSPI: (65,318 and 125,276
calls; selcensus, m3-max-48834 and 48836). Each list element maps as the one-element call does,
through two helpers, to the encoder's set_viewports and set_scissor_rects; the SPI selector as
setDepthClipMode:.
2026-11-18 18:02:34 -08:00
Anees Iqbal 9c40b3cd83 rt: depth tests, writes and bias as dynamic state, under static notes; an unknown store action stores
The render-state lane's depth step (the planner's step 1).

- A depth-stencil state's depth test, write and compare operation are dynamic state, recorded
  where they changed; DrawKind::DepthTest is gone. A pipeline bakes the depth format alone, so a
  change of depth-stencil state or bias makes no pipeline. In a pass without a depth attachment
  Vulkan skips the test, where Metal's documentation states no answer.
- set_depth_bias (setDepthBias:slopeScale:clamp:): the bias and slope scale as given, enabled for a
  draw of triangles where either is not zero and never for lines (Metal biases triangles alone).
  A clamp other than 0 is Gap::Draw of DepthBiasClamp (no stream sets one).
- Static notes, carried by the operation: PrecisionNote::DeviceDepthBias
  (RenderCommandEncoder::DEPTH_BIAS_NOTE: the slope measure, and a fixed-point attachment's unit,
  are the device's; Apple states neither; read from Vulkan's Depth Bias section and Apple's
  setDepthBias page), and PrecisionNote::DepthDenormals (DepthStencilState::precision_note, a state
  that tests or writes depth: every driver measured but MoltenVK on an M4 compares a denormal
  depth otherwise than Metal; RADV and ANV store one as zero). The old runtime maps DepthDenormals
  to its own depth-denormals kind and takes device-depth-bias as a note kind; codec, fast_paths,
  validation's allowance (Unbounded), API.md and ARTIFACT_FORMAT_VERSION 539 follow. No signed-depth
  note: no clear, viewport or upload gives rt a negative or NaN depth, and Vulkan leaves a depth
  past the viewport's range undefined.
- MTLStoreActionUnknown stores (Vulkan fixes the store as the rendering begins); the encoder's
  set_color_store_action, set_depth_store_action and set_stencil_store_action change nothing the
  device does and refuse a resolving action (Resolve). On a tile-based device this stores a
  target Metal would have discarded (README).
- set_triangle_fill_mode, set_depth_clip_mode, set_viewports and set_scissor_rects take Metal's
  defaults (Fill, Clip, one viewport or rectangle) as nothing and refuse the rest, typed
  (FillMode, DepthClamp, Viewports): replay found every stream at the defaults.
- The conformance rt side plays the depth bias, fill, clip and viewport-count steps and announces
  the encoder's notes; the replay player maps setDepthBias:slopeScale:clamp:, the three store
  action setters, setTriangleFillMode: and setDepthClipMode:.
- Tests: a depth attachment cleared to 0.5 with its store action unknown, tested under Less with
  writes, failing at 0.375, passing Greater by its bias alone, every mode setter's refusal, and no
  pipeline made by the state changes; the instructions a depth-tested draw retires beside a plain
  one, printed. REFUSALS.md regenerated, the API table blessed.
2026-11-18 18:02:33 -08:00
Anees Iqbal f64ddc3123 validation: the division of every pair of half values is eight cases, an eighth of the dividends each
The planner's ruling on the lavapipe leg's hang: no single command buffer on a CPU device should
need more than about a tenth of its watchdog with the host idle. The one case that divided all
2^32 pairs of half values took 7.4 to 8.9 s of lavapipe's 20.2 s alone (LP_NUM_THREADS=1, a
24-CPU host), and 20.3 s beside other jobs, past Metal's bound as the old runtime's watchdog holds
it (m3-max-48580).

The fixture's kernel now takes its dividends' base as function constant 0 and covers 8192
dividends on a 1024 x 128 grid, each by all 65536 divisors as before; the eight cases of the bases
0, 8192, ..., 57344 replace the single one, which is deleted with its observations, and the eight
are qualified on Metal (apple-m3-max-macos27.0.1). The fixture's companions are regenerated from
its source on the M3 (scripts/regen-air-fixtures). The device rows and the authored compile table
are re-blessed on development.

Done in one job on the M3: regen-air-fixtures, corpus-case-check --delete-air/--delete-name and
--install of the eight manifests, corpus-metal of each, whose output this commit holds.
2026-11-18 17:59:36 -08:00
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 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 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 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 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 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