Files
metal2vulkan/crates
Anees Iqbal e6900ca020 Iris constant twin doc: state the per-encoder evidence, not one walk's totals
What: DriverWorkaround::PushReadsLengthenThreadPayload's doc (device/profile.rs) said a
storage twin of a kernel's uniform view took 145.8 to 150.2 s of GPU time over a walk of guest
compute workloads that took 137.4 s without it. It now gives the mean GPU time an encoder from
the runtime's encoder times in two walks without the twin against four with it. Comment only;
no code, version or answer changes.

Why: the 137.4 s total came from one walk (m3-max-35702, scratch 68e39640e9). The second walk
without twins, m3-max-36778 at c3d5b3e05e (8933378831 landed), took 146.0 s, inside the
twin walks' range. Its excess over the first sits in workload openings where the Iris
governor requested 300 to 1,200 MHz at 55 to 85% busy. Two walks of one sha (C0 and C02)
differ there as much. The totals do not separate the twin from the clock. Per encoder the
twin's effect is the same in both walks without it. 8933378831's message cites the totals
and one workload's 4.93 s as evidence. The message stays as it is, and this commit corrects
the record: that workload's difference was the first walk's opening, and the second walk
without twins took 6.42 s there. The twin's removal holds on the per-encoder figures below.

Evidence (mean ms an encoder; without twin: m3-max-35702, m3-max-36778; with: m3-max-35628
at bd3c1a8c37, walk T at 45d2a94af9, m3-max-36202 and walk C02 at 8d57656475; Mesa 26.2.6,
Iris Xe RPL-P; every window listed these rows, so the counts are whole):
- one workload's two heaviest convolution encoders, 200 each: 22.4 / 23.0 against 41.9,
  46.0, 28.1, 41.2; and 17.8 / 18.9 against 32.3, 32.8, 35.5, 32.5
- another workload's convolution encoder, 3,920: 6.27 / 6.30 against 6.79, 6.79, 6.77, 6.78
- a third workload's eight heaviest encoders, 439 to 480 each: six faster with the twin, e.g.
  3.67 / 3.74 against 2.86, 2.87, 2.84, 2.85, and 6.71 / 6.77 against 5.76, 5.75, 5.77, 5.77;
  one slower (4.82 / 4.92 against 5.56 to 5.63); one mixed
Read from each walk's qemu.log encoder-times lines (the walks' files on this Mac, read in
place).

Verified: cargo fmt --all only (comment change).
2026-11-16 09:06:19 -08:00
..