📝 Fill the UHD 630's cells and record the restore's wait on the Iris [ci skip]
vainfo -a on the UHD 630 (m3-max-78560) lists vaon12's decoders: H.264, HEVC Main and Main 10, and VP9 profile 0 and profile 2 at 10 bits, 4:2:0 up to 8192x4352, and no encoder, AV1 or range extensions. The Windows column's open cells (Q3) now say that, and Q3 is gone. The planner kept the restore of H1: the decode's wait VA-API asks for before a read stays. Its remainder on the Iris Xe against issuing the runs with no wait, 0.2 to 0.7 ms a decode with the guest's numbers equal (m3-max-78524), is recorded in B95 as its cost.
This commit is contained in:
1 parent
9bdd4c633b
commit
2221d7004d
3 files changed
+24
-24
No files matched your search
+1
-1
@@ -88,7 +88,7 @@ Everything known to be wrong, untested or put off in the reims-graphics device's
|
||||
|
||||
### B95. On the rt platform, a reference picture lands only once video processing has copied it into its output
|
||||
|
||||
- **What:** on the rt platform the VA-API arm decodes into its output's device cache only a picture no later picture predicts from. A reference picture is decoded into a surface of the decoder's own and copied into the cache by a video-processing run (`CachedReferences::Apart`, `crates/reims-vgpu/src/graphics/vaapi.rs`; the VA crate's `Frame::write_to_guest`, `crates/reims-vgpu-video/src/vaapi/va/zero_copy.rs`), and the guest hears its frame is done only once the run is. So each reference's landing takes its copy's time on top of its decode's. That shows where the guest decodes one frame at a time: at a 4K stream's start it decodes 10 frames, each after the last has landed, before its first present. The runs are issued right behind the decode and waited for once (`zero_copy.rs`).
|
||||
- **What:** on the rt platform the VA-API arm decodes into its output's device cache only a picture no later picture predicts from. A reference picture is decoded into a surface of the decoder's own and copied into the cache by a video-processing run (`CachedReferences::Apart`, `crates/reims-vgpu/src/graphics/vaapi.rs`; the VA crate's `Frame::write_to_guest`, `crates/reims-vgpu-video/src/vaapi/va/zero_copy.rs`), and the guest hears its frame is done only once the run is. So each reference's landing takes its copy's time on top of its decode's. That shows where the guest decodes one frame at a time: at a 4K stream's start it decodes 10 frames, each after the last has landed, before its first present. The runs are issued right behind the decode and waited for once (`zero_copy.rs`), after the decode's own wait, which VA-API asks for before its surface is read. That wait costs the Iris Xe 0.2 to 0.7 ms a decode, from its take to its signal, over issuing the runs with no wait on the decode: 5.70 and 5.06 ms against 4.99 and 4.85 ms in two 1080p60 plays each, the guest's frame counts and presents equal (**measured** 2026-12-02, iHD 26.3.5, potluck job m3-max-78524).
|
||||
- **Evidence:** **measured** on a Radeon 780M in boots of a macOS guest playing a 4K H.264 file, 2026-11-19, before the runs were issued right behind the decode:
|
||||
- on rt, 181 of the 4K session's 360 decodes were references, every one kept apart. A reference took 20 to 24 ms from one landing to the next, against 12 to 13 ms for a picture decoded in place, and the processing's landing was 12.0 to 15.0 ms of it.
|
||||
- The guest's 10 decodes before its first present took 181 ms on rt, against 101 ms on the Vulkan platform, which decodes references into their caches as well (`CachedReferences::InCaches`). The longest gap in the guest's presents was 167 ms against 100 ms.
|
||||
|
||||
@@ -27,7 +27,11 @@ the runtime device's GPU (the LUID Vulkan answers for it) and Mesa's VA-API driv
|
||||
dma-buf: its pictures decode into shared Direct3D 12 textures, which the runtime device's GPU
|
||||
copies into the guest's planes, or their device caches; where the device imports none, they come
|
||||
back through `vaGetImage` and the CPU's copy ([vaapi.md](vaapi.md), "Loading libva"). On Intel's UHD 630 (driver 31.0.101.2145)
|
||||
`vaon12` decodes H.264 and HEVC Main and Main 10 and encodes nothing. The Windows arm answers no
|
||||
`vaon12` decodes H.264 Constrained Baseline, Main and High, HEVC Main and Main 10, and VP9 profile
|
||||
0 and profile 2 at 10 bits, all 4:2:0 and up to 8192x4352, and encodes nothing: it lists no AV1,
|
||||
no HEVC range extensions, no VP9 at 12 bits or other than 4:2:0, and no encoder entrypoint
|
||||
(**measured** with libva-utils' `vainfo -a`, Mesa 26.3.1, 2026-12-02, potluck job m3-max-78560).
|
||||
The Windows arm answers no
|
||||
encoder on any GPU, whatever `vaon12` encodes (`open_on_rt` in
|
||||
`crates/reims-vgpu/src/graphics/vaapi.rs` opens with `encodes: false`): rt imports no shared
|
||||
Direct3D 12 texture, which an encoder's input would be written through. So on a Windows host the
|
||||
|
||||
+18
-22
@@ -46,14 +46,14 @@ Each offered cell says how it was shown:
|
||||
| H.264 High 4:4:4, Stereo | encode | none listed | none listed | F5 | none listed | N2 |
|
||||
| HEVC Main, Main 10, Main Still Picture | decode | offered (780M: 78304, Main alone) | offered (no run on file) | offered (78305, Main alone) | offered (no run on file) | N2 |
|
||||
| HEVC Main, Main 10 | encode | offered (XTX: 77475) | offered (77476) | offered where NVENC codes a frame in place (77477) | N1 | N2 |
|
||||
| HEVC Main 12, 4:2:2, 4:4:4 (range extensions) | decode | none listed | F2 | F2 | Q3 | N2 |
|
||||
| HEVC Main 12, 4:2:2, 4:4:4 (range extensions) | decode | none listed | F2 | F2 | none listed | N2 |
|
||||
| HEVC range extensions, SCC | encode | none listed | guest's own (F10) | guest's own (F10) | none listed | N2 |
|
||||
| VP9, every profile | decode | F3 | F3 | F3 | Q3 | N2 |
|
||||
| VP9, every profile | decode | F3 | F3 | F3 | F3 | N2 |
|
||||
| VP9 | encode | none listed | F5 | none listed | none listed | N2 |
|
||||
| AV1 | decode | F4 | F4 | F4 | Q3 | N2 |
|
||||
| AV1 | decode | F4 | F4 | F4 | none listed | N2 |
|
||||
| AV1 | encode | F5 | none listed | none listed | none listed | N2 |
|
||||
| JPEG | decode, encode | guest's own (F6) | guest's own (F6) | guest's own (F6) | guest's own (F6) | N2 |
|
||||
| MPEG-1, MPEG-2, MPEG-4 Part 2, VC-1, VP8 | decode | none listed | F5 | F5 | Q3 | N2 |
|
||||
| MPEG-1, MPEG-2, MPEG-4 Part 2, VC-1, VP8 | decode | none listed | F5 | F5 | none listed | N2 |
|
||||
| ProRes | decode, encode | none listed | none listed | none listed | none listed | N2 |
|
||||
|
||||
The x86-64 guest's two encoders reach the device by different paths in AppleGVA. H.264 takes its
|
||||
@@ -72,23 +72,23 @@ in software.
|
||||
| H.264 High 10, 4:2:2 | decode | none listed | none listed | none listed | none listed | N2 |
|
||||
| HEVC Main, Main 10, Main Still Picture | decode | offered (780M: 77412; XTX: 77361) | offered (77302, 77386) | offered (77315, 77410) | offered (no run on file) | N2 |
|
||||
| HEVC Main, Main 10 | encode | offered (780M: 38882, 38778) | offered (no run on file) | offered (no run on file) | N1 | N2 |
|
||||
| HEVC range extensions, 4:2:0 at 8 and 10 bits | decode | none listed | N3 | offered (listed, not run) | Q3 | N2 |
|
||||
| HEVC Main 12 (4:2:0, 12 bits) | decode | none listed | offered (77302, 77338) | offered (77315, 77572) | Q3 | N2 |
|
||||
| HEVC 4:2:2 at 8, 10 and 12 bits | decode | none listed | offered (77302, 77338) | none listed | Q3 | N2 |
|
||||
| HEVC 4:4:4 at 8, 10 and 12 bits | decode | none listed | offered (77302, 77338) | offered (77315, 77572) | Q3 | N2 |
|
||||
| HEVC range extensions, 4:2:0 at 8 and 10 bits | decode | none listed | N3 | offered (listed, not run) | none listed | N2 |
|
||||
| HEVC Main 12 (4:2:0, 12 bits) | decode | none listed | offered (77302, 77338) | offered (77315, 77572) | none listed | N2 |
|
||||
| HEVC 4:2:2 at 8, 10 and 12 bits | decode | none listed | offered (77302, 77338) | none listed | none listed | N2 |
|
||||
| HEVC 4:4:4 at 8, 10 and 12 bits | decode | none listed | offered (77302, 77338) | offered (77315, 77572) | none listed | N2 |
|
||||
| HEVC Main 4:2:2 10 | encode | none listed | N4 | none listed | none listed | N2 |
|
||||
| HEVC 4:4:4, 12 bits, SCC | encode | none listed | guest's own (F10) | guest's own (F10) | none listed | N2 |
|
||||
| VP9 profile 0 (4:2:0, 8 bits) | decode | offered (XTX: 77354; 780M: 77433) | offered (77382) | offered (77355, 77373) | Q3 | N2 |
|
||||
| VP9 profile 2 at 10 bits | decode | offered (XTX: 77354) | offered (77382) | offered (77355, 77373) | Q3 | N2 |
|
||||
| VP9 profile 2 at 12 bits | decode | none listed | offered (77567, 77606) | offered (card test 78301) | Q3 | N2 |
|
||||
| VP9 profiles 1 and 3, 4:4:4 | decode | none listed | offered (77567, 77606) | none listed | Q3 | N2 |
|
||||
| VP9 profiles 1 and 3, 4:2:2 | decode | none listed | F8 | none listed | Q3 | N2 |
|
||||
| VP9 profile 0 (4:2:0, 8 bits) | decode | offered (XTX: 77354; 780M: 77433) | offered (77382) | offered (77355, 77373) | offered (no run on file) | N2 |
|
||||
| VP9 profile 2 at 10 bits | decode | offered (XTX: 77354) | offered (77382) | offered (77355, 77373) | offered (no run on file) | N2 |
|
||||
| VP9 profile 2 at 12 bits | decode | none listed | offered (77567, 77606) | offered (card test 78301) | none listed | N2 |
|
||||
| VP9 profiles 1 and 3, 4:4:4 | decode | none listed | offered (77567, 77606) | none listed | none listed | N2 |
|
||||
| VP9 profiles 1 and 3, 4:2:2 | decode | none listed | F8 | none listed | none listed | N2 |
|
||||
| VP9 | encode | none listed | F5 | none listed | none listed | N2 |
|
||||
| AV1 Main (4:2:0, 8 and 10 bits) | decode | offered (780M: 77412; XTX: 77361) | offered (77386) | offered (77410, 77531; F9) | Q3 | N2 |
|
||||
| AV1 Professional, 4:2:0 at 12 bits (the XTX) | decode | F7 | none listed | none listed | Q3 | N2 |
|
||||
| AV1 Main (4:2:0, 8 and 10 bits) | decode | offered (780M: 77412; XTX: 77361) | offered (77386) | offered (77410, 77531; F9) | none listed | N2 |
|
||||
| AV1 Professional, 4:2:0 at 12 bits (the XTX) | decode | F7 | none listed | none listed | none listed | N2 |
|
||||
| AV1 | encode | F5 | none listed | none listed | none listed | N2 |
|
||||
| JPEG | decode, encode | guest's own (F6) | guest's own (F6) | guest's own (F6) | guest's own (F6) | guest's own (F6) |
|
||||
| MPEG-1, MPEG-2, MPEG-4 Part 2, VC-1, VP8 | decode | none listed | F5 | F5 | Q3 | N2 |
|
||||
| MPEG-1, MPEG-2, MPEG-4 Part 2, VC-1, VP8 | decode | none listed | F5 | F5 | none listed | N2 |
|
||||
| ProRes | decode, encode | none listed | none listed | none listed | none listed | N2 |
|
||||
|
||||
## Findings
|
||||
@@ -157,7 +157,8 @@ in software.
|
||||
- **N1. Encode on Windows hosts.** The Windows arm opens with no encoder (`open_on_rt`, `encodes:
|
||||
false`), because the runtime imports no shared Direct3D 12 texture to write an encoder's input
|
||||
through. On the lab's Windows GPU there is also nothing to encode with: the UHD 630's `vaon12`
|
||||
lists no encoder ([devices.md](devices.md), "Which hardware").
|
||||
lists no encoder entrypoint ([devices.md](devices.md), "Which hardware"; potluck job
|
||||
m3-max-78560). Its decoders, and so the Windows column's cells, are the same paragraph's.
|
||||
- **N2. Mac hosts.** A Mac has no video arm. A VideoToolbox arm waits on the owner's word for a
|
||||
guest disk on the M3.
|
||||
- **N3. HEVC's range extensions profiles at 4:2:0, 8 and 10 bits, on iHD.** iHD's Main 12 decoder
|
||||
@@ -172,8 +173,3 @@ in software.
|
||||
`420f`, `x420` and `xf20`);
|
||||
- those frames landed into a surface that iHD's `VAProfileHEVCMain422_10` encoder takes;
|
||||
- tests and a proof run of an arm64 guest on the Iris Xe.
|
||||
|
||||
## Open cells
|
||||
|
||||
- **Q3. The UHD 630's other formats.** On file is only that `vaon12` decodes H.264 and HEVC Main
|
||||
and Main 10 there. Its VP9, AV1 and range extensions answers are not.
|
||||
Reference in new issue
Block a user