Commit Graph
1606 Commits
Author SHA1 Message Date
Anees Iqbal aa474a944f Restore the line continuations of the subpixel snap notice's cost
`Degradation::DeviceSubpixelSnap`'s cost string (degradation.rs) continued
onto three more lines without a `\`, so the announced cost held a newline and
a 13-space indent after "grid is", after "so a pixel" and after "or left",
which every relayed notice line carried. It came in with d261d6ed46. It is
now written as its neighbours are, with `\` continuations, and reads with
single spaces.

`tests::degradation::codes_are_distinct_and_decode`, which walks every
`Degradation` kind, now also holds that no kind's name (its `Debug`), code or
cost contains two consecutive spaces, a newline or a tab. At b23d78eb50 it
fails on this cost and on no other kind; after the fix it passes (runs in the
branch report).

The runtime-sources pin moves with degradation.rs; it is re-pinned in the
stack, not here.

(cherry picked from commit fd1029d6c984a25a9aedff6a3dbb4e342ab041a2)
2026-11-05 07:39:33 -08:00
Anees Iqbal 8bc4fef06d Show a command buffer's kernel start only once its end is known
The scheduler stored a command buffer's kernel start as it began submitting
the first batch and the end as it finished the last, each in its own atomic,
so `kernel_start_time` answered a start while `kernel_end_time` still answered
0 for as long as the submission took. Metal never shows that: a Swift probe on
the M3 Max under macOS 27.0.1 read each command buffer's pair 7 to 8.5 million
times while it was committed and always saw both or neither.

`KernelTimes::start`, which `kernel_start_time` reads, now answers 0 until
the end is stored: it loads the end first (acquire) and the start only where
the end is set. The start is stored before the end on every path (the first
batch's taking, a hang's early scheduling), so a start shown means a later
read of the end sees it, and an end seen means the start shows, in either
order of the two reads. The cost is one more atomic load per
`kernel_start_time`. The scheduler's own reads of the start (whether to begin,
a hang's recovery window, the GPU times' life check) take the stored value
through the new `KernelTimes::began`.

Test: `tests::gpu_time::a_kernel_start_shows_with_its_end_alone` checks that
after `begin` and before `end_at` the start reads 0 while `began` has it, and
that once the end is stored both reads, in either order, see both. The
branch report carries its runs and its negative control (the start read
raw, as before: the test fails).

(cherry picked from commit 86701a2e00b0518e7eac3beb4740222edd3982bf)
2026-11-05 07:39:33 -08:00
Anees Iqbal c989f853d0 Expect a packed word's blend only where the pixel interlock orders fetch
The multisampled word lane's second leg withholds the four formats'
attachments, so each is rendered through its word's view. The function blends
a packed 16-bit word in the interlocked storage form, built only where the
device orders fetch through the pixel interlock alone
(`color_writes::stored_word`); elsewhere the blend is refused as the device
lacking the format, which docs/FAST-PATHS.md's known gaps record ("a blend or
partial mask on a device without the interlock, is refused as the device
lacking the format"). The lane counted every packed word's refused blend as
wrong, which holds on the RTX 5080 but not on lavapipe, which orders fetch
through rasterization-order input attachments: `A1BGR5Unorm` and
`ABGR4Unorm` at 4 samples, refused needing `R5G5B5A1_UNORM_PACK16` and
`R4G4B4A4_UNORM_PACK16` as blendable attachments.

The lane now counts the refusal as wrong only where the device's profile has
`pixel_interlock` without `rasterization_order_color_access`.

Verified on msi-laptop, lavapipe (Mesa 26.2.4), `--cfg m2v_cpu_icd`, at
7943cf6e21: the test fails with exactly those two refusals.

(cherry picked from commit 98d65ecad3f5c87623b03074760f2f3cd88668f6)
2026-11-05 07:39:33 -08:00
Anees Iqbal 45eadf2935 Allow the word lane's read note wherever its reads are the device's
The multisampled word lane reads every sample's value through its `float`
kernel (`wsm_read_f`). Off Apple's GPUs the translation records
`PrecisionNote::DeviceTexelConversion` for every such read, whatever format the
texture holds, and the lane bounds a packed field's read by that note however
the texture is held. It allowed the notice only where a packed format was held
in its word's format, which is every packed format on the RTX 5080 but none on
lavapipe, which renders `A1BGR5Unorm` and `ABGR4Unorm` itself: there the first
leg announced `device-texel-conversion` past the allowed kinds. The blend's
failure (the commit before) hid it.

The lane now allows the notice on every leg where the device's texture unit is
not Metal's (`VkProperty::MetalSampler`), and no longer only for a packed word.

Verified on msi-laptop, lavapipe (Mesa 26.2.4), `--cfg m2v_cpu_icd`, at
5a4a8ca8fc: the test fails at degrade_notices.rs:409, "announced past [...]:
[DeviceTexelConversion]", its answers all within their bounds.

(cherry picked from commit 7943cf6e21e7e119d2dd203f43207c032ba1d9d3)
2026-11-05 07:39:33 -08:00
Anees Iqbal be34c40f1d Bound a packed blend by the code its sample was stored at
The multisampled word lane compares each blended sample of a format the
device renders itself with Metal's within one code. The blend reads the
sample the device's fill stored, which the lane already accepts a code from
Metal's (the device's conversion, `device-color-conversion`), and the device
blends over that code by its own arithmetic, so the two native differences add.
On lavapipe (Mesa 26.2.4, LLVM 23.1.1) `A1BGR5Unorm` at 4 samples, pixel 12:
the fill stored 0x9ea1 where Metal stored 0x9e61 (green 26 against 25), and
source-over at alpha 0.102 stored 0x9ea5 against Metal's 0x9e23 (green 26
against 24, blue 18 against 17); the exact blend over the device's own sample
is green 25.31, blue 17.44, so the device's blend is itself within a code.

The lane now allows a blended sample one code more for each code its stored
sample lies from Metal's (none on the word path, whose fill is exact).
`PrecisionNote::DeviceColorConversion`, `Degradation::DeviceColorConversion`
and docs/API.md's catalogue record the measured lavapipe bound: within 2
codes over a sample stored a code from Metal's.

Verified on msi-laptop, lavapipe (Mesa 26.2.4), `--cfg m2v_cpu_icd`: at
b23d78eb50 `multisampled_word_formats_store_read_resolve_and_blend_as_metal`
fails on that one sample (word 0x9ea5 against Metal's 0x9e23), every other
blended sample within one code; the words above came from a scratch
diagnostic run (not committed).

(cherry picked from commit 5a4a8ca8fc297b03f19b39cf675eee1ada29742c)
2026-11-05 07:39:32 -08:00
Anees Iqbal 58a4bbc053 Count a triangle's edges the driver's ties and snap leave unchecked
The wide-lines lane leaves a case unchecked where the driver lacks
`DriverFact::LineTiesAreMetals` or `DriverFact::SubpixelSnapIsMetals` and the
case announces `device-line-ties` or `device-subpixel-snap`, and its case
total subtracts those. Its edges' total did not: `edges_matched + biased ==
edges` held only where no edges case was left unchecked. On lavapipe (Mesa
26.2.4, LLVM 23.1.1) under `DevicePolicy::exact_answers()` the band draws every
edges case, three of them with a vertex half a step off the subpixel grid, so
`wide_lines_draw_metal_s_parallelograms_under_exact_answers` failed 28 against
31 at b23d78eb50 though every case was Metal's or announced.

`Found` now counts the edges cases among the ties and the snaps
(`edges_unchecked`), and both parallelogram tests' edge equations add them.

Verified on msi-laptop, lavapipe (Mesa 26.2.4), `--cfg m2v_cpu_icd`: at
b23d78eb50 the exact-answers test fails (left 28, right 31: edges 31,
edges_matched 25, biased 3); see the fix's own run in the branch report.

(cherry picked from commit aeb15efde5e91ba5c41a1a00550eda43de13c580)
2026-11-05 07:39:32 -08:00
Anees Iqbal 52969c03d7 Re-bless the authored compile census at stack 30's build
The census on the stack 30 tree (corpus-triage --audit authored-compile, 2262 cases, 47502 cells) found no
failed cell, no difference and no regression: 46395 compiled, 1107 refused, 327 uncovered. No cell's
SPIR-V digest moved (moved_artifacts=0); --bless wrote the table's product stamp at this build.

Verified: the audit ran on the M3 (potluck) with the main checkout's private corpus; failed=0,
differences=0, regressions=0, blessed=true.
2026-11-05 06:50:31 -08:00
Anees Iqbal 37d72e04b8 Re-record the conformance costs at stack 30's tree
The stack's runtime changes move counts across the suite: the host step compares a state's used
resources and decodes its records in place, and finds a token-ordered state's heap members
searching forward. The moved fields are the scheduler's passes, sleeps and wakes and the object
churn (buffers and images destroyed and evicted). A whole-set run (`conformance cost --runs 8
--write`) then a run of each changed case alone (`cost --runs 8 --alone --write`, 563 cases)
re-recorded them on the Apple M3 Max.

Verified: both runs exited 0 on the M3 (potluck); the conformance suite and
`conformance cost --check` rerun on this tree.
2026-11-05 06:42:46 -08:00
Anees Iqbal 72e622c76e Pin the runtime sources at RUNTIME_VERSION 1769
The pin covers the host step's in-place comparison and decoding, and PrecisionNote::NativeMinMax's and its degradation's new bound text. Computed with pin-compute over this tree.
2026-11-05 06:07:16 -08:00
Anees Iqbal a1cc7baf20 Bump RUNTIME_VERSION to 1769: a host step compares and decodes its records in place, the RTX 5080 lane's last test fixes
- A host step compares a state's used resources listed in token order with a shape's in place, names
  its render and compute states beside the records it read, finds a token-ordered state's heap
  members searching forward from the last one's entries, and decodes its records in place through
  RecordView::record_into (new public item).
- PrecisionNote::NativeMinMax's bound text covers a minimum that keeps denormals while the device's
  arithmetic flushes them (doc text; no behaviour change).
- The lanes' test fixes: line_widths counts ties and snaps among its edges, float_denormals checks the
  fast-math select as the device's NMin, property_reads requires no least kernel span,
  dispatch_executions counts only the commands' own barriers, draw_work counts its later draws
  exactly.
No public item removed.

Verified: the cherry-picked commits carry their own evidence; this stack's gate runs on the tree.
2026-11-05 06:07:10 -08:00
Anees Iqbal a4137e6d1c Count draw_work's later draws from the first draw's end: the first counts its carried shape as reused
4c456996a9's invariant, again + every_step == DRAWS - 1, failed on the RTX 5080 Laptop GPU and
lavapipe, 3 runs and 2 out of 3 and 2: drawn again 7, every step 9. A scratch print of each draw's
counts showed why. The first draw finds its shape where the earlier encoder's draw (make) left it,
and it counts in draw_shapes_carried and in draw_shapes_reused alike. In order, the 15 later draws
went: two take every step, then drawn again and every step in turn. That is 8 every step (each
draw_shapes_reused 1) and 7 drawn again (each counted in draws_as_before at the next call). Their
set_zero_sets_reused is 0 on both pushing devices.

The draws-again count, the shape-reuse count and set_zero_sets_reused are now read from the first
draw's end to the encoder's end, so the first draw's own carried shape is out of them. Every
invariant is unchanged:
- again + every_step == DRAWS - 1.
- set_zero_sets_reused == every_step where the device binds set 0, and 0 where it pushes.
- The first draw counts no set_zero_sets_reused: the old whole-window sum passed on the M3.
- The pushed and residual counts stay whole-window.

Verified: cargo fmt. The 5080, lavapipe and M3 runs follow.
(cherry picked from commit ecce59504d1d5290e750a5f2f0a3a00843a77acd)
2026-11-05 06:06:02 -08:00
Anees Iqbal d669cb109e Count draw_work's later draws as drawn again or every step, exactly, on a device that pushes set 0
draws_of_an_unchanged_state_record_its_commands_once failed on the RTX 5080 Laptop GPU, 3 runs out
of 3 at d22cc52d0c (draw_work.rs:1284, left 7, right 0), and on lavapipe. Both push set 0. The M3
never takes that branch: MoltenVK carries RuntimeDriverDefect::PushedBufferSizesUnset, so pushes()
is false both ways.

db2bdfbe95 (draw an encoder's last draw again) added draws_as_before to the reused count. It left
the pushing expectation at 0, but a draw again of a pushing draw counts in draws_as_before as well.
In a build with debug assertions the first draw again of a kept draw, and every second one after
it, takes every step (render/draw_again.rs). So 7 of the 15 later draws are drawn again there, and
all 15 in a release build. A scratch print on both devices at d22cc52d0c showed: pushes true,
draws_pushing_set_zero 16, set_zero_sets_reused 0, draws_as_before 7, draws_rebound 0, residual 0,
the first draw recording 19 state commands and the later ones 0.

The test now uses exact invariants that hold in debug and release builds alike:
- Each later draw is drawn again (draws_as_before) or takes every step and finds the first's shape
  in its encoder's memo (draw_shapes_reused, which a draw again never counts):
  again + every_step == DRAWS - 1.
- Where the device binds set 0, each draw that takes every step binds the set its last draw wrote:
  set_zero_sets_reused == every_step.
- Where it pushes set 0, no set is bound: set_zero_sets_reused == 0.
- The pushed count (DRAWS where pushing, 0 elsewhere) and the state-command checks are unchanged.

The validation crate's test only. Verified: cargo fmt. The 5080, lavapipe and M3 runs follow.

(cherry picked from commit 0c55cbb35a37737828010a54d776060bcb66b7f4)
2026-11-05 06:06:02 -08:00
Anees Iqbal b1dc83c9ff Count only the commands' own barriers in dispatch_executions: a queue's kept barrier buffers record once
Two dispatch_executions tests failed on the RTX 5080 Laptop GPU, 3 runs out of 3 at d22cc52d0c
(development 58aca59d68 with this branch):
- each_command_runs_its_own_state_and_group_count counted [14, 3] barriers for the serial and
  concurrent encoders: a difference of 11 where 7 was expected.
- a_barrier_set_after_the_commit_records_the_commands_again counted [8, 13] where the second had
  to be at least 8 + 7.
The first fails on lavapipe too, [12, 3].

The tests count WorkCounts::commands_recorded.cmd_pipeline_barrier, a device-wide count. A trace
of every vkCmdPipelineBarrier, with its command buffer and caller (a scratch build, not committed)
shows what the extra barriers are. The execution's own command buffer records the same barriers on
every device:
- the serial encoder: its segment barrier, the preprocess barrier, 7 between-dispatch barriers
  (dispatch_execute::record) and the end_segment barrier, 10 in all;
- the concurrent encoder: 3.

On the 5080 the serial window also held 4 more barriers, each in a command buffer of its own:
KeptBarriers::take, from CommandBufferShared::barrier_buffer, called by scheduler::submit_ready
and submit_plain_ready. A VkQueue whose command buffers do not end at a fence (every one but
MoltenVK's) records each list of a batch's barriers once, at its first use, and later batches
submit the same command buffer again (command_buffer/kept_barriers.rs). So the first execution on
the queue counted them, and the next of the same shape, the concurrent one, recorded none. In the
barrier-set test, the unset run's window held 5 such first recordings, so it counted 3 + 5. The
set run, which records the commands again (3 at the commit, 10 in the re-record), counted 13. On
lavapipe the first windows held 2. On MoltenVK no list is kept, so each batch records its barriers
every time, the same in both windows. So the M3 passed.

The tests now count only the commands' and their encoders' own barriers:
- each_command runs both encoders twice and counts the second pass.
- The barrier-set test runs an unset execution first, uncounted.
- Every counted window requires that the scheduler recorded no barrier command buffer to keep:
  WorkCounts::barrier_buffers_kept plus stamped_buffers_kept did not grow (none_kept_since). So a
  first recording that lands in a counted window again fails the test by name, and the barriers
  counted cannot include one.
- The assertions are unchanged: the serial encoder takes COMMANDS - 1 barriers more than the
  concurrent one, and the set run at least COMMANDS - 1 more than the unset one.

Verified: cargo fmt; the trace above, on the 5080 and lavapipe at d22cc52d0c. The runs of the
fixed tests follow.

(cherry picked from commit bd278807f6dfcf8b3f79edd5400911c4c0502aa0)
2026-11-05 06:06:01 -08:00
Anees Iqbal 77c5393bc8 Require no least kernel span in property_reads: Metal's own span for its command buffer is a few ms at most
property_reads_wait_for_no_submission_and_no_busy_work required a span of at least 40 ms from the
command buffer's kernelStartTime to its kernelEndTime. To get there it doubled the blit encoder's
fills, up to 2^20. On the RTX 5080 Laptop GPU, 2^20 fills spanned 216.6 us (9bbba05537) and the
test failed. Lavapipe fails the same way: 54 us at d22cc52d0c.

Both times are host times of the scheduler's submission to Vulkan (CommandBuffer::kernel_start_time,
kernel_end_time), as Metal's are of the CPU's scheduling.
- On MoltenVK the span grows with the fills, because vkQueueSubmit encodes the Metal commands.
- On a native driver the commands are recorded at encoding, and the submission is the
  vkQueueSubmit alone.
- 89a11b2bf4 tried to lengthen the span by holding the command buffer with a GPU spin released
  40 ms after its kernel start. A spin on the GPU cannot lengthen a host-side submission span.
  Stack 29 reverted it (9832e5651b).

Metal's own span, measured on the M3 Max (macOS 27.0.1) with this command buffer's shape (a
throwaway probe: N 4-byte fills of distinct words, alone and behind spin busy work released by the
host, 3 rounds):
- Behind the busy work: 0.04 to 1.8 ms for 2^12 to 2^20 fills.
- Alone: at most 12.7 ms, for 2^20 fills.
- The kernel end was read within 2 ms of the commit while the busy work ran 100 to 300 ms more.
- Metal never shows a start without an end: none of its 7.0 to 8.5 million reads per command
  buffer saw a kernel start with no kernel end.

So the 40 ms floor was the test's error, not something Metal does. The test now requires no least
span.

What changed:
- Each command buffer encodes 2^12 fills.
- The structural claim stays: reads of both threads land inside the submission, between a read
  kernel start and no kernel end yet, which a read that waited for the submission never does.
  Each command buffer's reads are still at most one in a thousand slow.
- The submission is now as short as 0.05 ms on the 5080 and lavapipe. A reading thread
  descheduled through it sees nothing inside, so the test commits up to 8 command buffers (ROUNDS),
  each once the last one's work completed, and passes at the first whose submission both threads
  read inside.
- The 5080 and lavapipe runs at d22cc52d0c had 490 to 980 reads of each thread inside a single
  submission. The M3's runtime span is 3 ms, with 13,000 to 37,000 inside.

The module docs state the Metal measurement. Not a GPU-time test: no assertion bounds GPU time.

Verified: cargo fmt. The 5080 c entry, the M3 run and the lavapipe run follow.
(cherry picked from commit 9e70896fc09a19a09c4bd2294e951388b9a68739)
2026-11-05 06:06:01 -08:00
Anees Iqbal b795292599 Check float_denormals' fast-math select as the minimum it is: the device's NMin, noted NativeMinMax
float_denormals_read_as_metal_reads_them failed on the RTX 5080 Laptop GPU, 3 runs out of 3 at
d22cc52d0c (development 58aca59d68 with this branch). In
nan-model-float-denormals-per-operation-under-fast-math, 15 lanes of word 45 differed from Metal:
the device answered the smaller denormal by value where Metal answered the second operand, for
example (2^-149, 3 * 2^-149) -> 2^-149 against Metal's 3 * 2^-149.

Word 45 is `a < b ? a : b`. In nan_denormals it is an fcmp and a select, which the test still
checks: 0 of the probe's 3840 checked words differ on the 5080. Under fast math, Metal's compiler
makes it `llvm.minnum.f32` (nan_denormals_fast.ll). The translator lowers that as Metal's `fmin`
(refine_float: MinNum -> FloatFn::Min), which is the device's NMin. On a profile without
DriverDeviation::MetalMinMax (every driver but MoltenVK) NMin is noted PrecisionNote::NativeMinMax,
and rule 1 makes min and max the device's own. Word 42, fmin(a, b), is that same NMin, and the
test checks it in neither probe. On the 5080, 15 lanes of word 42 differ in both probes, the same
count as word 45 under fast math. So the test held a minimum to the compare-and-select's answer.

The fix is structural:
- Each probe now says whether its select is a minimum function.
- Under fast math, word 45 is checked only where the profile takes MetalMinMax. The M3 does
  (MoltenVK), so it still checks the word there.
- Elsewhere the test requires that the stage records NativeMinMax, so the difference left
  unchecked is always announced.
- Every other checked word is unchanged.

NativeMinMax's recorded bound said a denormal is compared by its value "where the device keeps
denormals". On the 5080 the arithmetic flushes them as Metal's does (MetalFloatDenormals is taken,
and its checked words match Metal), while its NMin keeps them. So the bound now reads "where the
device's NMin and NMax keep denormals, whether or not its arithmetic flushes them", in the
runtime's Degradation docs and the translator's PrecisionNote docs. No note condition changes: the
note sets on the M3, lavapipe and the 5080 stay as they were.

Verified: cargo fmt. The 5080 run of the fixed test is a b5080 c entry that follows.
(cherry picked from commit e964a4b92f5a71f6a5b28ba1c43324497aeb102a)
2026-11-05 06:06:01 -08:00
Anees Iqbal 296e5a3a70 Count line_widths' edge cases left unchecked as ties or snaps among its edges
wide_lines_draw_metal_s_parallelograms_under_exact_answers failed on the
RTX 5080 Laptop GPU (b5080 nvlane-fin-lane3 at 9bbba05537) and on
lavapipe (nvlane-fin-lvp, Mesa 26.2.4) alike: "Found { cases: 148,
edges: 31, matched: 112, edges_matched: 25, biased: 3, ties: 17,
snaps: 16, ... }", edges_matched + biased = 28 against edges = 31. The
test holds every case of a triangle's edges to matched or biased, but
a5e1d20bd9 and 492738ba55 leave a case unchecked where it announced the
driver's line ties or the band's subpixel snap (a vertex half a step
off the grid), edges among them, and the count did not take those. The
default-policy twin holds the same count only where nothing announced
device-wide-lines, which the 5080 and lavapipe both announce, so it
passed there.

Found::edges_unchecked counts the edge cases left unchecked either way,
and both tests hold edges_matched + biased + edges_unchecked to edges.
On MoltenVK on the M3 Max nothing is left unchecked, so its count is as
before.

Verified: cargo fmt. The 5080 and lavapipe reruns are in the next
entry.

(cherry picked from commit 2e809a4ae85cfce2c1d4a2fc68b0a946ecbea16d)
2026-11-05 06:06:01 -08:00
Anees Iqbal 40a1558ff6 Decode a host step's records in place, through RecordView::record_into
A host step decoded each record (CommandRecord::decode: a record made, then moved out of its
Result, its Option and the filter, and into the pair the list holds) and pushed it: about 3 KB
moved several times a record, 5001 records a frame on the replayed textured page, where the
decodes' and pushes' moves were 37 of the steps thread's _platform_memmove samples in a 6 s window
on the M3 at 43114cb72b.

RecordView::record_into (new, public) writes a record's every field over a record the caller
holds, as `*record = view.record()` leaves it; record() is it over a default record. The
runtime's reads (written_records_of, decode_written) push each record's slot first and decode
into it (push_written), dropping it to None where it does not decode or the descriptor does not
allow it, as before. API table: one line added, RecordView::record_into; nothing removed.

Verified (M3, potluck): indirect_commands::tests::records::
a_field_written_alone_is_the_record_encoded_again also writes each of its 20 000 records over the
last round's with record_into and finds it equal to decode's; the translator's indirect_commands
tests 41/41. Negative control: record_into leaving the imageblock size as the record held it
fails it (and 4 other tests that decode through record()). Timing, the replayed textured page,
against 43114cb72b, interleaved, two rounds of 3 frames: warm host_step_ms 27.8-29.9 ->
26.0-27.4, encoding to completion 58.4-61.5 -> 56.7-59.3 ms, pixels e3306dc52a1c9e86 at every
frame of both. Sampled: the reads' moves 37 -> 10 samples (2069 and 2070). The runtime's suite
1656/1656 and the residency and draw lanes 248/248 with --cfg m2v_gpu; the frame-cost lane
passes (19.39 allocations a draw, bound 20; release 7.55, bound 9). clippy -D warnings with
--cfg m2v_gpu over the translator, the runtime and validation; api_signatures blessed.

(cherry picked from commit b960f51b05a1dac33816b96fd88d04a8565ae02c)
2026-11-05 06:06:01 -08:00
Anees Iqbal 7089c6ddb8 Find a token-ordered state's heap members searching forward from the last one's entries
A heap part worked out (KeptHeap::bring_in, twice a frame on the replayed textured page: one a
render encoder, over its 5002 textures) looks up each heap member's entries among the state's used
resources twice, for the handle tables and for the heap elements. A state listed in token order
was searched by two binary searches over the whole list a member, about 20 000 entries:
member_id was 52 of the steps thread's 2146 samples in a 6 s window on the M3 at c83f120a2b.

A plan's members that name used resources ascend by token (heap::members walks the shape's map),
so UsedByToken::Listed now keeps where the last lookup's entries ended and searches forward from
there, doubling a bound and searching under it (forward), where the token lies past it; else from
the list's start, as before. Same entries, at about the distance between members.

Verified (M3, potluck): the new test
bind::heap::tests::a_state_in_token_order_finds_its_members_searching_forward passes: 4096
texture members each beside a buffer compare at most 8 entries a member for the tables and for
the elements, each answering as the state in no order does, and members in reverse order are
found alike. Negative control: the search from the list's start at every lookup fails it (the
tables' bound). The translator's heap and bind-shape tests 20/20. Timing, the replayed textured
page, against c83f120a2b, interleaved, two rounds of 3 frames: warm host_step_ms 28.1-31.2 ->
27.0-29.7, encoding to completion 60.7-68.5 -> 59.9-62.8 ms, pixels e3306dc52a1c9e86 at every
frame of both. Sampled (6 s, steps thread): member_id 52 -> 7 samples, bring_in 70 -> 28,
heap_elements 26 -> 2 (2146 and 2069 samples). The runtime's suite 1656/1656 and the residency
and draw lanes 248/248 with --cfg m2v_gpu; the frame-cost lane passes (19.38 allocations a draw,
bound 20). clippy -D warnings with --cfg m2v_gpu over the translator, the runtime and validation.

(cherry picked from commit 55d9e418c2f38125a3958add7a6a7495213f4480)
2026-11-05 06:06:01 -08:00
Anees Iqbal 259615b94d Name a host step's render and compute states beside the records it read, in place
A host step read each command's record (a CommandRecord, about 3 KB: its four stages' 32 buffer
slots) into a list, named each record's state into a second, then zipped both into a third list
of (record, state) pairs; an execution recorded apart flattened that into a fourth, and replay
moved each pair out by value. On the replayed textured page (5001 records a frame) those moves
were most of the steps thread's _platform_memmove on the M3 (106 samples of 2039 in a 6 s window
at 3a4b3e74e2: named_commands' collect 29, replay's moves by value 19, record_kept's flatten 13).

The records are now read into the list they are returned in, each beside an unnamed state
(WrittenRecords<S>), and step_states / step_render_states name each state in place; record_apart
replays the host step's list or the CPU's through one iterator of references, and replay and
resolutions take the commands by reference (the state an Arc clone, as the encoder's already
was).

Verified (M3, potluck): Timing, the replayed textured page on the M3 (5001 draws a frame), this
commit with the one before (they were measured together), against 3a4b3e74e2, interleaved, two
rounds of 3 frames: warm host_step_ms 33.7-35.3 -> 28.5-30.9, encoding to completion 66.6-70.3 ->
59.6-63.8 ms, peak resident 309-311 -> 289-291 MB, pixels e3306dc52a1c9e86 at every frame of both.
Sampled (macOS sample, 6 s, steps thread): _platform_memmove 106 -> 94 samples in a window of 32
frames -> 43 (named_commands' collect 29 -> 0, replay's moves by value 19 -> 0, record_kept's
flatten 13 -> 0; the decode's 18 and the reads' pushes 22 stay). The runtime's suite 1656/1656 with
--cfg m2v_gpu; the frame-cost lane passes (debug 19.38 allocations a draw, bound 20; release 7.55,
bound 9); the residency and draw lanes 247/248, the one other
(indirect_executions::...as_its_dispatch_17) stalled past 180 s once and passed in 4.6 s on a rerun
of its 64 shards (64/64). clippy -D warnings with --cfg m2v_gpu over the translator, the runtime and
validation.

(cherry picked from commit 63248dfbbfd5f8b97ea0edce88313dc8260f80f3)
2026-11-05 06:06:01 -08:00
Anees Iqbal dc7b3d5dae Compare a state's used resources listed in token order with a shape's in place
BindState::is_shape made the used resources' shape, a BTreeMap by token, before it compared it
with a shape's, at most once per position_of_shape. The runtime's kept_shape (GraphicsState) asks
it for each draw whose state the live bind and its recent shapes did not hold, a few times a
frame: on the replayed textured page about 20 000 used resources each time, 63 of the steps
thread's 2039 samples in a 6 s window on the M3 at 3a4b3e74e2 (kept_shape -> position_of_shape ->
is_shape and used_shape, the map's eq and free).

A consumer that lists them in token order (used_in_token_order, which the runtime sets) lies a
token's entries together, so is_shape now walks them beside the shape's map, unions each token's
entries as used_shape does (the first entry's class kept) and compares entry by entry, making
nothing. A list in no order still makes the map once.

Verified (M3, potluck): the new test
tests::bind_shape_of::a_state_listed_in_token_order_compares_its_used_resources_in_place passes:
over 13 listings (a token moved, a usage, a stage, a class, a token listed twice four ways, one
less, one more, one only) each ordered state answers has_shape as state.shape() == shape and as
the unordered state does, against every shape, and position_of_shape finds the same, with 0
allocations. Negative control: is_shape making the map for an ordered list fails it
(its "made" assertion, state 0 against shape 0).

Timing, the replayed textured page on the M3 (5001 draws a frame), this commit with the next
(they were measured together), against 3a4b3e74e2, interleaved, two rounds of 3 frames: warm
host_step_ms 33.7-35.3 -> 28.5-30.9, encoding to completion 66.6-70.3 -> 59.6-63.8 ms, peak
resident 309-311 -> 289-291 MB, pixels e3306dc52a1c9e86 at every frame of both. Sampled (macOS
sample, 6 s, steps thread): kept_shape 63 -> 15 samples, used_shape 50 -> 0. The runtime's suite
1656/1656 with --cfg m2v_gpu; the frame-cost lane passes (debug 19.38 allocations a draw, bound
20; release 7.55, bound 9); the residency and draw lanes 247/248, the one other
(indirect_executions::...as_its_dispatch_17) stalled past 180 s once and passed in 4.6 s on a
rerun of its 64 shards (64/64). clippy -D warnings with --cfg m2v_gpu over the translator, the
runtime and validation.

(cherry picked from commit 241946905eb8d5c89113d9b09fce348f4629f38e)
2026-11-05 06:06:00 -08:00
Anees Iqbal b23d78eb50 Re-bless the authored compile census at stack 29's build
The census on the stack 29 tree (corpus-triage --audit authored-compile, 2262 cases, 47502 cells) found no
failed cell, no difference and no regression: 46395 compiled, 1107 refused, 327 uncovered. 375 cells'
SPIR-V digests had moved with the stack's translation changes (heap half reads merged as half bits,
a mesh pipeline's primitive, the half-output NaN notes), every outcome class unchanged. --bless
wrote the table at this build.

Verified: the audit ran on the M3 (potluck) with the main checkout's private corpus; failed=0,
differences=0, regressions=0, blessed=true.
2026-11-05 06:01:04 -08:00
Anees Iqbal c11b1a74af Re-record the conformance costs at stack 29's tree
The stack's runtime changes move counts across the suite: one staging wait per VkQueue, the draw
path's per-plan facts and memos, the scheduler's join by resource, the RTX 5080 lane's notices and
the mesh pipelines' primitive. A whole-set run (`conformance cost --runs 8 --write`) then a run of
each changed case alone (`cost --runs 8 --alone --write`, 568 cases) re-recorded them on the Apple
M3 Max.

The gate's revert before this (9832e5651b) takes back 89a11b2bf4, whose spin cannot lengthen
property_reads' kernel span: Metal's kernelStartTime and kernelEndTime are host submission times,
and the change failed the test on the M3 (3.2 ms against its 40 ms floor).

Verified: both runs exited 0 on the M3 (potluck); the conformance suite and
`conformance cost --check` rerun on this tree.
2026-11-05 05:53:44 -08:00
Anees Iqbal 9832e5651b Revert "Hold property_reads' command buffer with a spin released 40 ms after its kernel start, not more fills"
This reverts commit e49abfb266.
2026-11-05 05:24:01 -08:00
Anees Iqbal b54e0d65c4 Bless the golden tables at stack 29's full tree
The RTX 5080 lane's translator changes (a mesh pipeline's primitive in its graphics state, the
half-output NaN notes) and the draw agent's per-plan facts land on top of the first bless
(2137a20004), so the engine inventory, the AIR input printouts and the golden hashes are blessed
again on the stacked tree.

Verified: the bless leg's check of the five fixture tests (metal_as part 2 of 4, llvm_as part 7 of
8, golden_hashes_match_the_table, engine_fixtures_match_their_golden_printout,
inventory_lists_every_fixture_in_order) passed after the bless.
2026-11-05 05:21:43 -08:00
Anees Iqbal 7003c30ce0 Pin the runtime sources at RUNTIME_VERSION 1768
Verified: the pin is pin-compute.py's hash of this tree's runtime sources.
2026-11-05 05:12:10 -08:00
Anees Iqbal df592f453c Bump RUNTIME_VERSION to 1768: one staging wait per VkQueue, heap half reads keep their bits, per-plan draw facts, the steps' lock released, the RTX 5080 lane's fixes
- A batch waits for a staging submission only where no earlier batch on its VkQueue waited for it.
- An argument buffer's half read merges its class arms as the texel's half bits; on MetalHalfConversion
  profiles a texel's half rounding counts as measured (no native-half-conversion there).
- A render draw's facts about its plan's writes are worked out once a settle; the kept-draw check
  of resident uses runs once per identity (resident_uses_again_checked); geometry writes answer at
  once where an instance holds none before its fragments.
- The scheduler's summary join looks at each resource's own uses alone (by binary search), so the
  pass holds the scheduler's state far shorter and the steps thread no longer waits on it.
- The RTX 5080 lane's fixes: new notices device-line-ties and device-subpixel-snap (Degradation),
  with DriverFact::LineTiesAreMetals and SubpixelSnapIsMetals measured on MoltenVK; DriverFact::
  ColorClearTakesEitherCode; device-nan-encoding for every half output to a half-float channel; a
  mesh pipeline's graphics state names its primitive (GraphicsState::mesh_corners); max_buffer_length
  bound by the largest device-local heap; and the lanes' test fixes.
Removed from the public surface: VkProperty::MetalHalfColorNans and DriverDeviation::MetalHalfColorNans
(the stale NVIDIA half colour NaN fact; no driver keeps a half output's NaN).

Verified: the cherry-picked commits carry their own evidence; this stack's gate runs on the tree.
2026-11-05 05:12:10 -08:00
Anees Iqbal e49abfb266 Hold property_reads' command buffer with a spin released 40 ms after its kernel start, not more fills
property_reads_wait_for_no_submission_and_no_busy_work failed on the RTX
5080 Laptop GPU (NVIDIA 615.71.09) in every lane run (b5080
nvlane-lane2-a2f and nvlane-fin-lane2 at 9bbba05537): "1048576 fills
spanned 216.583us from their kernel start to their kernel end, short of
40ms". The test doubled its one-word fills until the command buffer's
kernel span reached LONG_SUBMISSION (40 ms), capped at 2^20 fills; the
5080 runs 2^20 in 0.22 ms, so about 185 times that would be needed:
hundreds of millions of encoded commands, or gigabytes of fills. A count
of fills sizes the span by the GPU's speed, which the test cannot know.

The command buffer is now its 4096 fills and a spin of the lane's busy
kernel (first_use::Busy::hold, new: one spin of the busy work's cap, on
a flag of its own). The thread that reads the kernel times releases the
spin LONG_SUBMISSION after it first read a kernel start, so the span is
at least LONG_SUBMISSION on every GPU, sized by the span it measures.
Where the device does not show the spin the release while it runs (an
RTX 3090 did not, first_use's docs), the spin ends at its cap, at most
BUSY / LINKS (250 ms) at the kernel's measured rate; and the reads end
WAIT after the commit where no kernel end was read, so a stalled GPU or
release still ends the test. The claim is unchanged: a read that waited
for the submission would read no kernel start until the kernel end,
release nothing early, and land no read inside the submission, which
the test still fails. The span assertion stays; the doubling loop and
MOST_FILLS go. Its assertions are no GPU-time bound (the span is a
floor the test makes), so it stays out of the gpu-time list.

Verified: cargo fmt. The 5080, M3 and lavapipe runs are in the next
jobs.

(cherry picked from commit 89a11b2bf421847413bc0c759f6cd42e055b66d5)
2026-11-05 05:11:19 -08:00
Anees Iqbal 2c1d5c1023 Take announced_lines' fifth count in line_widths' other tests
492738ba55 made announced_lines count device-subpixel-snap as a fifth
kind, but four other tests of the lane destructured its four counts, so
the validation crate's device tests did not compile under --cfg m2v_gpu
or --cfg m2v_cpu_icd (the M3 check m3-max-1027 and the msi build
m3-max-1028 at e9a8e6628a: E0527, "pattern requires 4 elements but
array has 5", at each). They read the counts they assert, as before,
and leave the snap's.

A correction to 05b5fd96b5's message: before it, a device-drawn mesh's
draw at a width other than 1 took the device's lines where they draw
the width (announced as device-wide-lines where those differ from
Metal's) and the nearest width only elsewhere, not the nearest width
every time. Either way it was announced as lines, which the commit
ends for a mesh of triangles or points.

Verified: cargo fmt. The builds are in the next jobs.
(cherry picked from commit 99046da73195217b19a6e15905d53f87f17685bc)
2026-11-05 05:11:15 -08:00
Anees Iqbal f9563b5e17 State a mesh function's primitive in every mesh pipeline's graphics state, so a device mesh of triangles draws no line
mesh_draws::object_draws_store_metals_words failed on the RTX 5080 Laptop
GPU (b5080 nvlane-lane4-a2f at a2f4c50f94): "announced past
[SharedInSystemMemory, FastMathRewrites, NativeNanEncoding]:
[DeviceLineTies]", from "draw_mesh_threadgroups: a draw of lines at
width 1". The fixture's mesh is topology::triangle and the draws fill.

The runtime's line routes classify a mesh draw by its primitives'
corners, which it read from GraphicsState::mesh_records, the emulated
mesh's records alone. A mesh the device draws (VK_EXT_mesh_shader, the
5080) had none, so its draws counted as lines whatever the mesh's
topology: at a width other than 1 every such draw took the nearest width
and announced lines-at-nearest-width, and since a5e1d20bd9 every one at
width 1 announced device-line-ties on a driver without the fact. Neither
can differ from Metal for a mesh of filled triangles or of points.

- StageInterface::mesh_corners: a mesh function's primitive, 1, 2 or 3
  indices, from its mesh type's topology (lower::mesh's MeshShape), on
  every device.
- GraphicsState::mesh_corners: the mesh stage's, which link copies into
  every mesh pipeline's state (public, serde default; api_signatures.tsv
  gains it, blessed).
- The runtime's drawn() reads GraphicsState::mesh_corners, so a mesh of
  triangles draws lines only in fill mode Lines (its edges) and one of
  points none, whether the device draws it or it is emulated; a mesh of
  lines is still lines the band does not draw. Unit test: the mesh
  classifications of line_width::tests.
- The codec encodes the new fields: ARTIFACT_FORMAT_VERSION 484 -> 485.
  The round-trip test states one.

Note sets: a device-drawn mesh of triangles or points no longer
announces device-line-ties or lines-at-nearest-width (NVIDIA, RADV and
ANV with VK_EXT_mesh_shader); emulated meshes (MoltenVK, lavapipe)
announce as before. line_width.rs is a runtime pin input, so
RUNTIME_VERSION and the pin are the orchestrator's to move.

Verified: cargo fmt; scripts/api-signatures --check after --bless;
refusal_surface.py (unchanged). Builds and the reruns are in the next
jobs.

(cherry picked from commit 79b24f5e06950703609eb07db646596b0e67b2db)
2026-11-05 05:11:15 -08:00
Anees Iqbal 710eafe92e Run the queue-switch check's teardown test alone
tests::teardown_threads::a_running_queue_switch_check_leaves_the_device_to_the_program_s_thread
holds the teardown's wait for the check under the 16 ms the owner allows
a wait. On the RTX 5080 Laptop GPU (NVIDIA 615.71.09) it failed twice
beside other GPU work and passed alone:

- b5080 nvlane-holds-td (016ea26f28): teardown_threads at -j 1, three
  runs, in a shared batch beside the runtime suite: the check's wait 13.4,
  26.5 and 14.3 ms, the second over the bound.
- b5080 nvlane-rt-a2f (a2f4c50f94): the runtime suite at -j 6, beside
  the lane's first partition in a shared batch: 42.4 ms.
- b5080 nvlane-qswitch2-a2f (a2f4c50f94), a timing batch alone on the
  GPU: teardown_threads at -j 1, 8 of 8 three times; the wait 1.23,
  1.13 and 1.12 ms, of which the check's release of its Vulkan objects
  0.93, 0.79 and 0.83 ms and its drop of its shares 1.3 to 1.7 us
  (d7f5a73a64's timing).

So the bound holds with the GPU to the test, with a margin of 13x, and
what the shared runs added is other work's GPU and CPU time. The test
now takes every test thread of its run in nextest's config, as the
compositor isolation tests do, so no test of its own run shares the GPU
with it. Another process on the same GPU still times it; runs on a
shared GPU belong in a timing batch (the orchestrator's b5080 rule).

Verified: cargo fmt. The timing numbers are the three entries above.
(cherry picked from commit 6c91652f3f4afde04add8febd5997e79298b7ca9)
2026-11-05 05:11:15 -08:00
Anees Iqbal d261d6ed46 Announce device-subpixel-snap where the band draws on a driver not measured to snap a half step as Metal
line_widths' wide_lines_draw_metal_s_parallelograms (and its exact-answers
twin) failed on the RTX 5080 Laptop GPU (NVIDIA 615.71.09, b5080 entries
nvlane-lane2-a2f and nvlane-lane3-a2f at a2f4c50f94) and on lavapipe
(llvmpipe, LLVM 23.1.1, Mesa 26.2.4, nvlane-lvplines-a2f) at "rows
offset by (r - 32) / 512 width 0": both drew the map's rows 18 to 49
where Metal draws 17 to 48. Before a5e1d20bd9 the 5080 failed earlier in
that test, at "LANE strip 1", so this case had not run there.

The case draws lines at y = r + 0.5 + (r - 32) / 512, which the band
draws at width 1/16 (half width 16/512). band.rs leaves the corners'
snap to 1/256 pixel to the device's rasterizer, where Metal snaps the
endpoints first, a half step rounded up, and offsets them after; the two
agree on the grid, and for odd r the endpoint lies half a step off it.
Half steps rounded down give the device's map exactly: odd r covers its
row for r in 19..49 and even r for 18..48, against Metal's 17..48 (round
to even gives the same rows here). The band's arithmetic is exact at
these values (side 64, every conversion a power of two), so the rounding
is the rasterizer's, which Vulkan leaves to the implementation: the
device's own answer, so it is announced, not emulated.

- DriverFact::SubpixelSnapIsMetals (appended): the driver's rasterizer
  snaps a vertex half a step off its 1/256-pixel grid as Metal snaps a
  line's endpoint, up. Row: MoltenVK on the M3 Max (APPLE9), where this
  lane's maps pass (a2f4c50f94, m3-max-994: 1847 of 1847). NVIDIA and
  lavapipe drew otherwise, so neither takes it; every other driver is
  unmeasured.
- Degradation::DeviceSubpixelSnap ("device-subpixel-snap", precision):
  announced by line_route at each draw the band draws on a driver
  without the fact. Its catalogue entry in docs/API.md, a FAST-PATHS
  known gap, and the conformance suite's NATIVE_NOTES (the device's own
  answer) take it. band.rs's and line_width.rs's docs say where the two
  snaps differ.
- The lane announces it per draw; a band case with a vertex an odd
  multiple of 1/512 pixel off (in framebuffer pixels) is left unchecked
  where it is announced, and every other band case is still compared
  with Metal's map. Held to the fact: never announced where the driver
  has it, and some case unchecked where it does not and the device
  tessellates. degrade_notices lists SUBPIXEL_SNAP as its site.
- driver_facts' profile test expects the fact on moltenvk-m3.

Note sets: MoltenVK on the M3 Max takes the fact, so it announces
nothing new. NVIDIA, lavapipe, RADV and ANV now announce
device-subpixel-snap at band draws. api_signatures.tsv gains the three
items (blessed); docs/REFUSALS.md regenerates unchanged. driver_facts.rs,
degradation.rs and line_width.rs are runtime pin inputs, so
RUNTIME_VERSION and the pin are the orchestrator's to move.

Verified: cargo fmt; scripts/api-signatures --check after --bless;
refusal_surface.py. Builds, clippy, the unit tests and the 5080, M3 and
lavapipe lane reruns are in the next jobs.

(cherry picked from commit 2574f4bb084656035feae4ef714bac96f720f497)
2026-11-05 05:11:14 -08:00
Anees Iqbal 21ed65814e Read word_samples_msaa's samples in a threadgroup of whole simdgroups
At a2f4c50f94 on the RTX 5080 Laptop GPU (b5080 entry nvlane-lane1-a2f),
multisampled_word_formats_store_read_resolve_and_blend_as_metal read
every word and value as Metal's (248a5c095d), then failed its notice
check: "announced past [...]: [EmulatedSimdgroups]", from "a dispatch of
kernel `wsm_read_u`: its threadgroups of [16, 1, 1] threads are not
whole subgroups of the size the kernel's simdgroups run on".

The read kernels have no simdgroup operation, but each thread writes
out[(y * width + x) * n + s] in a loop over the sample count n, which
lockstep's detection cannot prove disjoint between two threads of a
simdgroup. On a driver without SimdgroupLockstep whose entries reconverge
maximally on 32-lane subgroups (the 5080), it orders that pair through a
subgroup barrier, so the kernel's simdgroups are its 32-lane subgroups
(the translator's CLI at a2f4c50f94, m3-max-998: FlatLocalSize, required
subgroup size 32, for both wsm_read_u and wsm_read_f with the
nvidia-rtx5080-laptop profile; neither with moltenvk-m3). A threadgroup
of the row's 16 threads is then a partial simdgroup, which runs the
kernel's emulated-simdgroups variant and announces it: the runtime's
behaviour as documented, a route this lane does not test.

The reads now dispatch one threadgroup of whole simdgroups (the row
rounded up to thread_execution_width), the threads past the row
returning as the kernels already do, so every device runs the planned
pipeline. The words and values read are the same threads' as before.

Verified: cargo fmt. The 5080 rerun is in the next lane entries.
(cherry picked from commit 0c7a631e97aa0ab45c534da809a826e8638e0347)
2026-11-05 05:11:14 -08:00
Anees Iqbal 800c0813fb Expect device-line-ties from render_merged_executions' merged draw of lines where the driver lacks the fact
At a2f4c50f94 on the RTX 5080 Laptop GPU (NVIDIA 615.71.09, b5080 entry
nvlane-lane1-a2f), merged_draws_draw_what_the_host_step_draws failed in
degrade_notices' assert_once: "announced past [SharedInSystemMemory,
DeviceDenormals, DeviceArithmetic, FastMathRewrites, NativeDivision,
NativeNanEncoding]: [DeviceLineTies]". Its merged draw of the "lines"
commands draws the device's lines at width 1, which a5e1d20bd9 announces
(execute_commands_in_buffer: a draw of lines at width 1) on every driver
without DriverFact::LineTiesAreMetals; the test held the merged draws to
announcing nothing. The pixels it compares are the merged draw's against
the host step's, both the device's, so the notice changes no check.

line_widths::line_ties(device) is LINE_TIES where the driver lacks the
fact and nothing where it has it; the test expects it once from the
merged draws, and its doc says so. MoltenVK on the M3 Max has the fact,
so the test expects there what it did.

Verified: cargo fmt. The 5080 rerun is in the next lane entries.
(cherry picked from commit 865e4955e83fd0f353e36a91a2016ccaadf79d1a)
2026-11-05 05:11:14 -08:00
Anees Iqbal 792822226e Take lavapipe out of LineTiesAreMetals: it leaves out the line lane's strip's first pixel
a5e1d20bd9 gave lavapipe the fact on the conformance case's evidence
(llvmpipe draws primitive-type-restart-indices' line through (3.5, 1.0)
as Metal does). The line lane on lavapipe says otherwise: at 3785e99d8e,
under --cfg m2v_cpu_icd on msi-laptop's lavapipe (llvmpipe, LLVM 23.1.1,
Mesa 26.2.4, m3-max-949), wide_lines_draw_metal_s_parallelograms and its
exact-answers twin fail at "LANE strip 1": the strip starts at (3.5, 1.0),
a vertex the diamonds of rows 0 and 1 share, and lavapipe leaves out row
0 column 3, which Metal covers; every other pixel of the map is Metal's.
With the fact the lane held lavapipe to exactness there, and it failed.

The fact's rows are now MoltenVK on the M3 Max alone, so lavapipe
announces device-line-ties at its width-1 line draws as NVIDIA does: a
notice lavapipe did not announce before, for a difference it drew
silently before. driver_facts' profile test no longer expects the fact
on the three lavapipe profiles; the fact's docs, the catalogue entry,
FAST-PATHS' known gap and the lane's docs say what lavapipe draws.

Verified: cargo fmt. The lavapipe rerun of the line lane is in the next
msi job.

(cherry picked from commit a13ef6b9c4aeb5bac7448bd1a16526352458169d)
2026-11-05 05:11:14 -08:00
Anees Iqbal 3402d855e1 Insert the 3090's small float color writes at their place in the deviations its profile takes
c44ca87995 removed MetalHalfColorNans from the NVIDIA rows, so the
3090's expected list, NVIDIA's measured deviations with
MetalSmallFloatColorWrites inserted in the enum's order, takes it at
index 2, not 3. the_profile_takes_the_deviations_its_driver_is_measured_with
failed on that order alone at 3785e99d8e (m3-max-948: taken
[MetalFloatColorNans, MetalFloatDenormals, MetalSmallFloatColorWrites,
MetalHalfStorageWrites, MetalHalfTexelWrites]).

Verified: cargo fmt; the rerun is in the next M3 check.
(cherry picked from commit 6c034aa0bb72980aac14c28e8270eb1e0271fa23)
2026-11-05 05:11:14 -08:00
Anees Iqbal 2d0ed8f311 Time the queue-switch check's last steps in its teardown test
teardown_threads::a_running_queue_switch_check_leaves_the_device_to_the_
program_s_thread (de2554f1ac) holds the teardown's wait for the stopped
check under RELEASE, 16 ms. On the RTX 5080 Laptop GPU (b5080 entry
nvlane-holds-td, three runs, beside the runtime suite at -j 6) it waited
13.4 ms, 26.5 ms and 14.3 ms: one run over the bound, and the others
near it. The wait holds the test hook's release (a 1 ms poll), the
check's wake, the release of its Vulkan objects (three timelines, a
timestamp pool, a command pool of 96 command buffers) and the drop of
its shares of the device's parts; nothing says which costs the rest.

The check now records, under the device tests' cfgs only, how long its
objects' release and its shares' drop took, and the test prints them
beside the wait. No behaviour changes outside the test cfgs.

Verified: cargo fmt. The 5080 runtime leg of the lane fixes batch prints
the split.

(cherry picked from commit cdfd1b9bf44c40ee109f785b6ded89a514069a2a)
2026-11-05 05:11:14 -08:00
Anees Iqbal f14dda89f3 Drop sample_fills' unused clear word and the private link in max_buffer_length's docs
The M3 check of the lane fixes (m3-max-934, at c8041afd2d) failed two
gates on code of this branch:

- clippy under --cfg m2v_gpu: `CLEARED_RGBA8` is never used in
  runtime_lane/sample_fills.rs. b0fcab8386 replaced its one use by the
  near-a-colour test; the constant goes, and only_cleared_codes_apart's
  docs state the word in place.
- RUSTDOCFLAGS='-D warnings' cargo doc: `max_buffer_length`'s public docs
  linked to the private `working_set_buffer_bound` (c45a8cdd78). It is
  now a code span, not a link.

Verified: cargo fmt; the plain clippy pass of that check was clean. The
gpucfg clippy and doc reruns are in the next M3 check.

(cherry picked from commit 613677e30c756547b2ab51d03ce23fe6cf63cc74)
2026-11-05 05:11:14 -08:00
Anees Iqbal d9e3324d4e Announce device-line-ties where a driver breaks a width-1 line's diamond-vertex tie unmeasured
line_widths' wide_lines_draw_metal_s_parallelograms (and its exact-answers
twin) failed on the RTX 5080 Laptop GPU at "LANE strip 1": the
three-vertex strip at width 1, drawn in Bresenham's mode, put its
diagonal a row higher than Metal's (row 9 columns 3-4 where Metal draws
row 9 column 3 and row 10 columns 4-5, and so on, its last pixel at row
14 left out). The diagonal runs through vertices two pixels' diamonds
share; Metal covers the lower pixel, and Vulkan's diamond is open, so
the tie is the driver's with no Vulkan control over it. FAST-PATHS'
known gap "One line texel at a diamond vertex on the RTX 5080" already
said so for the conformance case primitive-type-restart-indices, but
the runtime announced nothing: a near-equivalent drawn silently.

- DriverFact::LineTiesAreMetals (appended): the driver's width-1 lines,
  as the runtime draws them, cover Metal's pixel at such a tie. Rows:
  MoltenVK on the M3 Max (APPLE9; its lines are Metal's own, the lane's
  maps pass there) and lavapipe (the conformance case: no texel differs
  on llvmpipe, LLVM 23.1.1, Mesa 26.2.4). Every other driver is
  unmeasured, so NVIDIA, RADV and ANV announce.
- Degradation::DeviceLineTies ("device-line-ties", precision): announced
  by line_route at each draw the device's lines draw at width 1 (a
  plain-width draw of lines or edges, or the nearest width where that
  is 1) on a driver without the fact. Its catalogue entry in docs/API.md,
  FAST-PATHS' known gap (now "announced"), and the conformance suite's
  NATIVE_NOTES (the device's own answer) take it.
- The lane announces it per draw, leaves such a case unchecked as it
  does the other announced routes, and holds it to the fact: never
  announced where the driver has it, announced in some case where it
  does not. degrade_notices lists LINE_TIES as its site.
- driver_facts' profile test now expects the fact on the three lavapipe
  profiles and moltenvk-m3.

Note sets: MoltenVK on the M3 Max and lavapipe take the fact, so neither
announces anything new. api_signatures.tsv gains the three items
(blessed); docs/REFUSALS.md regenerates unchanged. Not covered (left as
it was): a pipeline whose multisample state keeps Bresenham's mode off
(alpha to coverage, alpha to one, sample shading) draws the device's
default mode, which the fact does not measure. The runtime's notice and
line_width.rs are runtime pin inputs, so RUNTIME_VERSION and the pin are
the orchestrator's to move.

Verified: cargo fmt; scripts/api-signatures --check after --bless;
refusal_surface.py. Build, clippy, the unit tests and the 5080 and M3
lane runs are pending (the lane fixes batch).

(cherry picked from commit 75bb1413eacbf5ef3e1a3abed7ec97eff4b1c42d)
2026-11-05 05:11:13 -08:00
Anees Iqbal 639e505b11 State NVIDIA's BC decode bound as the RTX 5080 measures it: 4/255 for BC1 to BC3, 7.4/255 for BC4 and BC5
compressed_decode's bc1_to_bc5_texels_read_the_device_s_decode failed on
the RTX 5080 Laptop GPU (identically at d19da8bfce and 961b1ff319: the
lane's blocks are seeded) with channels past compressed-texel-decode's
stated bound. Its BCDECODE lines, per channel:

  BC2RGBASRGB  codes [2, 4, 2, 0]            18 past the note
  BC3RGBA      [2.0, 4.0, 2.0, 6.0]/255       7 past
  BC3RGBASRGB  codes [2, 4, 2, 0], alpha 6    12 past
  BC4RUnorm    7.327/255                      6 past
  BC5RGSnorm   16.329/255 (0.064035)          4 past

The others are within it (BC1RGBA [1, 3, 2, 0]/255, BC4RSnorm 0.0595,
BC5RGUnorm [7.163, 5.593]/255). The decode is the device's own (rule 1),
announced; the bound understated it: a BC1 to BC3 channel (the 6-bit
green) up to 4/255 where it said 3/255, a BC4 or BC5 channel up to
7.4/255 (signed 0.065) where it said 7.3/255 (signed 0.064).

The notice's cost (degradation.rs), docs/API.md's catalogue entry,
docs/FAST-PATHS.md's row and the two DriverFact docs now state the 5080's
measured bounds for NVIDIA, lavapipe's 3/255 kept apart, and the lane's
noted_bound copies them (4/255, 7.4/255, signed 0.065), so a run past them
still fails. No decode, note condition or announcement changes.

degradation.rs and driver_facts.rs are runtime pin inputs: the
runtime-sources pin needs its re-hash.

Verified: cargo fmt. The 5080 rerun is pending (the lane fixes batch).
(cherry picked from commit 164575080bf6132dc621a7e542af6a6f133c3a3f)
2026-11-05 05:11:13 -08:00
Anees Iqbal bf998a6377 Take an unblended half output stored as its float unrounded in half_output_blends, where native-half-conversion is recorded
half_output_blends_against_metals_rule failed on the RTX 5080 Laptop GPU
(at d19da8bfce and 961b1ff319) at the six unblended draws into
R32Float, RG32Float and RGBA32Float ("off", kinds 0 and 4): 9732 of
131072 RG32Float channels, for one, stored the 16-bit draw's half, and
the rest a float apart from it by under one half ulp (at most 8128
float ulps at the operands' magnitude, 8128 at the stored value). The
pipeline announces no half-output-precision there, which the lane read
as "Metal's in every channel". But the fragment stage records
native-half-conversion at every format (HALF-BLEND-NOTES: DeviceDenormals,
NativeTranscendentals, NativeHalfConversion, NativeNanEncoding), whose
bound includes no rounding at all: the device's compiler drops the
conversion pair, so the attachment receives the function's float. The
16-bit draw rounds that float at the attachment, so the two stores
differ by under a half ulp, as seen.

The lane now counts, for an unblended draw into a 32-bit float format, the
channels whose float is not the 16-bit draw's half but rounds to it (to
nearest even or toward zero), prints them on a HALF-BLEND-UNROUNDED
line, and takes the draw as explained where the stage records
native-half-conversion and every other channel is Metal's. A channel
off by more, or the same with the note absent, still fails.

NativeHalfConversion's bound said the 5080 "rounds here (8192 of 8192
sums Metal's)"; it now says it rounds a computed sum but drops the pair
of a half color output converted from float that it stores unblended
into a 32-bit float attachment. Doc only: no note or output changes.

Verified: cargo fmt. The 5080 and M3 reruns are pending (the lane fixes
batch); the rerun's HALF-BLEND-UNROUNDED lines are the evidence for the
bound's sentence.

(cherry picked from commit 4fd75fdd79a97265fce2fca8a2653a5ba2e6ce12)
2026-11-05 05:11:13 -08:00
Anees Iqbal b39b0c380b Record device-nan-encoding for every half output to a half-float channel: no driver keeps its NaN
DriverDeviation::MetalHalfColorNans (rows for NVIDIA's 615.71.09 on the
RTX 3090 and the RTX 5080 Laptop GPU) said the device stores a `half`
output's NaN as Metal does, the half's own bits, so a `half` output to a
half-float channel recorded no DeviceNanEncoding there. It was measured
at 0c344d06f (10-06), when the lowering widened a `half` from its bits
exactly. Since 79166a74b1 every `half` the function holds is the
device's widening (`OpFConvert`), whose NaN is the device's, and the
deviation was kept without a device run.

The 5080's color_writes lane shows the fact no longer holds: at
d19da8bfce and again at 961b1ff319, "RGBA16Float from half" stores 8180
of 262144 channels otherwise than Metal, every one a NaN stored as
0x7fff where Metal stores the half's own bits (0x7c01, 0x7c02, ...), the
one matching NaN being 0x7fff itself; the stage recorded no
DeviceNanEncoding, so the lane failed. An under-note on the 5080, and
on the 3090, which takes the same lowering on the same driver
(expected, not run: no 3090 venue).

nan_kept now answers false for a `half` output on every profile, so the
fragment stage records DeviceNanEncoding for it everywhere. With no row
left the deviation is dead: DriverDeviation::MetalHalfColorNans,
VkProperty::MetalHalfColorNans, derive's insert, the profile's check
and the codec tag go (tags are names, so ARTIFACT_FORMAT_VERSION stays).
The driver_facts docs keep the float-output measurement and say why no
driver is listed for a half output; color_write.rs's docs and the lane's
say the same.

Note sets: only profiles that took the deviation change (the two NVIDIA
rows). MoltenVK on the M3 Max never took it (nan_kept was already false
for a half output there) and lavapipe never did, so their notes are
unchanged. engine_link's half_float_writes_note_the_nan_encoding test
now expects the note for nvidia-rtx5080-laptop's half output too (its
old expectation is the negative control).

Bumps SEMANTICS_VERSION to 1959 (a precision note changes on NVIDIA
profiles). api_signatures.tsv loses the two variants. This edits runtime
pin inputs (device/derive.rs, driver_facts.rs, profile.rs,
requirements.rs): the runtime-sources pin needs its re-hash.

Verified: cargo fmt. Build, clippy, the engine test and the 5080 and M3
lane reruns are pending (the lane fixes batch).

(cherry picked from commit 4afc9bf3416c9eebdbe50f7089d9028b7a67d474)
2026-11-05 05:11:13 -08:00
Anees Iqbal 2c66258248 Expect the shadow route's lossless notice in heap_device_samples where the device shadows samples
device_heap_multisample_colour_textures_lie_where_announced required the
compressed multisample texture's heap-texture-lossless-layout reason to
say "its image lies in the heap's bytes" (Untiled::LOSSLESS_BOUND_SAMPLES).
That is the reason of a device that binds the image to the heap's bytes
in its own layout (the M3 Max on MoltenVK). A device that holds the
uncompressed multisample textures as shadows of their samples in
Metal's tiles holds the compressed one the same way, as a shadow of its
uncompressed tiles (sample_tiles, AliasRoute::Tiled), and own_heap_layout
announces Untiled::LOSSLESS_SAMPLES for it: "the heap's bytes hold its
samples as Metal lays them out uncompressed". The runtime is right; the
lane assumed one route.

The 5080's run at 961b1ff319 showed it: 56 textures, 0 counted untiled
(fact false), so every uncompressed texture was a shadow, and the
compressed one's reason was LOSSLESS_SAMPLES's. The lane now expects
LOSSLESS_SAMPLES's text where the device shadowed the uncompressed ones
(!as_metal && counted < textures, the same condition as its
shadowed-texture check) and LOSSLESS_BOUND_SAMPLES's elsewhere, and
never "memory of its own" either way.

Verified: cargo fmt. The 5080 and M3 reruns are pending (the lane fixes
batch).

(cherry picked from commit e362cd69ad85ba094073ad7808bd6abe265b89f2)
2026-11-05 05:10:59 -08:00
Anees Iqbal 0a9fd5779b Take tile_edges' cleared cells and texels within the two codes nearest the clear, where the clear is not Metal's
runtime_lane::tile_edges::cells_past_the_attachment_hold_metals_values_when_the_pass_begins on the
RTX 5080 Laptop GPU (at 961b1ff319): with the reads' conversion taken (0ba9cb26d8), the Clear leg
failed at cell (0, 0): [64, 127, 191, 255] where Metal holds [64, 128, 191, 255]. The pass's clear
of 0.5 is 127.5 codes; Vulkan lets a clear store either nearest code, the device has no
DriverFact::ColorClearIsMetals, and the runtime announces the clear's conversion. A test bug.

What: a cleared cell, and a cleared attachment texel, hold where each channel is one of the two
codes nearest the clear's scaled value on a device whose clear is not Metal's conversion; a loaded
one still holds Metal's texel exactly.

Verified: the lane reruns in the next proof run.
(cherry picked from commit f346dc718fbe40f51f4b20c598ead7f7b71bb7ac)
2026-11-05 05:10:59 -08:00
Anees Iqbal 5c4ac61c12 Take sample_fills' colour-fill samples within the two codes nearest the fill, as the pass's clear
runtime_lane::sample_fills::multisample_fills_write_metal_s_samples on the RTX 5080 Laptop GPU (at
961b1ff319): color-4 (an RGBA8Unorm fill of (0.5, 0.25, 1, 0.75) into a 4-sample texture the pass
cleared to (0.25, 0.5, 0.75, 1)) differed from Metal's lines where the cleared samples read 0.5 as
127 (Metal 128), which the lane takes for the other RGBA8 cases, but the case was not taken: its
fill's own 0.5 (127.5 codes) is a plain colour fill, which the device stores as either nearest
code too and announces as device-color-conversion (815657a42e). The lane took the pass's clear's
codes alone. A test bug.

What: only_cleared_codes_apart takes a word where the device's and Metal's are each one of the two
codes nearest the pass's clear or the case's colour fill.

Verified: the lane reruns in the next proof run.
(cherry picked from commit dd4ddb4e1331d1f3088f07113b9b704f3d3228bf)
2026-11-05 05:10:59 -08:00
Anees Iqbal 79b27d5d00 Expect the IOSurface planes' clear conversion where the driver's clears take either code
runtime_lane::buffer_texture_blits::iosurface_planes_lie_where_metal_puts_them on the RTX 5080
Laptop GPU (at 961b1ff319): announced past [NarrowSurfaceRows, ShadowedTexture,
SharedInSystemMemory]: [DeviceColorConversion]. The planes' clear to (0.2, 0.4, 0.6, 0.8) scales
each channel a hair off a whole code in float (51.0000008 codes), which on a driver whose clears
take either nearest code (DriverFact::ColorClearTakesEitherCode, 815657a42e) the runtime announces,
as that fact's rule states. The lane's clears stored Metal's codes; it did not expect the notice.
A test bug the fact's change brought.

What: the lane's notices include device-color-conversion where the device has the fact.

Verified: the lane reruns in the next proof run.
(cherry picked from commit e7a8c919eed074986296c01a9d3cf9fb94ea5f8b)
2026-11-05 05:10:59 -08:00
Anees Iqbal 3388c10761 Read word_samples_msaa's packed 5- and 6-bit fields within the replication bound off Apple GPUs
runtime_lane::word_samples_msaa on the RTX 5080 Laptop GPU (at 961b1ff319): 96 answers, every one
an A1BGR5Unorm word's sample read (2 and 4 samples), its 5-bit fields widened by replicating their
bits (word 0x256d's red 4 read as 33 / 255 = 0.12941, Metal 4 / 31 = 0.12903; the largest gap
0.0023). That widening is in DeviceTexelConversion's bound (within 0.18 of a code for a
replicated 5- or 6-bit channel), recorded for every read off Apple GPUs; the lane held a packed
field exactly. A test bug.

What: read() bounds a packed word's 5- or 6-bit field within 0.18 of its code where the device's
texture unit is not Metal's (no VkProperty::MetalSampler), and the lane allows
device-texel-conversion for a packed word there. MoltenVK on Apple's GPU still reads exactly.

Verified: the lane reruns in the next proof run.
(cherry picked from commit 67b327d05bca5eb4079fa8153e525d805796b7d3)
2026-11-05 05:10:59 -08:00
Anees Iqbal 751135f389 State a gathered 32-bit float denormal, flushed to a zero, in device-texel-conversion's bound
runtime_lane::half_read_nans::half_float_reads_hand_back_metals_nans on the RTX 5080 Laptop GPU
(NVIDIA 615.71.09, at 961b1ff319): with the gathered NaNs taken (eb9a8db1ac), 24 lanes still
differed, every one a gathered 32-bit float denormal (0x00000001, 0x80000001 in R32Float,
RG32Float and RGBA32Float) handed back as a zero of its sign, where Metal hands back the texel's
bits; the device's reads and samples of the same texels hand them back as stored. The gather is
the device's texture unit's, which DeviceTexelConversion records off Apple GPUs; its bound named
the gathered NaN, not the denormal. An under-stated bound.

What: DeviceTexelConversion's bound (pipeline/artifact.rs) and docs/API.md's catalogue state a
32-bit float texel's denormal in a gather as flushed to a zero of its sign; the lane takes such a
lane for Metal's where the device's texture unit is not Metal's. The note's condition is
unchanged, so no translation, note set or classification moves.

Verified: the 24 differing lanes of the 5080's run are each a flushed gathered denormal (the lane's
HALF-READ-DIFFERS lines); the lane reruns in the next proof run.

(cherry picked from commit ec73c51148a57302b1c6cc8f421c4b02692036e5)
2026-11-05 05:10:59 -08:00
Anees Iqbal 43fe2c8e69 Hold the two-plane views' plane 1 stores to either code nearest the value, where the conversion is announced
runtime_lane::extended_range_two_planes::plane_views_over_a_buffer_read_and_write_as_metal_does
failed on the RTX 5080 Laptop GPU (NVIDIA 615.71.09, d19da8bfce): G0W1BUF, G0R1P1H and G0R1P1F
of both plane-0 formats differed from Metal's digests. Metal's bytes of G0W1BUF are plane 1's
codes of the half writes clamped to [0, 1], scaled by 255 and rounded to nearest even, NaN 0: the
5080's printed bytes with that region so rebuilt give Metal's SHA-256 (19843f1b... for BGR10XR,
2282821c... for its sRGB twin). The 5080 stored 4 of the 1,024 plane 1 bytes as the other of the two
codes nearest the scaled value (half 0x1820, 0x1840 and 0x1860, 0.51 to 0.54 codes, as 0, Metal 1;
0x1e20, 1.53 codes, as 1, Metal 2), and the reads of plane 1 after them read those codes. Vulkan's
conversion to a normalized code lets a store take either nearest code, and the write kernel's
translation records DeviceColorConversion, announced. A test bug: the lane held plane 1's stores
to Metal's bits.

What: plane_1_as_metal replaces each plane 1 byte the device stored as the other nearest code of
its lane's value by Metal's code (unorm8_code) in the buffer's bytes after each write, and the
plane 1 reads after take Metal's read of each such code. The stores replaced are counted, printed
(XR-TWO-PLANES ... plane 1 stores the other code nearest the value), and require
device-color-conversion announced. A store off both nearest codes, or of a NaN, still fails.

Verified: Metal's bytes reconstructed against the recorded digests offline (the rule matches both
formats); the lane reruns on the 5080 and the M3 in the next proof run.

(cherry picked from commit cc7a413f945c0c9f563f63e9f42d49fe9310e5a8)
2026-11-05 05:10:58 -08:00
Anees Iqbal c6901502d2 Prove max_buffer_length's heap bound in the lane: a buffer one byte past it is nil, one of it is made
The lane's a_buffer_past_max_buffer_length_is_nil prints the device's
max_buffer_length (MAX-BUFFER-LENGTH) and refuses a Shared and a Private
buffer one byte longer as Nil(new_buffer, BufferLength), as plain Metal
answers nil past maxBufferLength. The ignored
a_buffer_of_max_buffer_length_is_made_where_the_heap_bounds_it makes a
Private buffer of exactly max_buffer_length where the heap bound is below the
compile layer's answer (the RTX 5080 Laptop GPU's) and refuses one byte more;
it takes three quarters of the device's memory, so it runs only by name.

docs/API.md's accepted differences name the proxy: the largest DEVICE_LOCAL
heap stands for Metal's recommendedMaxWorkingSetSize, which Vulkan does not
report.

Verified: not yet built (potluck build queued).
(cherry picked from commit 77fc830057352d11837826a8bb181ebb9a6bac5b)
2026-11-05 05:10:58 -08:00
Anees Iqbal 8a0ff9110f Bound max_buffer_length by three quarters of the device's largest device-local heap, as Metal does
The RTX 5080 Laptop GPU answered max_buffer_length 2^40 (its maxBufferSize; maxMemoryAllocationSize
is u64::MAX), a length no allocation of its 16 GiB can meet. Metal answers three quarters of
recommendedMaxWorkingSetSize, measured with MTLCopyAllDevices on the cluster's Macs:
- AMD Radeon Pro 5300M (4 GiB, macOS 26.7.1): maxBufferLength 3,208,642,560 of
  recommendedMaxWorkingSetSize 4,278,190,080, exactly three quarters;
- Apple M3 Max (64 GiB, macOS 27.0.1): 41,747,087,360 of 55,662,788,608, three quarters rounded
  down to 16 KiB.
(Intel UHD Graphics 630 on the same MacBook answers 2 GiB of a 1.5 GiB working set: outside the
rule, and no venue of ours.)

What: the runtime reads the size of the device's largest DEVICE_LOCAL heap as it queries the
physical device (DeviceIdentity::device_local_heap) and answers the compile layer's
max_buffer_length bound by working_set_buffer_bound(heap), three quarters of it to 16 KiB; the
runtime holds no working set size, so the heap stands for it. On MoltenVK the M3 Max's heap is
64 GiB (vulkaninfo), whose bound (48 GiB) lies above the compile layer's 41,747,087,360, Metal's
own, which stays. Buffers past the new length are refused nil as before, as Metal refuses them.
The compile layer's MetalDeviceProperties::max_buffer_length (what a shader can address) is
unchanged.

Tests: a runtime unit test of the rule on both Metal measurements and on heaps above, below and
at the limit; the lane's capability check takes the bound and prints both values.

Verified: compile and the 5080 and M3 runs follow in the lane proof run.
(cherry picked from commit 11f1133bd6f80f1917a4f93bb37b2c1402946a40)
2026-11-05 05:10:58 -08:00