host_ab's runtime side now opens the device, times the open, and then waits for the device's
in-place, submission and queue-switch checks (Runtime::settle_checks) before the first workload.
It reports that wait as `meta device_checks` (ms), apart from `meta device_open`. A check that
does not answer within 30 s is named on stderr, and the run goes on.
Why: the RTX 5080's percall failed about one run in three. Row buffer_texture_256 read
rt_vk_images_made_at_call and rt_vk_image_bindings_at_call at 1.0625 or 1.125 against their bound
of 1. The maker is the device's in-place check (in_place_check.rs, thread m2v-in-place-check).
On the 5080 the first texture over a buffer in exported memory starts it: buffer_texture_256's
first warm call, whose Buffer::new_texture over the group's buffer asks a pending verdict
(texture.rs's exported_takes). The check then makes and binds its probe images on its own thread
(in_place_image.rs) for as long as it runs. The device counts that work as its own
(Counted::AsTheDevice), so the group's counting window read it whenever the two overlapped. A
probe build that named the thread of every making off the program's threads, and marked each
window, showed the check's images inside buffer_texture_256's counting window in 5 of 8 runs.
Only some runs fail because it depends on where the check's run falls against that window.
host_ab's shader cache is a new directory each run, so the check ran in every run. A consumer's
device reads the verdicts from its cache's records as it is made and runs no check; settling the
checks first measures that device. The calls after the verdicts can take another path than the
calls before them. On the 5080, each texture_256_shared call then found a pool growing and
read the list of its blocks made ahead (memory/ready.rs's held), one allocation a call. A later
commit sums those bytes in place.
Verified (release host_ab, the same metallib, development 58c3147007 against this tree with the
later commits of this branch):
- RTX 5080 Laptop (nvidia ICD, three b5080 entries, base and this branch in turn in each):
base failed 11 of 40 runs (buffer_texture_256 images and bindings 1.0625 to 1.125 a call).
This branch failed 0 of 40: 24 runs without the held-bytes commit and 16 with it. Every
other row was within its bound in every run.
- lavapipe and the 780M PHOENIX (radeon ICD, 1002:15bf!), 6 runs each: no row moved up, and
every row is within its bound on both, except PHOENIX heap_texture_256 allocs. That row is
over its bound at base and here (79.25 and 75.25 a call against 17.25): the heap-tiled path,
handed to the orchestrator.
- device_checks: 5080 606 to 793 ms, lavapipe 532 to 2954 ms, PHOENIX 490 to 540 ms.
- clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd) and rustdoc -D warnings clean on Linux.