Commit Graph
2324 Commits
Author SHA1 Message Date
Anees Iqbal 5d7bbdad43 Window bench: print how often and how long the device's checks stepped aside
Each variant's checks line names WorkCounts::check_steps_aside and check_aside_nanos beside the
checks run and recalled, so the 5080 A/B of the step-aside shows the checks waited where the
takes went on. Test-only.

(cherry picked from commit a1370fb3140f35b7bb9cc9a6eb8134a1c62626e4)
2026-11-07 18:26:19 -08:00
Anees Iqbal f7df249d55 Device checks step aside for the device's allocations and frees on other threads
A device whose checks have no record runs them on threads of their own beside the program's
first makings: the submission checks as it is made, the queue-switch and in-place checks at the
first use that asks. On the RTX 5080 Laptop GPU (NVIDIA 615.71.09) the consumer's orders of
tests/host_ram_window_bench.rs over a guest RAM in 2 MiB pages took 11 takes of 5 to 10.7 ms in
36 runs with the submission checks running beside them (b5080 entry amdperf-b26-checks: a fresh
shader cache directory of the device's own), every one in the first two runs, while the checks
ran (87 to 115 ms, against 22 to 26 ms alone), and 2, at 5.1 and 5.2 ms, with the checks read
from a record. The checks' own submissions were not what the takes met (0 during 9 of the 11):
their imports, frees, mappings and submissions together are.

step_aside.rs counts the device's allocations and frees in progress at their two doors
(creation::allocate_memory, release::object) on every thread but a check's, and when the last
ended. Each check's thread marks itself, and before each step that allocates, frees, maps or
submits (the submission checks: each round, import, release, submission of a phase, copy and
remap; the queue-switch and in-place checks: each round) waits until none is in progress and none
ended for QUIET (20 ms). It goes on at once while a call waits for the check's verdicts
(SubmitChecks/InPlaceChecks/QueueSwitch::wait count their waiters), so use_host_ram's wait for
the import tax's verdict is the checks' own run alone. Counted: WorkCounts::check_steps_aside,
check_aside_nanos.

Unit tests of the wait (step_aside.rs). The 5080 A/B follows.

(cherry picked from commit 83d28421ecaa127b6eb3a363ee73dfff70fe5e92)
2026-11-07 18:26:18 -08:00
Anees Iqbal e82cda8769 Window bench: print which of the device's checks ran beside each variant's orders
The 5080 run of the split by shader cache directory (b5080 entry amdperf-b25-cache-split, three
rounds of twelve order runs a variant) took no take of 5 ms or more, its slowest 1.4 to 4.8 ms,
only with an own directory a device before had used (the records of the device's checks there):
none in 36 runs, against 9 with a fresh own directory (up to 10.5 ms), 8 with all the consumer's
options, 4 with a fresh one 2 s after the making, and 1 to 5 with the per-user directory and an
option alone. So the takes that wait follow the device's checks running beside them.

Each variant now prints, once its orders ran, which of its device's checks ran in the process and
which it read from a record (WorkCounts' submission, queue-switch and in-place counts) and its
submission checks' report (how long they ran); each slow take and each run the submission checks'
submissions meanwhile; and a variant more, a fresh directory whose device's submission checks
settled before its first order (Device::settle_submit_checks).

Test-only; its 5080 run follows.

(cherry picked from commit e039e21ca901946d00071f97ebe34adb734f1bd4)
2026-11-07 18:26:18 -08:00
Anees Iqbal ac1c34ed27 Window bench: split the consumer-option variants by shader cache directory, and time pipeline work
The 5080 run of host_ram_window_bench_by_consumer_option (b5080 entry amdperf-b22-by-option, two
rounds) found takes of 5 to 10 ms at chunk starts with every variant, its "none" among them, while
the same orders on a device of the default options (host_ram_window_bench, entry amdperf-b20-ab)
took none in 72 runs. What every variant shared and the default options lack is a shader cache
directory of the device's own, a fresh one.

The variants now keep the per-user directory, as the default options do, unless they name their
own (Parts::own_cache, which Parts::ALL keeps): none, an own fresh directory, the same directory
again (holding what the first device wrote), an own fresh directory with 2 s between the device's
making and its first order, each other option alone, and all. Each run's summary and each slow
take's line print the device's pipeline creation time and its shader cache's read, write and
off-thread time over them (WorkCounts), and each variant's header the same since the device's
making, so a take that meets the device's own pipeline work says so.

Test-only; not run here: its 5080 run follows.

(cherry picked from commit a8f7da41c6c84c8ea2956d6b8c416379d6ef31af)
2026-11-07 18:26:18 -08:00
Anees Iqbal a47726927a Re-bless the authored compile census at eac9da30c7
Its product fingerprint follows development's versions at eac9da30c7. Blessed on the
M3 (s37-pl.sh censusbless --bless, dv-m3).

(cherry picked from commit 476ba225c857764e11fdda70bd68203b901aac02)
2026-11-07 18:23:38 -08:00
Anees Iqbal 27bb1dd293 Bump RUNTIME_VERSION to 1846: a rebound draw that moved buffer offsets alone skips most of its rebind
perdraw-6 tip 1 (cherry-picked as 80add4510e): a draw rebound after calls that only moved buffer
slots' offsets (or attribute strides), the same buffers bound, skips the function-table check, the
shadow and detached-buffer looks and the set-0 rebind where the descriptor ranges are the kept
draw's, and notes, checks and gathers only the moved slots' uses (WorkCounts::draws_moved); no
sampler-maps clone per draw; PassStartReads skips its walks while no fragment stage wrote. Each
skip asserted in debug builds; the every-second-draw check still compares with every step.
draw_costs 10k --heap, release, base acd437e9fe vs tip, alternating, 3 rounds:
  lavapipe (ms01 m3-max-6045): 8,370 -> 6,639 instructions a draw (-20.7%), 775-805 -> 546-552 ns
  M3 MoltenVK (m3-max-6114): 8,183-8,192 -> 6,666-6,682 (-18.5%), 377-414 -> 310-321 ns
Runtime suite lavapipe 1806/1806 (6101), M3 m2v_gpu 1777/1777 (6139); clippy all cfgs and
rustdoc (6045, 6101); M3 cost --check whole set: no gated bound or ceiling moved (6114). RTX 5080
A/B queued (b5080 perdraw6-perdraw6-ab-1-180628).
2026-11-07 18:23:38 -08:00
Anees Iqbal 80add4510e Draw a rebound draw that moved buffer offsets alone without its whole rebind
A render draw rebound after calls that moved only buffer slots' offsets
(or attribute strides), each slot keeping the buffer it bound
(argument_table::Changed::offset), is now a draw moved
(WorkCounts::draws_moved, new). Its tables bind the kept draw's objects,
so it skips what those objects decide, each skip asserted in builds with
debug assertions:

- no stage's visible-function tables checked again, no shadowed-texture
  or detached-buffer look (both functions of the objects bound);
- set-0 writes and dynamic offsets kept, and the push writes not built
  again, where its commands' descriptor ranges are the kept draw's
  (rebind_into writes a buffer's descriptor of its buffer and range
  alone); the every-second-draw check compares them with every step;
- narrowed, where its uses were patched in place and none is of what the
  encoder made resident: the uses differ from the kept draw's only at the
  moved slots' (CommandUses::slot_uses_into), so only those are checked
  against the attachments (degrade_moved_attachment_reads) and the
  geometry writes, compared and recorded for the encoder's noted uses
  (EncoderCore::note_moved, NotedApart::note_moved, no touch walk), added
  to the pass's reads and gathered (InstanceShadows::add_moved).

Every rebound draw without a resident prefix also skips the unordered
writes, indirect reads and geometry writes adds and the pass's reads'
announce: its uses are the kept draw's access types, none written and
none an indirect read (draw_again::unwritten), in a pass whose fragments
wrote nothing, which makes each of those a no-op.

Folded in from the brief: bring_in reads with its sampler maps instead of
cloning them per draw (ReadFrom::reads_through, read_again), and
PassStartReads::announce and found walk no use while no fragment stage
of the pass wrote (and read) anything.

Verified: see the tip message (release A/B on lavapipe, the 5080 and the
M3; runtime suites; conformance cost --check). New test
draws_after_offsets_alone_moved_bind_what_every_step_binds compares moved
draws with every-step draws (commands, pixels, state records, noted
counts); draws_moved joins command_counts' per-encoder counts.

(cherry picked from commit 1a2e3258d40604607bc681e8a58202ed632f1594)
2026-11-07 18:22:31 -08:00
Anees Iqbal eac9da30c7 Bump RUNTIME_VERSION to 1845: a linear run's passes may name buffers over host pages
surface's linear-run-host-range (cherry-picked): a pass whose commands named a buffer over host
pages (a setVertexBytes upload chunk) was kept out of a linear run, so each such pass merged by
itself. Now it joins the run; where a rebind encodes it again alone it leaves the run, as a
shadowed texture's pass does, and a later pass that took its merge over reloads the run's box
(LinearMerge::record_reload, WorkCounts::linear_runs_reloaded). RADV 780M, release, 3 runs, 706
passes each reading a no-copy chunk over host pages into a target on a Private buffer (reims's
many_passes shape): 706 merges a frame -> 1, GPU 47.6 ms -> 14.0 ms (12.3 ms over a private
texture), commit to completed 94-107 -> 86-90 ms (m3-max-6078 base, 6118 fix). The reload test:
0 of 98,304 texel bytes differ on RADV and lavapipe; negative control 6,778 differ (6141). M3
clippy plain and gpu, rustdoc, runtime unit 1297/1297 (6120); RADV and lavapipe related device
tests 54/54. NVIDIA before/after pending.
2026-11-07 18:13:23 -08:00
Anees Iqbal 2a8a969910 Linear runs reload test: compare the texels before the counts, and print how many differ
The negative control (the reload's linear arm returning None, m3-max-6134 on RADV) stopped at the
counts (runs reloaded 0 of 2) before the texel comparison: now the texels are compared first and
the count of differing bytes printed, so a control shows what the reload keeps right.

(cherry picked from commit db7e75f334fba63cca56da250051f46761af12d8)
2026-11-07 18:12:35 -08:00
Anees Iqbal 331bae8d89 Linear runs reload test: scissor the first two passes, so the second opens a run over the whole target
On RADV (m3-max-6104) the six passes formed one run (5 merges taken over, not 4): with no
scissor, every pass's box is the whole render area (linear_attachment::Coverage takes the Vulkan
scissors), so the second pass went on with the first's run. Now the first is scissored to the
top left quarter and the second to the top right, which reaches past the first's box: the second
opens a run over the whole target, and the third and later passes blend over the bottom half,
which only the reload copies in once the second is encoded again alone. The chunk test passed
there: 706 passes, 1 merge recorded and 705 taken over, GPU 13.99 ms (47.6 ms at development).

(cherry picked from commit a09cbd2e83ec9777eea42c1b1d10a99d22f6b139)
2026-11-07 18:12:35 -08:00
Anees Iqbal 4368a35894 Let a linear run's passes name buffers over host pages; a pass a rebind encodes again alone reloads its run
A pass over a linear attachment rendered apart joined no run where its commands named a buffer
over host pages (render.rs's once rule): a rebind of one encodes the pass again alone, and a
linear run had no keep after such a pass. A consumer's setVertexBytes lands in an upload chunk in
its guest RAM, a no-copy buffer over host pages, so every pass of reims's many_passes merged
alone: 706 passes, 706 merges, 705 scratch reuses (11-05).

Measured at development 0165341336 on RADV 780M, release, the rule forced
(linear_runs::passes_reading_host_pages_form_one_run, m3-max-6078, three runs): 706 passes, 706
through copies, 706 merges recorded and 0 taken over, 705 scratches reused; GPU 47.59 to 47.65 ms,
against 12.27 to 12.30 ms for the same passes over a private texture.

Now such a pass joins. Encoded again alone by a rebind, it leaves its run as before
(RunMerge::leave: the merge it took over records at the pass before it) and copies in, keeps and
merges after itself; where a later pass of the run took its merge over, it then copies the run's
box in again from the surface and keeps it into the run's scratch (RunMerge::keep_after's new
linear arm, LinearMerge::record_reload, recorded by EncoderCore::finish_replay; counted as
WorkCounts::linear_runs_reloaded). The run's later passes render over what the bytes hold then
(the run's box may reach past the pass's own, where the pass opened the run over its whole render
area), and its merge writes only what they change. Attachments over host pages other than the
run's own bytes still keep a pass out.

Docs: pass_runs.rs (Which passes join; Encoded again; keep_after), command_buffer/reencode.rs
(Runs of passes), merge_scratch.rs (order 1), linear_merge.rs (Runs), render.rs. API signatures
blessed (one WorkCounts field).

Tests: linear_runs::passes_reading_host_pages_form_one_run (one run expected);
linear_runs::a_pass_of_a_run_encoded_again_alone_reloads_the_run (six passes behind a
host-signalled event, two of them reading a chunk over host pages that is rebound: both encoded
again, both reloading, five merges, the texels a private texture's). Not yet run.

(cherry picked from commit 2b79be56f39ef529db48090dd3185f795ed3c75e)
2026-11-07 18:12:34 -08:00
Anees Iqbal 00a9aada6f Linear runs: a test of 706 passes each reading its data from a no-copy buffer over host pages
reims's many_passes (11-05) read 707 passes, 706 merges: a pass whose commands name a buffer
over host pages (setVertexBytes landing in the consumer's upload chunk in guest RAM) joins no
linear run (render.rs, the run's once rule). This test is that shape with the device's rule
forced: one target over a Private buffer, rows of 2048 bytes, 706 passes each binding its
rectangle and color from one chunk at an offset of its own. It prints the merges, the encoding
time and the GPU time, against the same passes over a private texture, and asserts one run.

(cherry picked from commit 2778f79301d96d3632a40e024e451130fa8aee05)
2026-11-07 18:12:34 -08:00
Anees Iqbal 0165341336 Give the GPU-signal submission checks two more tries, up to 1024 fills
runtime_lane::submission_checks::an_event_wait_a_gpu_signal_in_flight_meets_is_checked_at_once
failed on the RTX 5080 in round 49d9a3fd06's lane (b5080 m2v-orch-dv-ln03-170042): 'the
signaller never ran at the waiter's scheduling in 7 tries'. Beside the lane's other tests at -j 6
the host scheduled the waiter after the GPU had finished 256 fills of 64 MiB (about 20 ms there);
type_nine in the same part read another queue's command buffer Scheduled 145 ms after its
commit. A premise the try could not arrange, not a refusal or a wrong answer: 9 tries reach 1024
fills (about 80 ms on that GPU). It passed in 9 earlier 5080 lane runs. Test only.
2026-11-07 17:21:45 -08:00
Anees Iqbal ffd78a60fa Re-bless the authored compile census at 49d9a3fd06
Its product fingerprint follows development's versions at 49d9a3fd06. Blessed on the
M3 (s37-pl.sh censusbless --bless, dv-m3).

(cherry picked from commit 8ead51dad7cdb667f124e35154974dc723c31260)
2026-11-07 17:07:41 -08:00
Anees Iqbal 7e039f062a Bump RUNTIME_VERSION to 1844: ANV orders blits through two imports of the same host pages as MoltenVK's are
amdperf-23 (cherry-picked): on ANV (INTEL_OPEN_SOURCE_MESA), a fill through one import of host
pages, a global barrier and a copy through another import of the same pages in one command buffer
read 0 of 4096 bytes (probe m3-max-5482, Mesa 26.2.6; across command buffers or queues, 4096), so
AliasedImportBlitsUnordered now covers ANV and such blits take the ordered route there. Iris Xe
(ms01, m3-max-5804, ICD pinned to intel_icd.json): host_ram_device, host_ram_dma_buf and the
dma_buf_imports lane 42/42 against 40/42 at the control (the two aliasing tests the defect
covers); clippy plain and m2v_gpu of runtime (um790 m3-max-5814).
2026-11-07 17:00:28 -08:00
Anees Iqbal dcede59721 Guest RAM dma-buf test: the listed-chunk test takes the device's answer where runs are never alone
tests::host_ram_dma_buf::where_each_listed_import_costs_a_submission_the_ram_is_long_chunks_released_once_idle
asserted that the first object over a chunk not imported lies in an import of its own run. With
ANV now holding RuntimeDriverDefect::AliasedImportBlitsUnordered (the commit before), no run is
imported alone there: each object lies in its chunk's import, which the first one over it makes,
as on MoltenVK. On the Iris Xe (ms01 job m3-max-5700, Mesa 26.2.6) the test failed at the tip
with (run, chunk) = (0, 1) against (1, 0), and passed at its control, which lacks the defect.

The test now reads the device's answer (host_ram_device's runs_alone, made pub(super)) and
expects, where no run is alone: the first object and the first over each chunk in the chunk's
import, no run's import released or made again, the source asked for the chunks alone, and a copy
over a released chunk importing the chunk alone. Elsewhere its expectations are unchanged.

(cherry picked from commit 0fe111381051afc82f3ff64a57110c18ff087497)
2026-11-07 16:59:34 -08:00
Anees Iqbal 2b7ebd8c38 ANV: blits through two imports of the same host pages are unordered by a barrier in one command buffer
On ms01's Iris Xe (Raptor Lake-P, Mesa 26.2.6) two host_ram_device tests failed (5425): a write
through a buffer bound in a run's import and a read through one bound in the chunk's import of
the same pages, in one blit encoder. A probe of each way (5482, scratch branch
steelbrain/amdperf-iris-probe, two runs) showed the shape MoltenVK's AliasedImportBlitsUnordered
names: in one command buffer, in one encoder or two, a fill through one import, a global memory
barrier and a copy through the other read none of the fill (0 of 4096 bytes) in either
direction, where two command buffers of one queue, a wait first, and two queues each read all of
it, and every way through one import read all of it. Vulkan counts imports of the same pages as
aliases of one memory, which a global barrier orders, so this is the driver's.

ANV now has the defect in the Affected table, so an object over a chunk not yet imported binds in
the chunk's import (waiting for it), never in an import of its own run, as on MoltenVK. The table
test lists it for ANV; host_ram.rs, the host_ram_device tests' docs and HOWTO name ANV beside
MoltenVK.

Verified: cargo fmt only here; the Iris rerun of the 42 tests is a potluck job.
(cherry picked from commit 589815be2cd36191673b6aae36e2f50a2afcd1cd)
2026-11-07 16:59:34 -08:00
Anees Iqbal acd437e9fe Bump RUNTIME_VERSION to 1843: a shared event whose timeline semaphore another API imports
clmode's ask 2 (cherry-picked 02562d2a1e..da2a0dfe28): Device::new_exportable_shared_event and
SharedEvent::export_semaphore_fd, an OPAQUE_FD export of the event's timeline semaphore; a device
without the export refuses NotImplemented(RuntimeGap::ExportableSemaphore). Verified by clmode:
RTX 5080 (b5080 clmode-ask2-nv-164856, m3-max-5785): the exported semaphore crosses to a second
device both ways, event/interop/keepers 40/40; RADV 780M (m3-max-5593) 41/41; lavapipe
(m3-max-5558) refuses as documented; clippy plain and cpu-icd, api_signatures, api_surface.
Re-pinned; REFUSALS and signatures already in the picks.
2026-11-07 16:56:16 -08:00
Anees Iqbal da2a0dfe28 Read the exported event's counter in both devices: vk_wait answers Reached for a value reached
The cross-device test asked vk_wait(5) for a counter after the signal of 5 completed, and
vk_wait answers Reached there (no wait needed), so the test panicked on RADV (m3-max-5557)
before it reached the import. It now reads the counter value through the second device before
and after the runtime's signal, and holds it to the runtime's own semaphore's value.

Verified: the device runs follow (RADV on um870, lavapipe on gem10).
(cherry picked from commit eb5b10e81a9e5f6788d72a9c0c8b31e9af53d3f0)
2026-11-07 16:55:27 -08:00
Anees Iqbal b76c951547 Keep SharedEvent's field private: the exportable event is made through event.rs
The exportable shared event changed SharedEvent's public record to a pub(super) field so
exported_semaphore.rs could build one. event.rs now makes it (new_exported_shared_event) and
the export reads the event through EventRef, so the struct's record is development's again.
The table's one other line moves into the sorted order the bless writes.

Verified: signatures.py --check passes on this tree; build and tests in the next check job.
(cherry picked from commit 0d101500fc75bcb19b2385c213a07a553d58e8ed)
2026-11-07 16:55:27 -08:00
Anees Iqbal 02562d2a1e Make a shared event whose timeline semaphore another API imports, exported as an opaque fd
reims's ask 2: CUDA signals the event's semaphore on the GPU after a decode
(cuSignalExternalSemaphoresAsync), and waits on it, where it now orders
through the host.

Device::new_exportable_shared_event() makes a shared event as
new_shared_event does, its timeline semaphore made with
VkExportSemaphoreCreateInfo naming VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT;
SharedEvent::export_semaphore_fd() answers a new OwnedFd each call
(vkGetSemaphoreFdKHR), the caller's to close. An event not made exportable is
refused Invalid(Problem::NotExportable). The counter stays the signal index
the interop hooks name: the importer waits for vk_wait's counter and signals
only one reserve_vk_signal reserved; that call's contract now names an
importer's signal beside the device's queues.

The device decides structurally, once: it enables VK_KHR_external_semaphore_fd
wherever listed (adopted: where its consumer enabled it), and asks
vkGetPhysicalDeviceExternalSemaphoreProperties for a timeline semaphore:
OPAQUE_FD exportable and among the compatible types. Lacking either, the
making is refused NotImplemented(RuntimeGap::ExportableSemaphore), with its
REFUSALS row. Lifetime (the event outlives every import and every signal and
wait an importer submitted) and device loss (state lost for the imports; a
device made again exports new semaphores) are in the call and module docs,
interop.rs and the README. api_signatures blessed; exit_guard's KEEPERS
lists exported_semaphore.rs.

Test (device, src/tests/exported_semaphore.rs): the semaphore imported into a
second VkDevice; a command buffer's signal of 5 reaches vk_wait(5)'s counter
there; the second device's host signal of the counter reserved for 9 raises
the event to 9 and releases a command buffer that waited for 9 and then
filled a buffer. Unverified at this commit.

(cherry picked from commit 525580c12be28e6efa0a06ab09cde1f736ebace7)
2026-11-07 16:55:27 -08:00
Anees Iqbal 49d9a3fd06 Re-bless the cost records at b5d9e0b933
587 recordings moved, measured on the M3 (cost --runs 8 --write over the whole set, then
--alone --write over the changed cases; gate tree commit bc975c20ab).

Gated bounds that rose, by family:
- fills_recorded / commands_recorded.cmd_fill_buffer (20 / 14 cases, from 0), fills_by_transfers
  gone: fills on MoltenVK are vkCmdFillBuffer again (82e7c74f89). Contrast: surface's whole-set
  replay at ac0310c517 (m3-max-5712), 20 overs, all fill counts.
- per_state pipelines 3 -> 6 in xr-masked-bgr10xr-red and -srgb-red: the old records came from a
  36-case selection, whose take-back lands on another case than the whole set's (surface: 11
  whole-set processes read 4/6/3 at 064e7a8e88 and b50a345f73).
- scheduler_sleeps / scheduler_passes / scheduler_wakes_host / wakes_spared, +1 to +3 in 13-50
  cases (and as many fell): not separated from the 103 runtime commits since the last write
  (5b64b8b425); each was steady over 8 runs in both writes.
- object_churn evictions and destroys (buffers 37 cases, images 8): the recyclers evict what was
  parked past a second of wall time, so these follow how long each case and its predecessor ran.
- pass-bytes-srgb-decode-all-bytes: vk_memory_allocations 11 -> 131, vk_memory_freed 8 -> 128, in
  the set and alone. Attributed by reading, not contrasted: the case is the first to make a
  texture over host pages, where the device's one-time in-place check runs, and that check's
  fresh-pages class runs wherever the device takes fresh pages since ff631aada9.
- A handful of single cases otherwise (xr-gamut images and buffers recycled, two-plane-row-blits'
  spare pools): not separated.

(cherry picked from commit bc975c20ab1070a167570946d4112789a7ef4251)
2026-11-07 16:53:50 -08:00
Anees Iqbal 4215c4e8ef Make the recycler's burst test again where its burst outlasted the park time
tests::recycle::a_burst_of_one_off_makings_keeps_the_proven_image failed once in 13 RTX 5080
runs (b5080 m2v-orch-dv-rt2-140644 at 5f334c5204: 'the texture took a parked image' 0 vs 1): its
64 one-off makings took longer than the images' park time (recycle::IMAGES, a second), so the
proven image went stale before the take, as the bounds say it goes. The test now times the take
from just before the proven image's park; a try whose take came past the park time is made
again (at most 3, one-offs of widths no earlier try made), and the last try asserts it came
within it. Bounds::parked_for is crate-visible for that. Re-pinned (recycle.rs's field); no
behaviour changes.
2026-11-07 16:46:55 -08:00
Anees Iqbal 4c931df923 Bump RUNTIME_VERSION to 1842: listed guest-RAM chunks stop at 512 MiB, not 256
amdperf's 003382bdc9 (cherry-picked): on a device that pays per listed import (RADV), an 8 GiB
guest RAM is listed in 16 chunks at most. RADV 780M (um790, m3-max-5738, release, 2 rounds, 8 GiB
in 2 MiB pages): submit p50 23.3/23.0 us at 512 MiB chunks against 32.1/32.0 at 256 (10.3/11.4
with none listed); reims's 5584: QEMU Rss over no RAM to RADV +0.45 GiB at the desktop against
+0.94 at 256 MiB. Lint at its base on um790 (m3-max-5742): clippy plain and gpu-cfg runtime, fmt,
tests::fast_paths 21/21.
2026-11-07 16:41:42 -08:00
Anees Iqbal 78e58c370f Guest RAM: listed chunks stop at 512 MiB, not 256
On a device whose held imports add to the cost of every submission (RADV), a guest RAM's chunks
now run up to 512 MiB. reims's 16 GiB guest on the Radeon 780M (their job 5584, two boots of each
setting) had less of QEMU's RAM resident with 512 MiB chunks than with 256 MiB ones: 0.45 GiB more
than without the source at its desktop against 0.94 GiB, and 0.15 against 0.25 GiB at the end of
its run, with at most 11 to 12 chunks live against 15 to 18. The probe's per-submission cost falls
too: an 8 GiB RAM's submission median was 32 to 33 us in 32 chunks of 256 MiB and 24 us in 16 of
512 MiB (job 5411).

LONGEST_LISTED_CHUNK, the module and use_host_ram docs, HOWTO, the FAST-PATHS row and the
chunk-length probe (now up to 512 MiB) say 512 MiB.

(cherry picked from commit 003382bdc921fa8e7901fa00c7896f29439d7907)
2026-11-07 16:40:58 -08:00
Anees Iqbal b5d9e0b933 Refuse an in-set cost --write of a selection: the gate judges the whole set alone
`judge` holds a case's in-set counts to their bounds only in a whole-set run, because a case's
counts are of what ran before it in the process; the README already says a bound is written from
a whole-set `cost --runs 8 --write` and nothing smaller. The command still wrote from any
selection, and the re-record of the 36 cases the interlocked split moved (m3-max-5515: "8 run(s)
of 36 case(s)") wrote a composition the gate never runs: `xr-masked-bgr10xr-red` at 3 pipelines
over its 2 states and `xr-masked-bgr10xr-blue-green` at 6, where the whole set reads 6 and 3 in
every run (11 whole-set processes, the record's commit 064e7a8e88 and b50a345f73, debug and
release, settled 0 to 1000 ms after each xr case: no timing moves it; the released variants the
next creation takes back are another case's in the whole set). The gate's cost --check failed six
xr-masked rows on it.

`cost::write_refusal` now refuses an in-set write of anything but the whole case set, before the
runs; `--alone --write`, whose shape no selection changes, writes from any. Tested by
`an_in_set_write_takes_the_whole_case_set_alone`. The six xr-masked records want a whole-set
write, which the M3 cost re-bless after the fill change makes.

(cherry picked from commit 36340ebbb21c0cf35872defe5ce7549f45c6012c)
2026-11-07 16:39:12 -08:00
Anees Iqbal e4107afbf0 Bump RUNTIME_VERSION to 1841: a commit copies in only the copied host buffers its commands use, and a copy reads its pages before its memory is made
Lands steelbrain/orch-stitched-copies (cherry-picked a779b1824a..c5192a2cae):
- a commit's copy in asks only the copies its command buffer's used keys reach (every copy where a
  command may reach memory no use names); merge back was already by written keys;
- a few changed pages find the bytes they meet in a copy stitched from thousands of runs through
  an index of the runs by offset, not a walk of every run;
- a copied host buffer reads the caller's pages before it maps its own memory, so a mapping the
  runtime makes cannot fill an unmapped page of the caller's and make a buffer Metal refuses.

Verified, release, gem10 (m3-max-5734), the stitched bench (512 copies x 640 runs, 1280 MiB),
base 018900246e vs fix, medians of 15, 3 alternating rounds:
  0 pages written:    0.224 ms -> 0.003 (8 copies used) / 0.031 (every copy reached)
  16 pages written:   1.21  ms -> 0.005 / 0.266
  256 pages written:  2.37  ms -> 0.039 / 2.23
  4096 pages written: 6.19  ms -> 0.156 / 6.0
Lavapipe (ms01 m3-max-5735): copied, dirty, host_ram_copy, host_memory, degrade_notices 154/154.
M3 (m3-max-5724): host_memory's half-mapped refusal 0 failures in 20 (it failed before the fix).
2026-11-07 16:38:40 -08:00
Anees Iqbal c5192a2cae Pass the copied-log pair's buffers to the tests' add helper as the reference they are (clippy needless_borrow)
(cherry picked from commit ab22af382836120adbbd7735c2661b3ec4707d88)
2026-11-07 16:37:46 -08:00
Anees Iqbal 737a9bbfdb Make a copy's first read in the copied tests through a helper of their own: the runtime makes it before the copy's memory alone
The read-first fix (3c2a300aed) left CopiedBuffers::add_reading, the read and the add together,
used by tests alone (a dead-code error in the library build), and the dma-buf mapping's test
calling add's old signature (gem10 m3-max-5722: E0061, E0599). The helper is the tests' own now,
over FirstRead::of (crate-visible), and the dma-buf test reads through CopiedBuffers::read, the
path buffer_descriptor takes.

(cherry picked from commit cc30dc3e9e916d37cbd42214e1bb4fcab30c5837)
2026-11-07 16:37:46 -08:00
Anees Iqbal 7cfca1a29d Read a copied host buffer's pages before making its memory, so its own mapping never lies among them
Both copied-buffer makings (Device::copied_pages and copied_buffer) made and mapped the copy's
memory first and read the caller's pages after (CopiedBuffers::add). Where a page of the
caller's range is not mapped, the copy's own mapping could land there, the read find every
byte mapped, and the call make a buffer over memory Metal makes no buffer over. On the M3 Max
runtime_lane::host_memory::memory_metal_makes_no_buffer_over_is_refused_when_it_is_made made a
buffer over a mapped page and an unmapped one in 7 of 20 runs (m3-max-5626); with the test
seeing the page mapped again and trying again over a fresh reservation (da25c0efad), the
retried runs failed on the failed import each try adds (m3-max-5693), the bug itself still
hidden.

CopiedBuffers::read now takes the first read (FirstRead: the snapshot and whether the GPU's
writes are dropped) before either making allocates, and CopiedBuffers::add registers the copy
from it. The test bounds the failed imports by its tries made again.

(cherry picked from commit 3c2a300aed4721dad94c3e682e83075a4f5cca1d)
2026-11-07 16:37:46 -08:00
Anees Iqbal acc42804be Read the commit's unnamed reach before taking the dirty log's lock, the state's let go
A match on the state's guard held it through the arm that locks the command buffer's dirty
log (a temporary of the scrutinee lives to the match's end).

(cherry picked from commit c5cbebbec0a0c5c61b761cecd5336a55645d6400)
2026-11-07 16:37:46 -08:00
Anees Iqbal 4d73c2b043 Note a command's used keys in a plain loop: the filter's closure borrowed the flag it set
Fix of bc9f3f5ec6, which did not build (E0506, m3-max-5665).

(cherry picked from commit af180cdf38228a4ddb0f9a7b7cff4f2a48842eb0)
2026-11-07 16:37:46 -08:00
Anees Iqbal 1937e72a38 Make the half-mapped refusal case again where another thread's mapping took its unmapped page
runtime_lane::host_memory::memory_metal_makes_no_buffer_over_is_refused_when_it_is_made failed
7 of 20 runs on the M3 Max at d65be37964 (m3-max-5626, 'a mapped page and then one not mapped:
a buffer was made'): the test unmaps a page and then asks for a buffer over it and the page
before it, and another thread's mapping can land in the page just freed before the making
looks, so every byte is mapped and the buffer rightly made.

The case now runs in a reservation of its own: where a buffer is made and its second page is
mapped again (msync answers), the try is dropped and made again over a fresh reservation, at
most 8 times; a buffer made over a page still unmapped fails the test as before. Each answer
says how many tries were made again.

(cherry picked from commit da25c0efad3dfaeb78e50fffe82f7e50e3da8c5b)
2026-11-07 16:37:46 -08:00
Anees Iqbal d694f52506 Copy in at a commit only the copied host buffers its command buffer's commands use
reims-vgpu's 5080 game probe past its views' budget (512 copies of stitched views) spent
65% of its CPU in its dirty logs' queries, which every commit's copy in made for every
logged copy (about 110 commits a second, about 6 ms each, every copy's own log walked:
m3-max-5561's profile). A command buffer's GPU reaches only the resources its commands use,
as Metal's does, so the copies the others lie in need not be current for it.

DirtyCommit now keeps the keys its commands used, read or written (at most 4096, past which
every copy), beside the writes it kept; the commit hands them to CopiedBuffers::copy_in
(copied::Written, which named the merge back's writes, is CopiesReached, the key set both
take). A copy its commands do not reach is neither compared nor asked of its logs, and keeps
the stamp it last synced to, so the first commit that uses it takes every write since. Every
copy is copied in where the command buffer's uses went unnoted or a command may reach memory
no use names (a function that reaches buffers through addresses, work on the GPU alone, a
host step's records: State::reaches_unnamed). Shadows' copies in from a copy are commands of
their encoder, their uses noted with the copy's key, so a texture over a copied buffer
reaches its copy. Counted: WorkCounts::copied_copy_ins_unused.

The copied-host-pages notice and API.md's catalogue say which copies a commit compares.
tests::copied::a_commit_copies_in_only_the_copies_its_commands_use: a copy left alone keeps
its bytes, the first commit that uses it takes every write since, and every copy where one
may reach anything. copied_stitched_bench times a commit that uses 8 of 512 copies beside
one that reaches every copy.

(cherry picked from commit bc9f3f5ec63504fce3d8f89eb49110099b2b45ab)
2026-11-07 16:37:46 -08:00
Anees Iqbal e6caadf263 Find the bytes a few changed pages meet in a copy stitched from thousands of runs by those pages alone
A logged copy's copy in maps its log's changed runs into the copy's bytes at each commit
(PagesLog::bytes_of, copied.rs planned). It walked every run of the copy's bytes with a
binary search of the changed runs each: a copy of a view stitched from 640 4 KiB runs of a
guest RAM cost 640 searches per commit whether one page changed or none, and 512 such
copies (reims-vgpu's 5080 guest past its views' budget) 327,680 per commit.

LogOf now keeps its runs' indices in the order of their first offsets and the longest
run's length. Where the changed runs are fewer than the copy's runs, each finds the runs
it meets from them (a binary search, then the runs starting before its end), so the work
follows the pages changed; else every run is walked as before. Runs may overlap in the
source (a view mapping one page twice): the longest run bounds how far below a changed
run's start a run that meets it may begin. The caller joins the bytes, so their order
does not matter.

tests::dirty_bytes_of checks both walks against every pair of pieces and changed runs
over a window of scattered pieces of one to three pages, one page twice.

(cherry picked from commit 9506f4511ec196878647501fa4d8ca93b8137f31)
2026-11-07 16:37:45 -08:00
Anees Iqbal a779b1824a Bench a commit's copy in over copies of stitched views, the shape a consumer held past its views' budget
copied_stitched_bench (ignored, release): 512 copies of 640 pages (1.25 GiB), each page its
own run of one guest RAM log, as reims-vgpu's 5080 guest held them once its views' budget
ran out (5468: 512-620 copied buffers, game probe 9.3 fps with every compare skipped).
Each commit's copy in timed with 0, 16, 256 and 4096 RAM pages written since the last.

(cherry picked from commit 018900246ee52e7ce34c918ec267201bb9043a67)
2026-11-07 16:37:45 -08:00
Anees Iqbal 82e7c74f89 Bump RUNTIME_VERSION to 1840: fills on MoltenVK are vkCmdFillBuffer again, no transfers form
Surface's ac0310c517 (cherry-picked as 3daaca19fc) drops FillCompiledPerCommandPool: a fill
recorded as a transfer ended MoltenVK's encoder at each barrier, the commit latency the M3 cost
rows showed. Checks at its base: um870 m3-max-5705 clippy plain and lavapipe cfg pass; the M3
lanes and whole-set replays run on development. Also lands amdperf's test-only RADV fixes
(dropped_uncommitted over a memfd with a udmabuf source; the heap multisample test lets go of its
pass before the pages), evidence at their old base m3-max-5364, 3 of 3 on the 780M and the XTX.
2026-11-07 16:35:00 -08:00
Anees Iqbal b48f0f44eb Lane: the host heap multisample test lets go of its pass and command buffer before the pages
runtime_lane::heap_layouts::a_host_heap_s_multisample_textures_hold_their_samples_in_metal_s_tiles
dropped its heap and then unmapped the pages while its render pass descriptor and its completed
command buffer still held the heap's lossless-layout texture, and so the heap and its import of
the pages (a texture holds its heap, as Metal's retains it). RADV lists every imported memory in
every kernel submission, so the next submission of the device after the unmap (any of the
runtime's own threads, before the test's closure returned) was rejected by the kernel (-14,
EFAULT: the userptr's pages are gone), and the layer then reported VUID-vkQueueSubmit-fence-00064.
Seen on the Radeon 780M in the lane (gem10 job 4742); alone it passed 3 of 3 on the 780M and the
RX 7900 XTX at development 026fcfd65d (job m3-max-5120), as no submission happened to fall in the
window.

The test now drops the command buffer and the pass with the texture and the heap, before the
mapping, as the heap's contract asks. And it closes the window: a command buffer of the same queue,
committed once the pages are unmapped, blits the resolved texture out and must complete with no
error and the clear colour in every texel. Its negative control (the base with only that commit
added, the pass and command buffer still held) is run on RADV beside the fix.

(cherry picked from commit d0110e6480a89339d66a4b0e6fd7f0282600c97b)
2026-11-07 16:34:06 -08:00
Anees Iqbal 54859a367e Runtime test: the dropped uncommitted command buffer's guest RAM is a memfd with a dma-buf source on Linux
tests::dropped_uncommitted::a_dropped_uncommitted_command_buffer_touches_no_host_memory_once_dropped
made its no-copy buffers over a POSIX shared memory object's mapping with no source. RADV refuses
the pointer of shared memory (amdgpu's userptr takes only anonymous pages; host_memory.rs, "What
drivers answered"), so the buffer was refused, Unsupported(HostMemory, NotRepresentable), and the
test panicked on the Radeon 780M and the RX 7900 XTX, 3 of 3 each (gem10 job m3-max-5120, at
development 026fcfd65d). lavapipe imports the pointer and passed.

On Linux the guest RAM is now a memfd sealed against growing and shrinking, as QEMU's
memory-backend-memfd,share=on makes it, and each buffer's memory comes with a source of one udmabuf
of the file's pages behind each request (HostMemory::with_dma_buf, the host_residency tests'
udmabuf helper). RADV imports those dma-bufs; lavapipe and NVIDIA import the pointer and never call
the source. Elsewhere the object stays a POSIX one with no source. The test prints the dma-buf
imports it made (DROPPED-UNCOMMITTED), which shows on RADV that the buffers lie in the dma-bufs.
The product is unchanged: memory a device cannot import and no source serves is still refused, as
documented.

(cherry picked from commit 13b6300615ad6c829f181e6499656c913ce9ede7)
2026-11-07 16:34:02 -08:00
Anees Iqbal 3daaca19fc Fill with vkCmdFillBuffer on MoltenVK too: drop FillCompiledPerCommandPool and the transfers form
On MoltenVK the runtime recorded every fill as transfers (a vkCmdUpdateBuffer of the first
64 KiB, then copies of what was filled past barriers), because DriverFact::FillCompiledPerCommandPool
said MoltenVK compiles its fill pipeline per command pool inside vkQueueSubmit and, behind a storm
of pipeline creations, a commit waited 250-330 ms there (MoltenVK 1.4.1 on an M4). That release
runs on no venue any more, and the tree's own 1.4.2 note recorded that the wait was not found
there: a fresh pool's first vkCmdFillBuffer took 0.022-0.038 ms in vkQueueSubmit beside one to
eight threads making 91 and 496 compute pipelines.

The transfers form has a real cost at submission: MoltenVK ends its encoder at every barrier, and
a 256 MiB fill took four. Measured on the M3 Max (MoltenVK 1.4.2), the signaller of
event-wait-behind-a-running-signal (192 fills of 256 MiB) from its commit to Scheduled:
- selection of the case, median: 4.3 ms as transfers, 0.55-0.6 ms as vkCmdFillBuffer;
- under CPU spin on every core, worst of 15: 10.2 ms against 2.7 ms;
- first row inside whole-set replays: 21.2, 15.0 and 9.5 ms against 1.8 and 0.8 ms;
which put the case at its 20 ms window and, under load (5506), past it: a divergence of ours
(Metal's own recording held in 25 of 25 runs under the same loads, 5580).

So every fill is one vkCmdFillBuffer on every driver. With no driver carrying the fact, its
variant, its row and its tests go, and so do the transfers form (word_fill's steps), its tests
and WorkCounts::fills_by_transfers; the first move's zeros fill on a discrete device without the
transfers check; the lanes that split their expectations by the fact expect one fill each.
Signatures regenerated (the count and the two DriverFact variants removed).

Every M3 cost record that fills moves (cmd_update_buffer, cmd_copy_buffer and barriers down,
cmd_fill_buffer up): the M3 cost set wants a whole-set re-bless after this lands.

(cherry picked from commit ac0310c517e62c9c490c58539f001e0ffc004a47)
2026-11-07 16:34:02 -08:00
Anees Iqbal ff631aada9 Bump RUNTIME_VERSION to 1839: the in-place check's fresh-pages class lies in fresh pages wherever the device takes them
amdperf-22 (the six picked commits before this): Device::fresh_pages_check_buffer makes the
check's fresh pages whatever the import tax, so RADV checks the class (Passed x3 on the 780M,
m3-max-5640; Unchecked x3 at the parent, 5648), and a copied rebind under an image in place
takes fresh pages where they passed (copied_device 29/29 780M, 33/33 lavapipe, 5667).
CHECK_VERSION 4. Re-pinned; signatures and REFUSALS unchanged. Clippy plain and m2v_gpu
(5701), fast_paths 21/21 (5687).
2026-11-07 16:25:43 -08:00
Anees Iqbal dfa56df28b copied_device: pass the pitch test's second host by the reference it already is
clippy --cfg m2v_gpu (5687): needless_borrow at the rebind in rebind_at_pitch.

Verified: 5687's plain clippy of runtime and validation, fmt --check and fast_paths passed; the
gpu clippy rerun is a potluck job.

(cherry picked from commit 9e5baa377aabc3633c7ea2b20a12afa03b59ab21)
2026-11-07 16:25:24 -08:00
Anees Iqbal 6a420d915c copied_device: say RADV makes no image in place at either pitch the rebind test takes
5667 on the Radeon 780M made shadows at 64 and at 512 bytes a row, so the test tests nothing
there; lavapipe took both, each rebind's copy in fresh pages with its image over it. The previous
commit's subject said RADV takes wide rows in place: it does not.

Verified: 5667 (um790 780M, lavapipe).
(cherry picked from commit 3cca02c5f790f93e218dfe8db38eb506d7470dea)
2026-11-07 16:25:24 -08:00
Anees Iqbal 406b379515 FAST-PATHS: the copied-rebind gap is where the check did not pass fresh pages, which it now checks on RADV too
The known gap said RADV's check gave fresh pages no verdict, so a rebind under a texture in place
at another pitch than RADV's linear image's was refused there. The check now makes its fresh-pages
buffer wherever the device takes such pages: on the Radeon 780M (RADV, 5640 and 5667) every Fresh
verdict passed, where the control left them Unchecked. The gap stays where the check failed fresh
pages or the device takes none, and the entry says so.

Verified: 5640/5667 on um790's 780M (1002:15bf) and lavapipe; see the branch's earlier commits.
(cherry picked from commit 756b83b22c97cc13b822cba31752d0906adb93c9)
2026-11-07 16:25:24 -08:00
Anees Iqbal 61266b0351 copied_device: the rebind at another pitch also at wide rows, which RADV takes in place
At tight rows RADV made no image in place over the caller's pages (5648: a shadow, nothing to
test), so the test also rebinds a texture whose rows lie 512 bytes apart, a pitch RADV's own linear
image (256 bytes a row for 16 RGBA8 texels) does not take, under the same assertions. The four
host memories are made before the device, as Host's contract asks.

Verified: cargo fmt only here; the runs are potluck jobs.
(cherry picked from commit e3fe95186395b7420afa54607037c895c2124edf)
2026-11-07 16:25:24 -08:00
Anees Iqbal 2d53475150 copied_device: a rebind under tight rows takes fresh pages where their check passed
A 16 x 16 RGBA8Unorm texture of tight rows (64 bytes apart; RADV lays a linear image of its own
256 bytes a row) in place over a no-copy buffer, rebound to pages the gate refuses: where the
device's check passed fresh pages for reads, the copy lies in fresh pages (one fresh-page buffer
made), its image made over it at the texels' pitch, and the texture follows the copy; elsewhere
the copy lies in device memory, and the rebind is refused where the driver's linear image lies
at another pitch, which the test accepts and prints. The helpers rows, texture_over and
texture_follows_the_copy gain pitch-taking forms; the unchecked-fresh-pages test's docs no
longer say RADV's check finds no fresh pages to try.

Verified: cargo fmt only here; the runs are potluck jobs.
(cherry picked from commit 79bd247cc888d619735676c6a8499d3467e11ce8)
2026-11-07 16:25:24 -08:00
Anees Iqbal e71e19aace In-place check: the fresh-pages class in fresh pages wherever the device takes them
The check made its Fresh-class buffer as the product makes a long buffer, which lies in fresh
pages only where the device's submission checks found a held import costs submissions nothing.
On RADV (where it does) the class was never checked, so its verdicts stayed Unchecked for good,
while a rebind's copy under a texture in place takes fresh pages wherever that class passed
(copied_pages, through fresh_page_buffer, whatever the cost): such rebinds took device memory
instead and were refused where the driver's linear image lies at another pitch.

The class's buffer is now made by Device::fresh_pages_check_buffer: Shared, outside the Metal
space, in fresh pages wherever the device takes them (FreshPages::Wherever), and never parked
nor taken from the recycler, so its import lives for its round alone. placed_new_buffer takes
whose buffer it makes (NewBufferOf: a heap's, or the runtime's with its FreshPages), the product's
buffers keeping WherePaid. The class no longer waits for the submission checks' answer; ANSWER_WAIT
now serves the guest RAM's dma-buf path alone. CHECK_VERSION goes to 4, so records that kept the
class Unchecked are not read again.

Test: the_in_place_check_checks_fresh_pages_where_held_imports_cost_submissions recalls answers
where the import tax holds and asserts every Fresh verdict is checked wherever a device that
recalls no tax lays a long buffer in fresh pages (Unchecked where none does). The placement
test's record helpers take the answers they write.

Verified: cargo fmt only here; builds and runs are potluck jobs.
(cherry picked from commit c288318e03c45152c8245ebf452e07bbf954af08)
2026-11-07 16:25:24 -08:00
Anees Iqbal 9529b4f605 Window bench: the consumer's orders on devices of each of its options alone
The consumer-options bench showed 5-11 ms takes at chunk starts on an RTX 5080 (5605) where the
default device showed none. host_ram_window_bench_by_consumer_option runs the consumer orders,
4 repeats, on devices made with none of the options, with each alone (the Info sink, GPU times
from the host, the video-decode queues, the video-decode extensions) and with all, each dropped
before the next, so the wait names the option it follows. consumer_device takes the parts it sets
(Parts); the shader cache stays in a scratch directory for every variant, as the default device's
lies on disk too.

Verified: cargo fmt only here; the build and the runs are potluck jobs.
(cherry picked from commit bda1c3188795785355e264a2b3d160a8b9d618b9)
2026-11-07 16:22:15 -08:00
Anees Iqbal 4445decf05 Window bench: time the consumer-options sink's receiver per message, and its delivery outside the driver
Each message the Info sink hears keeps the receiver's own time over it, which the slow lines and
each order's line sum per id; and the test first times 10,000 deliveries of a driver-like Info
message through MessageSink::deliver (the C strings copied out as the callback copies them, the
severity filter, the panic guard and the receiver), so a slow take's messages can be told apart
from the driver's work behind them. The docs say what the sink at Info turns on: the messenger
asks the driver for warnings and errors only; Info filters the runtime's own messages.

Verified: cargo fmt only here; the build and the runs are potluck jobs.
(cherry picked from commit 0c458da5e571a501db4121424d7ce2be5e0d86ef)
2026-11-07 16:22:14 -08:00
Anees Iqbal a04a1c175b Window bench: the consumer's orders on a device made with a consumer's options, in any build
A consumer measured 20-27 ms takes at its chunks' first imports on an RTX 5080 where this bench
measured none. Its device differs: a message sink at Info (so VK_EXT_debug_utils is on and the
driver's messages reach a callback), GPU times from the host's clock, a disk shader cache, a
video-decode queue beside the device's, one queue held back and the video-decode extensions; and
its build is a debug one. The new ignored test runs the three consumer orders over RAM in 2 MiB
pages on a device made with those options, in whichever build it is compiled in, and lists the
driver's messages that reached the sink during each slow making and each order. Slow lines are
capped at 40 an order, as a debug build may make many.

Verified: cargo fmt only here; the build and the runs are potluck jobs.
(cherry picked from commit 149da94cfb95ea9a5c79e4aa3fd08b0af89df111)
2026-11-07 16:22:14 -08:00