Repository navigation
Conversation
|
Thanks for the clear kernel. We select behaviour by a hardware property rather than by the chip a change was measured on. The block fill is used on one chip:
Amortizing address generation over eight adjacent 16-byte stores is generic, so If you make it the default, we can supply rows on our M1 Pro, M2, M4 Pro and A18 Pro. |
|
The isolated GPU test shows a gain for large uncompressed clears. Median time per 4 MiB layer fell from 14.72 to 11.23 µs (24%) and per 16 MiB layer from 44.38 to 37.09 µs (16%). Both sizes improved in every round. At 4 KiB the median went from 2.39 to 2.55 µs, with overlapping ranges. We used two blocks of full Cyberpunk T2 runs in opposite orders on the M5 Max, native 2560×1600 High, with the fans fixed. The control was Mesa We alternated drivers for four rounds each, timed 32 clears per size after eight warmups, and checked every pixel in the target and both untouched array layers. The individual full-game T2 deltas were +0.11 and −0.21 FPS. Batching adjacent stores earns its keep on large fills here. The results leave the size cutoff and behavior on other chips open. In the separate eight-run test, #460, #461, #466 and #468 together gained 1.35 FPS (29.99 to 31.33). #462 was present on both sides of that comparison. |
|
Thanks for the isolated clear benchmark; 24 % and 16 % per-layer gains on large clears, with every pixel checked, is a convincing result. The remaining point is scope: |
Merge train: independent review (code only, Opus 5.5 xhigh)Verdict: CLEAN WITH NITS. No blocker or major. The block fill writes exactly the same bytes as before.
Train: held only on the open property-gate request (owner decision pending). |
0c9338f to
d1b398c
Compare
|
The block fill is now the path on every chip for uncompressed clears of at least 256 KiB per layer whose size is a multiple of 4 KiB (72360cd).
|
d1b398c to
72360cd
Compare
RyanTheTide
left a comment
There was a problem hiding this comment.
No blockers. Re-review of 72360cd: the block fill is now used on every chip with a 256 KiB cutoff, and the kernel is built for every libagx target, so no chip is left with a NULL program. Both earlier points are resolved. The indexing is right: a 32-lane group covers 256 uint4 (4 KiB), and the grid is size / 128 threads.
The only gap is evidence on the chips this newly reaches. Please add the benchmark to the PR (or link it) and we will run it.
HW rows we can run: M1 Pro, M2, J616s (M4 Pro) and A18 Pro: dEQP-VK.api.image_clearing.*, base vs head, no new failures; plus your clear benchmark at 4 KiB, 256 KiB, 4 MiB and 16 MiB per layer, every word checked. Pass = identical CTS results and no size at or above the cutoff slower than the base.
Nit: the body says 4 KiB clears were "no faster" and the commit message says "slower". Pick one wording.
Assisted-by: LLM (Claude:Opus 5.5)
|
Looks good; approve once the attribution and naming below are fixed and the cross-generation rows from the earlier review are in.
I re-checked the kernel and the dispatch at head. The 256 KiB cutoff (hk_cmd_clear.c:29) was measured on G17C and G16G only. Gen-1 (G13/G14) has a different number of cores per cluster and different store paths, so the AGX2 rows are the ones that could move it. HW row: M1 Pro (G13), M2 (G14) and A18 Pro (G17P) on head 72360cd. Run Assisted-by: LLM (Claude:Opus 5.5) |
Uncompressed image clears launch libagx_fill_uint4, one 16-byte store per invocation, so every store pays its own address generation. Add libagx_fill_uint4_blocks, where each 32-lane group fills a 4 KiB block in eight rounds of adjacent stores and shares the address generation across them, and build it for every libagx target. Use it on every chip for uncompressed levels of at least 256 KiB per layer whose size is a multiple of 4 KiB. The block fill launches an eighth of the groups, so small clears keep the per-store fill: at 4 KiB per layer the block fill showed no gain (median 2.55 us against 2.39 us, with overlapping ranges); from 256 KiB to 400 KiB it came out even, and larger clears were faster. Partial blocks and compressed levels keep their existing paths. vulkan-image-clear-bench (built with the other manual Vulkan tests) times clears of one layer at 4 KiB to 16 MiB and checks every word of the image afterwards. Its image has storage usage, which keeps it uncompressed on every generation, so the clears take the fill paths rather than a metadata clear. Signed-off-by: Erik Bourget <erik@ebourget.net>
72360cd to
43ac3c8
Compare
|
The benchmark is in the PR (43ac3c8), and the 4 KiB wording now matches in the commit message, the code comment and the body: the block fill showed no gain there (median 2.55 µs against 2.39 µs, overlapping ranges). Benchmark. Per side S on the command line (default
For an A/B, run one process per sample with Please use this revision on the M1 Pro and M2. AGX2 compresses a transfer-only image of this format, and a compressed level takes the metadata clear, not either fill. Storage usage keeps the image uncompressed on every generation. I checked which clear runs under
M5 Max rows, base
From 576 KiB up, every run with this PR beats every base run. At 256 KiB and 400 KiB the two come out even within noise; the two 256 KiB sets disagree in sign. That is close to your pass line at the cutoff. If your M1 Pro, M2, J616s or A18 Pro rows show 256 KiB slower, I'll raise the cutoff to 512 KiB. |
|
Thanks, both points are fixed: the commit carries only your Signed-off-by, the body ends with Assisted-by, and the driver is named Borealis. The benchmark is a good addition, and the note that AGX2 needs storage usage to keep the image off the metadata clear would otherwise have spoiled our rows. We will run Assisted-by: LLM (Claude:Opus 5.5) |
|
A18 Pro (
On A18 Pro ( CTS (
Assisted-by: LLM (Antigravity:Gemini 4 Neon) |
|
Marked ready for review — keeping the 256 KiB cutoff as-is pending the M1 Pro / M2 ( On A18 Pro ( |
|
AGX2 row (M2 MacBook Air J413, G14G, fleet82 kernel, user-space Mesa overlays, base = main bc937ed, head = main + this PR 43ac3c8). CTS: dEQP-VK.api.image_clearing.*: base and head both 18842 Pass / 26794 NotSupported, 0 status differences. Perf: slower on AGX2 near the crossover. vulkan-image-clear-bench, 16 alternating base/head rounds. The bench is bimodal per process, so I split the rounds by mode:
In slow mode the min-max ranges do not overlap (256 KiB: base 9.04-9.31, head 10.35-10.65). So the 256 KiB crossover that was measured on G17P makes clears from 256 KiB to about 1-2 MiB slower on G14G. Correctness is fine on AGX2. The threshold would need to come from something the device reports, or be set where the batched path is not slower on every generation we test, before this can land as a fleet-wide win. Full table and methodOverlays: x86 cross builds, VK_DRIVER_FILES per arm, deqp-vk J=8, no reboot, no install. |
RyanTheTide
left a comment
There was a problem hiding this comment.
Review at 43ac3c8. Please exercise exact-head G14G image readback for an interior array layer and verify its untouched neighbors. The small/large fill split also needs paired GPU timing on both sides of the cutoff. The shim confirms path selection, while hardware verifies the writes.
On AGX2 (M2 G14G), vulkan-image-clear-bench (main bc937ed + 43ac3c8) showed slower slow-mode clears with libagx_fill_uint4_blocks across 256 KiB to 16 MiB (+14.8% at 256 KiB, +0.7% at 16 MiB; all-round n=16 medians +14.4% at 256 KiB, +6.8% at 1 MiB, -0.4% at 2.25 MiB, +1.2% at 16 MiB), whereas tested AGX3 parts (G16G, G17P, G17C) are faster or even from 256 KiB upward. Gate libagx_fill_uint4_blocks directly on the kernel-reported dev.params.usc_generation == AGX_ISA_AGX3 so AGX2 keeps libagx_fill_uint4. Signed-off-by: Erik Bourget <erik@ebourget.net>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at live head 43ac3c8a326a (base: aurora-wip, 223 commits behind efabab38502d; not superseded; aurora-silicon/mesa Actions disabled / 0 check runs).
Technical & Checklist Summary
- Kernel & dispatch correctness:
libagx_fill_uint4_blocks(src/asahi/libagx/copy.cl:309-317) and dispatch (src/asahi/vulkan/hk_cmd_clear.c:170-173) are sound:KERNEL(32)withagx_2d(size / 128, layer_count)andsize % 4096 == 0yieldssize / 4096groups covering256 * uint4(4 KiB) each with 64-bitulongbyte indexing, no overlap/gaps, and built for all libagx targets insrc/asahi/clc/asahi_clc.c:359. - §1 (No model gating): No chip gate; applies globally across all generations.
- §3 (Safety): Pass (N/A).
- §4 (Clean-room & attribution): Pass — commit
43ac3c8a326acarries human author/committer and humanSigned-off-by:only (zero AI trailers); PR body hasAssisted-by:. - §6 (Naming): Pass — Borealis naming and neutral
vulkan-image-clear-benchtarget.
Blockers
- §5 / §2 — Measured AGX2 (
G14GM2) performance regression with hardcoded 256 KiB cutoff:
HK_CLEAR_BLOCK_FILL_MIN_B (256 * 1024)(hk_cmd_clear.c:30) is a hardcoded threshold tuned on G17C/G17P/G16G. On M2 (J413/G14G/AGX2, 16 alternating rounds ofvulkan-image-clear-benchat43ac3c8a), the batched path is slower across the cutoff and beyond, with non-overlapping slow-mode ranges:- 256 KiB: +14.8% slow mode (
9.04–9.31vs10.35–10.65 µs),+4.2%fast mode - 400 KiB: +13.8% slow,
+3.8%fast - 484–576 KiB: +8.5% to +9.1% slow,
+2.8%fast - 1 MiB: +6.6% slow (
-0.4%fast); 2.25–16 MiB:+0.7%to+2.6%slow (+1.3%fast at 16 MiB)
Under §5 ("Performance claims: a same-machine A/B with conformance unchanged on every GPU generation the change applies to"), a fleet-wide change cannot land with a confirmed regression on AGX2. Either derive enablement/cutoff from a real hardware property (e.g., ISA/store capability or core/cluster occupancy, with documented hardware rationale per §1) or rework the threshold/kernel so no affected generation regresses.
- 256 KiB: +14.8% slow mode (
- §5 — Stale PR body & remaining cross-generation rows:
Update the PR description to reflect the M2 (G14G) measurements (it still lists M2 as unrun inStill to runand states no regression from 256 KiB up), and complete the requested exact-head verification rows (M1 Pro / M2 readback + paired timing across the cutoff, M4 Pro) after updating the cutoff/gating and rebasing onto currentaurora-wip.
Assisted-by: LLM (Gemini 4 Neon)
|
Gated
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR re-review at live head 61459d5e73f4 (base aurora-wip; the branch is still 230 commits behind, merge base afcc08b71067; previous Dj review at 43ac3c8a326a).
What changed since 43ac3c8a326a
One new commit, 61459d5e73f4 "borealis: restrict block-fill image clears to AGX3". It adds dev.params.usc_generation == AGX_ISA_AGX3 to the libagx_fill_uint4_blocks branch in hk_clear_image() and extends the comment above HK_CLEAR_BLOCK_FILL_MIN_B. There is no rebase and copy.cl is unchanged.
Cleared
- AGX2 regression (measured): AGX2 no longer takes the block fill, so @RyanTheTide's G14G slowdown (+14.8% at 256 KiB slow mode, non-overlapping ranges) cannot occur on this head. Correctness is unchanged; the kernel and its indexing were already LGTM.
- §4: Pass. Both commits have a human author/committer and a human
Signed-off-by:only; zero AI trailers.
Blockers (REQUEST_CHANGES)
- §1: the new generation gate is avoidable, and the PR itself names the likely cause.
usc_generation == AGX_ISA_AGX3is a GPU-generation gate chosen because one generation measured slower. It is not a property that explains why. Your own hypothesis in the 11-23 comment points at the kernel:libagx_fill_uint4_blockscomputesulong base, which stopsagx_nir_lower_addressfrom folding+ 32 * iinto base+index addressing. On G13G that costs a 226-byte preamble and seven 64-bitiadds (201 vs 33 uint32s); on G17P/G17G it costs 64-bit carry chains instead ofbyte_offset. That is a codegen defect on every generation, and it is the cheaper fix. Please:- index with a 32-bit
uintoffset, aslibagx_fill_uint4does (layer stride × layer plus block offset fits in 32 bits for the uint4 units used here, or split the layer term out the way the existing kernel does); - check the
asahi_clcoutput on G13G and G17P, where the 64-bit adds should go; - re-run the G14G sweep. If AGX2 is then even or faster at and above the cutoff, drop the gate. If it is still slower, the commit message has to say why AGX2 is slower with folded addressing, using a hardware property (for example per-store issue or the core count), and the gate should test that property, not the generation.
- index with a 32-bit
- §2:
HK_CLEAR_BLOCK_FILL_MIN_B (256 * 1024)is still a tuned cutoff. The code comment says the cutoff exists because the block fill launches 1/8 of the groups, which makes it a parallelism floor. Derive it from what the device reports (for example enough 4 KiB blocks to give every core N groups, from the core count indev.params), or show the same 256 KiB holds on every generation the path runs on. After blocker 1, that includes AGX2. - Commit hygiene. Commit 1 says "Use it on every chip" and commit 2 contradicts it. Please squash them into one commit whose message describes the final behaviour and evidence. Rebase onto current
aurora-wipwhile you're at it: the branch is 230 commits behind. - §5: exact-head rows. These are still open from the previous round: G14G readback of an interior array layer with its neighbours untouched, plus paired timing on both sides of the cutoff, on the final head. After blocker 1, add a G17C or G17P sweep showing the 32-bit-offset kernel keeps the AGX3 wins (−2.1% to −6.1% on A18 Pro, −5.6% to −23.9% on M5 Max).
Checklist
- §1: Blocked (1).
- §2: Blocked (2).
- §3: N/A.
- §4: Pass.
- §5: Blocked (4).
- §6: Pass.
borealis:subject, neutralvulkan-image-clear-bench.
Assisted-by: LLM (Claude Opus 5.5)
Signed-off-by: Erik Bourget <erik@ebourget.net>
… core count libagx_fill_uint4_blocks declared a 64-bit ulong base offset, which prevented agx_nir_lower_address from keeping the offset calculation in 32-bit registers and forced a 140-byte preamble plus seven 64-bit iadd chains on AGX2 (201 uint32s on g13g) and 16-bit carry chains on AGX3 (276 uint32s on g17p, 247 on g17g, 217 on g18g). Match libagx_fill_uint4 by computing the uint4 index in 32-bit uint arithmetic; this eliminates the preamble and 64-bit adds across all targets (66 uint32s on g13g, 80 on g17p/g15s/g15g/g16g, 74 on g17g, 62 on g18g). Drop the AGX_ISA_AGX3 generation gate in hk_clear_image() and replace the fixed 256 KiB cutoff with a parallelism floor derived from agx_get_num_cores(): require at least four 4 KiB blocks per GPU core across the cleared layers ((size / 4096) * layer_count >= 4 * num_cores). Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Updated the branch to
Pending at |
satchlj
left a comment
There was a problem hiding this comment.
Verdict at c1f8d2f816dc
APPROVE — commit c1f8d2f816dc resolves the prior generation-gate and tuned-cutoff blockers cleanly by switching libagx_fill_uint4_blocks to 32-bit uint indexing across all GPU generations and deriving the dispatch floor from agx_get_num_cores(), passing -Db_ndebug=false Meson suites, live Apple M5 Max vulkan-image-clear-bench readback verification on both sides of the floor, and live dEQP-VK.api.image_clearing CTS with 0 GPU faults.
Blockers
None.
Checked
- Changed files (5):
src/asahi/clc/asahi_clc.c,src/asahi/libagx/copy.cl,src/asahi/vulkan/hk_cmd_clear.c,src/asahi/vulkan/meson.build,src/asahi/vulkan/tests/vulkan_image_clear_bench.c. - Kernel & dispatch math audit (
copy.cl,hk_cmd_clear.c,asahi_clc.c):KERNEL(32) libagx_fill_uint4_blocksbuilds for everylibagxtarget (asahi_clc.c) and uses 32-bituintindexing (cl_global_id.y * layer_stride_uint4 + cl_group_id.x * 256 + cl_local_id.x + 32 * ifori = 0..7), covering exactly256 * 16 = 4096bytes per workgroup with zero overlap or gaps.hk_clear_image()dispatchesagx_2d(size / 128, layer_count)((size / 128) / 32 = size / 4096workgroups per layer) whensize % 4096 == 0and(uint64_t)(size / 4096) * layer_count >= 4 * agx_get_num_cores(&dev->dev), replacing both the AGX3 generation gate and the hardcoded 256 KiB threshold.- Commits carry human
Signed-off-by:.
- Build & host tests (
-Db_ndebug=false, Linux 7.3 aarch64):meson test --suite asahi: 288/288 OK (0 fail).meson test --suite poly: 5/5 OK (0 fail).
- Live Apple M5 Max Vulkan verification (Linux 7.3,
0GPU faults indmesg):vulkan-image-clear-bench 16 128 256 512 1024(clears interior layer 1 and verifies all words of all 3 layers — cleared interior + untouched neighbors 0 and 2):side=16(4 KiB/layer, below floor):verified_words=3072,clear_us=9.5430side=128(256 KiB/layer, below 40-core640 KiBfloor):verified_words=196608,clear_us=13.3685side=256(1 MiB/layer, above floor ->libagx_fill_uint4_blocks):verified_words=786432,clear_us=14.4062side=512(4 MiB/layer,libagx_fill_uint4_blocks):verified_words=3145728,clear_us=31.3854side=1024(16 MiB/layer,libagx_fill_uint4_blocks):verified_words=12582912,clear_us=84.1042
dEQP-VK.api.image_clearing.core.clear_color_image.2d.*(290cases acrossr8g8b8a8_unorm,r16g16b16a16_sfloat,r32g32b32a32_sfloat,r32_uintlinear/optimal multi-layer): 215 Pass, 75 NotSupported, 0 Fail.
- Untested scope: Live AGX2 (M1/M2) and M3/M4 hardware sweeps after the 32-bit indexing change (particularly re-measuring M2 at/above its core-scaled floor).
Evidence
- Built
c1f8d2f816dcwith-Dbuildtype=debugoptimized -Db_ndebug=false -Dvulkan-drivers=asahi -Dgallium-drivers=asahi -Dbuild-tests=true -Dtools=drm-shim. meson test --suite asahi:288/288 OK;--suite poly:5/5 OK.- Live Apple M5 Max
vulkan-image-clear-bench 16 128 256 512 1024: all 5 sizes verified (3072,196608,786432,3145728,12582912words,0mismatches). - Live Apple M5 Max CTS (
290dEQP-VK.api.image_clearing.core.clear_color_image.2d.*cases):215 Pass / 75 NotSupported / 0 Fail,0GPU faults indmesg.
|
Added exact-head J713 (M4 Air,
Updated the PR body's |
|
@DjDeveloperr — updated the PR body with
Still open in |
|
Re-check of the items in Dj's 11-24 review, at c1f8d2f (still merges cleanly onto aurora-wip e1b5658):
Still open: the G14G interior-layer readback and crossover timing (we have M2s and will queue it). Item 1 also needs a decision on the J313 result, which is +2.8 % to +3.5 % at 144 and 256 KiB per layer, the first two sizes above G13G's 128 KiB floor: accept it, or raise the floor from a hardware property. |
|
c1f8d2f J413 M2 Air (G14G B0, 7.3.0-aurora-fleet89) PASS: api.image_clearing.* 19,144 pass / 26,492 not supported / 0 fail on head and on merge-base cedf248, 0 cases differ; vulkan-image-clear-bench 20 interleaved rounds, 0 readback mismatches, no slowdown at 256 KiB any more (-0.9 %); 0 GPU faults, Enforcing, 0 failed, 0 AVC; system Mesa untouched DetailsThis is the G14G crossover retest asked for in review.
|
|
Updated the PR body at unchanged head We are holding merge on
Next step: investigate why |
…lear Signed-off-by: Erik Bourget <erik@ebourget.net>
Keep small uncompressed clears on libagx_fill_uint4 until the clear reaches at least 128 4 KiB blocks (512 KiB) as well as four blocks per GPU core (agx_get_num_cores()). On narrower GPUs (such as 8-core G13G, where 4 * num_cores was only 32 blocks / 128 KiB), launching 36 to 64 workgroups with eight stores per thread showed a repeatable +0.26 us (+2.8% to +3.5%) slowdown at 144 KiB and 256 KiB compared to libagx_fill_uint4, while 1 MiB (256 blocks) and wider GPUs (40-core G17C at 160 blocks / 640 KiB) keep their existing thresholds. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Updated the branch to
|
There was a problem hiding this comment.
Verdict: MERGE at 86abe1d5
Blockers: none (ready for multi-family lab regression overlay and merge).
Checked:
src/asahi/libagx/copy.cl,asahi_clc.c,hk_cmd_clear.c: 32-bituintindexing inlibagx_fill_uint4_blocksworks across all GPU generations without generation gates;86abe1d5raises the crossover floor tomax(128, 4 * agx_get_num_cores())4 KiB blocks (512 KiBmin,640 KiBon 40-core GPUs), eliminating the earlier small-clear regression on 8-coreG13Gwhile retaining large-clear wins onG16G/G17C.- Conflict resolution at
23e513cd(src/asahi/vulkan/meson.build) cleanly preserves bothvulkan-image-clear-benchand upstreamvulkan-compute-store-visibility. - Exact-head host tests (
poly5/5,agx_tests1,726/1,727,asahi_clcall targets,drm-shimpath selection) and exact-head hardware A/B + CTS PASS across J716c (45,636/45,636image_clearingCTS 0 diffs), J713, and J313, with 0 readback mismatches and 0 GPU faults. - Checked for Apple material, tool attribution, private serials, and Borealis naming: clean; human
Signed-off-bypresent;MERGEABLEonaurora-wip.
Evidence
- Head:
86abe1d53d54(base: aurora-wip,mergeable: MERGEABLE,+386/-0).
Signed-off-by: Erik Bourget <erik@ebourget.net>
After libagx_fill_uint4 moved to 256-thread workgroups, both libagx_fill_uint4 and libagx_fill_uint4_blocks fill one 4 KiB block per workgroup; libagx_fill_uint4_blocks launches an eighth of the threads rather than an eighth of the groups. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Updated the branch to
|
There was a problem hiding this comment.
Verdict: FINISH, then merge at de451b95
Blockers:
- Post-
#1270performance justification still open: Sinceaurora-silicon/mesa#1270(0df1e19b) widenedlibagx_fill_uint4fromKERNEL(32)toKERNEL(256)(matching one 4 KiB block per workgroup), the exact-headde451b95vs46f3a68evulkan-image-clear-benchrow on J716c (M5 Max) is now neutral (-0.45%to+0.84%across 256 KiB–16 MiB), J713 (M4 Air) per-size medians are not yet reduced from the raw file, and J313 (M1 Air) exact-head A/B is still pending. Please confirm a measurable post-#1270win on J713/J313 before landing a second clear kernel (or close as superseded by#1270if post-#1270stays neutral across families).
Checked: Merge onto aurora-wip 46f3a68e (93e1fe96), comment update de451b95 (src/asahi/vulkan/hk_cmd_clear.c), full 5-file diff (+388/-0), host test results, and exact-head J716c/J713 CTS + readback rows.
Evidence
- Correctness (0 code bugs):
libagx_fill_uint4_blocks(copy.cl,asahi_clc.c,hk_cmd_clear.c) remains clean with 32-bituintindexing, no generation gates, andmax(128, 4 * agx_get_num_cores())floor;de451b95accurately updates theHK_CLEAR_BLOCK_FILL_MIN_GROUPScomment for the 256-lanelibagx_fill_uint4baseline. - Verification at exact head
de451b95: Hostx86_64(poly5/5,asahi347/347,agx_tests1,812 passed / 1 skipped) and exact-headdEQP-VK.api.image_clearing.*(45,636 cases, 0 diffs) +vulkan-image-clear-benchreadback pass on both J716c (M5 Max) and J713 (M4 Air) with 0 GPU faults / 0 new kernel errors.
There was a problem hiding this comment.
Verdict: HOLD at de451b9
Keep the comparative performance gate from the current review. J716c is neutral after #1270, while the exact-head J713 medians and J313 A/B are still outstanding. The correctness results pass. A reproducible improvement against the landed #1270 baseline is needed to justify adding a second clear kernel.
|
J316s / M1 Pro (G13S C0), post-#1270 paired A/B. Compared At 16 MiB/layer, the median paired delta was +4.87% in the first run (arm medians 178.62 and 191.13 µs) and +10.00% on repeat (174.81 and 190.50 µs). The candidate was slower in 15 of 16 pairs. Smaller-size timings varied across runs. This is the G13S peer result. The post-#1270 G13G J313 comparison and J713 medians will determine whether a hardware-supported scope retains a reproducible win. |
|
J713 M4 Air (G16G B0), post-#1270 paired A/B. Fresh measurements at
The 4 MiB improvement repeats on G16G. At 16 MiB the same pair slowed down on the G13S peer, and the existing J716c result was neutral. The J313 G13G post-#1270 row remains useful for deciding the scope of the second clear path. |
|
Closing this as superseded by #1270. The post-#1270 rows show the second kernel no longer pays its way.
Before #1270, J713 was -24% at 1 MiB and J716c -12% at 4 MiB. #1270 gives the base fill one 4 KiB block per workgroup, the same group count as We looked at keeping a window, with a ceiling in groups per core added to the existing floor. It would fit the rows so far, but it is a second tuned constant standing in for memory bandwidth per core, which the driver doesn't report. It would also rest on a gain of about 3% on one family, with no workload gain behind it: the full Cyberpunk T2 runs were inside noise. That isn't enough to justify a second clear kernel. Thanks for the J316s and J713 pairs. They settled it. If the clear benchmark ( |
|
Thanks for closing this out and documenting the post-#1270 comparison. The J713 and J316s data made the remaining tradeoff clear. I’ve withdrawn the pending J313 run for this PR. |
What: Batch adjacent 16-byte stores in Borealis uncompressed image clears via
libagx_fill_uint4_blocks(src/asahi/libagx/copy.cl,src/asahi/clc/asahi_clc.c,src/asahi/vulkan/hk_cmd_clear.c) using 32-bituintindexing across all GPU generations when the clear covers at leastmax(128, 4 * agx_get_num_cores())4 KiB blocks (512 KiBminimum, scaling up to640 KiBon 40-core GPUs). Addsvulkan-image-clear-bench(src/asahi/vulkan/tests/vulkan_image_clear_bench.c).Tested: Host
x86_64atde451b95c0a7(poly5/5,asahi347/347,agx_tests1,812 passed / 1 skipped,vulkan-image-clear-benchbuilds cleanly). Exact-headde451b95c0a7vs46f3a68e60d9: J716cM5 Max(dEQP-VK.api.image_clearing.*45,636 cases 0 diffs;vulkan-image-clear-benchneutral on post-#1270KERNEL(256)base, readbacks verified; boot/smoke clean, 0 GPU faults) and J713M4 Air(dEQP-VK.api.image_clearing.*45,636 cases 0 diffs;vulkan-image-clear-bench16 ABBA runs 0 readback mismatches, per-size medians pending raw reduction; default-boot baseline smoke clean, 0 newdmesgerror lines during this PR's Mesa run window); J313M1 Airexact-head row pending. Prior-merge-base86abe1d53d54vsa0164c9101c1(pre-#1270KERNEL(32)) rows across J716c, J713 (>= 512 KiBthrough16 MiB-24.00%at1 MiBto-1.64%at16 MiB), and J313 are in Evidence.Risk: two-way door · all Macs (M1–M6 /
G18G, Neo)Revert:
git revert -m 1 <merge-sha>onaurora-wip; no persistent on-disk, shader-cache (hk_cache_identity()hashesbuild_sha), UAPI, or firmware state is changed.Not yet: Reduction of per-size
vulkan-image-clear-benchmedians from the raw timing file onJ713(M4 Air,G16G B0, currently awaiting human recovery); exact-head paired A/B vsorigin/aurora-wip(46f3a68e60d9, post-#1270KERNEL(256)libagx_fill_uint4) atde451b95c0a7on local lab MacJ313(M1 Air,G13G B1:vulkan-image-clear-benchABBA across the512 KiBfloor,dEQP-VK.api.image_clearing.*, and boot/smoke checks with kernel/Stage 2 hashes and dmesg excerpt); plus externalJ413(M2 Air,G14G B0),G15(M3),G17P(A18 Pro Neo / M4 Pro J616s),G17S, andG18G(M6) rows (no external hardware in lab).Details
Change
src/asahi/libagx/copy.cl(libagx_fill_uint4_blocks): Each 32-lane group fills one 4 KiB block in eight rounds of adjacent 16-byte stores, sharing address setup across eight stores. Indexing in 32-bituint(cl_global_id.y * layer_stride_uint4 + cl_group_id.x * 256 + cl_local_id.x), matchinglibagx_fill_uint4, eliminates the 140-byte preamble and seven 64-bitiaddchains on AGX2 (201 -> 66uint32s ong13g) and the 16-bit split carry chains on AGX3 (276 -> 80uint32s ong17p/g15s/g15g/g16g,247 -> 74ong17g,217 -> 62ong18g).src/asahi/clc/asahi_clc.c: Buildlibagx_fill_uint4_blocksfor everylibagxtarget.src/asahi/vulkan/hk_cmd_clear.c(hk_clear_use_block_fill()/hk_clear_image()): Selectlibagx_fill_uint4_blockson all generations whensize % 4096 == 0and total blocks(uint64_t)(size / 4096) * layer_count >= max(128, 4 * agx_get_num_cores(&dev->dev))(HK_CLEAR_BLOCK_FILL_MIN_GROUPS = 128,HK_CLEAR_BLOCK_FILL_GROUPS_PER_CORE = 4), wheresizeis the tile-aligned padded level size rather than the unaligned logical image size (width * height * bpp). For example, a176×176R32G32B32A32_UINTlayer has a484 KiBlogical size (176 × 176 × 16 B), while its padded tile-aligned level size is>= 512 KiB(>= 128blocks), so the cutoff calculation (padded level size / 4096 * layer_count) selectslibagx_fill_uint4_blocks. Afteraurora-silicon/mesa#1270(0df1e19b9174) movedlibagx_fill_uint4fromKERNEL(32)toKERNEL(256), both kernels launch one 4 KiB block per workgroup (size / 4096groups per layer), withlibagx_fill_uint4_blockslaunching an eighth of the threads per group (32 lanes × 8 stores vs 256 lanes × 1 store). Requiring at least 128 blocks (512 KiB) keeps small clears (144–256 KiB, where 36–64 eight-store workgroups left narrower 8-coreG13Gpaying+0.26 µsstore-latency overhead againstKERNEL(32)libagx_fill_uint4) onlibagx_fill_uint4, while scaling the floor with4 * agx_get_num_cores()(640 KiBon 40-coreG17C) so wide GPUs stay saturated. Partial blocks and compressed levels keep their existing paths.origin/aurora-wip(cedf24806bcb) in523f52be9f12, addedc1f8d2f816dcon top, mergedorigin/aurora-wip(a0164c9101c1) in23e513cde215to resolve thesrc/asahi/vulkan/meson.buildtest-executable conflict without rewriting public history, raisedHK_CLEAR_BLOCK_FILL_MIN_GROUPSto128in86abe1d53d54, mergedorigin/aurora-wip(46f3a68e60d9, including#12700df1e19b9174) in93e1fe96a14f, and updated thehk_cmd_clear.cblock-fill comment inde451b95c0a7for 256-lanelibagx_fill_uint4.Benchmark (
vulkan-image-clear-bench)src/asahi/vulkan/tests/vulkan_image_clear_bench.cbuilds with-Dbuild-tests=true(manual test, outsidemeson test) and only needs-lvulkan(cc -O2 -o vulkan-image-clear-bench vulkan_image_clear_bench.c -lvulkan).Per side
S(default16 128 512 1024, i.e. 4 KiB, 256 KiB, 4 MiB, 16 MiB per layer):R32G32B32A32_UINToptimal-tiling image with transfer and storage usage (storage usage keeps the image uncompressed on every generation).clear_usand exiting non-zero on any mismatch.Credits
Tested-by: satchlj (J716c M5 Max & aarch64 Meson suite at
c1f8d2f816dc)Tested-by: RyanTheTide (J413 M2 Air at
c1f8d2f816dc)Evidence
aurora-wip46f3a68e60d9incremental tree plus head patch, sharinggit-97742505d8indriverInfoand identified by source SHA andlibvulkan_asahi.soSHA-256:8e738aeae25de9f4a7870f081ccce9ff2693997e2a2dfb378b543b075ac330e6for headde451b95c0a7vs291c55d4954f28aa2fcfc362db21decf1aeb7d0a65ed154c9aba12b047dbe595for base46f3a68e60d9); default kernel image SHA-256bf2582ab357573db64031f39e7bc9d617eb574c6b221364ff417810bbddf4c87, default Stage 2 SHA-25621edee972e1ff1718c6f41c32b91ee151afdc58cbb69f16f2f6a4d8d4c722170, AC power. CTS runs usedtools/cts/aurora-cts-ab.py(6 workers, shader cache on, chunk 300, CTS7ba03cdac7ae) with its case-list expansion patched locally to keep onlyTEST:lines (the repository copy mis-parses this CTS build's export); Borealis arms are selected throughVK_DRIVER_FILES.dEQP-VK.api.image_clearing.*: 45,636 cases, 24,418 Pass / 21,218 NotSupported on both arms, 0 diffs, 0 GPU-error lines.vulkan-image-clear-bench(built from the PR tree'stests/vulkan_image_clear_bench.c),VK_DRIVER_FILESper arm, 7 rounds in A B / B A order, medianclear_us(image side, bytes per layer): 16 (4 KiB) 2.065 -> 2.141 (+3.66%); 128 (256 KiB) 1.818 -> 1.810 (-0.43%); 181 (512 KiB) 2.581 -> 2.578 (-0.10%); 192 (576 KiB) 2.574 -> 2.572 (-0.10%); 202 (638 KiB) 3.030 -> 3.038 (+0.26%); 256 (1 MiB) 3.630 -> 3.646 (+0.43%); 512 (4 MiB) 10.961 -> 11.053 (+0.84%); 1024 (16 MiB) 37.445 -> 37.276 (-0.45%). Every word of the three layers verified. On J716c the post-#1270KERNEL(256)base leaves no measurable difference around the 512 / 640 KiB floor.eDP-13456x2234@120 enabled; Apple MTP keyboard, trackpad and SMC lid devices enumerated (not exercised remotely);wlan0connected, 0% loss over 3 pings;AppleJ716card present withspeakerguarddv2 active (no playback in this row); BorealisApple M5 Max (G17C B1)withvkcube --c 240 --wsi waylandclean; 0 failed units (system and user); 0 LSM denials (no SELinux/AppArmor loaded); 0 GPU fault, MMU fault, SError or Oops lines. Redacteddmesgexcerpt (default boot, unchanged by the runs):aurora 2302600000.gpu: GPU firmware: 27.2 (26B123), G17C; 0GPU fault/MMU fault/DeviceLostlines after all runs; theerr+set is the boot's usual 55 lines (apple-dcp ... unable to match service ...andsystemd-gpt-auto-generator), unchanged.M4 MacBook Air,T8132,G16G B0,AGX3B, 2026-11-28): native release base-plus-patch builds (aurora-wip46f3a68e60d9plus head patch SHA-256 verified byte-identical togit diff 46f3a68e60d9 de451b95c0a7, built on the aarch64 lab sibling Mac, sharinggit-97742505d8indriverInfoand identified by source SHA andlibvulkan_asahi.soSHA-256:8e738aeae25de9f4a7870f081ccce9ff2693997e2a2dfb378b543b075ac330e6for headde451b95c0a7vs291c55d4954f28aa2fcfc362db21decf1aeb7d0a65ed154c9aba12b047dbe595for base46f3a68e60d9), selected viaVK_DRIVER_FILESon battery; default Linux 7.3.0 (default J713 7.3.0 kernel) kernel image SHA-256592f7bc8834d8796d5bdb086091e90ac96fc6a17a83769cbadc92b3268604c49, default Stage 2 SHA-2563b2d2f059858d1891b225910864c02d68afb1b42893667e0afa8666491651071.dEQP-VK.api.image_clearing.*(CTS7ba03cdac7ae, 3 workers,aurora-cts-ab1.0, all45,636cases):23,514 Pass / 22,122 NotSupported / 0 Failon both arms, 0 diffs.vulkan-image-clear-bench(sides16 128 160 192 256 512 1024,4 KiBto16 MiBper layer,16runs /8per arm ABBA): every run verified all words (0readback mismatches, rc0). Observed single-run values (not reduced medians):<= 400 KiB/layerequal within noise (1.2 / 2.1 / 2.6 us),1 MiB4.8 usboth,4 MiB29.8–30.1 usPR vs31.1–31.4 usbase,16 MiB199–247 usPR vs199–203 usbase (single outliers up to247 µsrecorded on both arms; thermal state varied across the pass). Per-size medians have not been reduced yet because the raw timing file remains on J713 (currently awaiting human recovery).eDP-12560x1664@60 enabled, input enumerated,wlan03/3 gateway ping (0% loss),speakerguardd-v2active with protected-sinksgv2.voicingtone rc 0, BorealisApple M4 (G16G B0)Vulkan 1.4.363 (glmark25,047),0failed units (system and user),0AppArmor denials (no SELinux),4pre-existing baselineerr+boot lines (AFK[ep:20], unsupported DFB layout,apple_sepmatching,brcmfmacring 4). Per-arm Mesavulkaninfo --summary/vkcubesmoke passed with0newdmesgerror lines during this PR's Mesa run window.Host build and unit tests at
de451b95c0a7x86_64):-Doptimization=2 -Ddebug=false -Db_ndebug=false -Dbuild-tests=true -Dtools=drm-shim -Dvulkan-drivers=asahi -Dgallium-drivers=asahi -Dplatforms=wayland -Dglx=disabledninja -C _build: clean build includingsrc/asahi/vulkan/vulkan-image-clear-bench;_build/src/asahi/lib/libagx_shaders.hemitsLIBAGX_FILL_UINT4 = 36andLIBAGX_FILL_UINT4_BLOCKS = 37.meson test -C _build --suite poly: 5/5 pass (0fail).meson test -C _build --suite asahi: 347/347 pass (0fail)._build/src/asahi/compiler/agx_tests --gtest_brief=1: 1,812 pass, 1 pre-existing skip (NativeFMA.ExactDyadicOracle, 1,813 total).Prior-merge-base host tests, codegen, and
drm-shimat86abe1d53d54x86_64):-Doptimization=2 -Ddebug=false -Db_ndebug=false -Dbuild-tests=true -Dtools=drm-shim -Dvulkan-drivers=asahi -Dgallium-drivers=asahi -Dplatforms=wayland -Dglx=disabledmeson test --suite poly: 5/5 pass (0 fail).agx_tests --gtest_brief=1: 1,726 pass, 1 pre-existing skip (NativeFMA.ExactDyadicOracle, 1,727 total).meson test --suite asahi: 326/337 pass, 11 fail; all 11 failures were unrelated pre-existing/headless-environment failures onorigin/aurora-wip(a0164c9101c1), now resolved on46f3a68e60d9.libagx_shaders.cbinary word counts forlibagx_fill_uint4_blocks:g13g66,g17p/g15s/g15g/g16g80,g17g74,g18g62uint32s;vulkan-image-clear-benchbuilt cleanly.drm-shim(vulkan-image-clear-benchundergdbbreaking onagx_get_precompiled, checking both the 3-layer initial clear and 1-layer timed clears):g13g(8 cores, floormax(128, 32) = 128blocks =512 KiB):side=96(144 KiB/layer,432 KiB3-layer) ->LIBAGX_FILL_UINT4(36) for both 3-layer and 1-layer;side=128(256 KiB/layer),side=144(324 KiB/layer),side=160(400 KiB/layer) -> 3-layerLIBAGX_FILL_UINT4_BLOCKS(37), 1-layerLIBAGX_FILL_UINT4(36);side=176(484 KiBlogical, tile-aligned level>= 512 KiB),side=192(576 KiB/layer),side=256(1 MiB/layer) ->LIBAGX_FILL_UINT4_BLOCKS(37) for both.g14g,g16g(10 cores, floormax(128, 40) = 128blocks),g17p(5-core shim, floormax(128, 20) = 128blocks), andg17s(20 cores, floormax(128, 80) = 128blocks): identical switchover —side=96->LIBAGX_FILL_UINT4(36) for 3-layer and 1-layer;side=128(144/160checked ong17p) -> 3-layer (37), 1-layer (36);side=176/192/256->LIBAGX_FILL_UINT4_BLOCKS(37).Prior-merge-base hardware A/B at
86abe1d53d54vsaurora-wipa0164c9101c1(pre-#1270KERNEL(32)libagx_fill_uint4)Cross-built aarch64 release Borealis ICDs (
-Doptimization=2 -Ddebug=false -Db_ndebug=false -Dvulkan-drivers=asahi,libvulkan_asahi.sosha256:basea0164c9101c161a02818ab44113440360aed455d208158fd2e66414f1b3580d3501d195103d0, head86abe1d53d548b911b07cdcb438619571c5a973c594e8125cb9a4814545dd508acb5fc721f45;vulkan-image-clear-benchsha256d94634a37d43b8cb438fa8a4b1d2693ef9556e226a3f3a976d324470dec29224), selected per process viaVK_DRIVER_FILES, Linux 7.3.0, default command line, AC online, 0 readback mismatches across all invocations.J716c (
M5 Max,G17C B1) at86abe1d53d54vsa0164c9101c1vulkan-image-clear-bench(25 ABBA rounds = 50 samples/arm/size, µs):basemedian (IQR)462median (IQR)Sizes
<= 637.6 KiBstay below the 40-core640 KiBfloor (noise at µs scale).dEQP-VK.api.image_clearing.*(45,636 cases,NIR_DEBUG=novalidateidentically on both arms becausebasea0164c9101c1trips NIR validation invk-meta-copy-buffer-to-image-fragunder-Db_ndebug=false): 24,418 Pass / 21,218 NotSupported / 0 Fail both arms, 0 diffs (.ressha2563358e861a4c0e422...),0GPU faults /0newdmesglines (1,203before/after),0new failed systemd units.J713 (
M4 MacBook Air,G16G B0) at86abe1d53d54vsa0164c9101c1vulkan-image-clear-bench(40 interleaved ABBA rounds = 80 samples/arm/size, 1,280 invocations, µs): below the512 KiBfloor flat (-0.45%to+0.09%); padded level>= 512 KiBthrough16 MiB-24.00%(at1 MiB) to-1.64%(at16 MiB):basemedian (IQR)462median (IQR)462faster>= 512 KiB)144 KiBand256 KiBstay onlibagx_fill_uint4and are flat (replacing the earlier-headc1f8d2f816dc-5%block-path speedup at256 KiB). Side 176 (484 KiBlogical image size) enterslibagx_fill_uint4_blocksbecause the cutoff multiplies the padded tile-aligned level size by layer count (>= 512 KiB/>= 128blocks).dEQP-VK.api.image_clearing.*(45,636 cases, Vulkan CTS7ba03cdac7ae, 2 workers): raw batch base23,469 Pass / 22,122 NotSupported / 24 Fail / 21 Crashvs head23,454 / 22,122 / 23 Fail / 37 Crash(85 bidirectional diffs frombasea0164c9101c1'svk-meta-copy-buffer-to-image-frag/agx_compile.c:20037NIR validation abort under-Db_ndebug=false). Solo reruns across all 95 non-Pass cases (2 passes/arm, plus 8 more on the 23 remaining cases; crash rates base55/190+121/230vs head54/190+128/230) passed every case on both arms (all batchFails passed solo) -> 0 deterministic diffs.0GPU faults/hangs/OOMs,0failed systemd units.J313 (
M1 MacBook Air,G13G B1) at86abe1d53d54vsa0164c9101c1vulkan-image-clear-bench(40–60 samples/arm ABBA, cache off, µs):basemedian (µs)462median (µs)462/basemediann/ armThe prior
c1f8d2f816dc144–256 KiBregression (+2.8%to+3.5%) is eliminated (1.000x–1.002x). At64 MiB,#462holds steady at1,013 µswhilebaseis bimodal (~1,030 µsin 10/60 samples,~1,127 µsin 50/60).dEQP-VK.api.image_clearing.*(45,636 cases, Vulkan CTS1.4.6.2-4-gcbe875d1aa08, 2 workers): 19,144 Pass / 26,492 NotSupported / 0 Fail both arms, 0 diffs,0crashes,0GPU faults/OOMs,0failed systemd units.Host unit tests, codegen, and
drm-shimpath selection at prior headc1f8d2f816dcx86_64):-Doptimization=2 -Ddebug=false -Db_ndebug=false -Dbuild-tests=true -Dtools=drm-shim -Dvulkan-drivers=asahi -Dgallium-drivers= -Dplatforms=waylandmeson test --suite asahi: 225/225 pass (0 fail).agx_tests: 1,459 pass, 1 pre-existing skip (NativeFMA.ExactDyadicOracle, 1,460 total).asahi_clcbinary word counts forlibagx_fill_uint4_blocks(64-bit ulong->32-bit uintindexing):g13g:201 -> 66uint32s (0 B preamble, zero 64-bitiadds)g17p/g15s/g15g/g16g:276 -> 80uint32s (0 B preamble, zero 64-bit carry chains)g17g:247 -> 74uint32sg18g:217 -> 62uint32sPrior head
c1f8d2f816dcaarch64& J716c (M5 Max,G17C) verification (satchlj)Linux 7.3 aarch64):-Dbuildtype=debugoptimized -Db_ndebug=false -Dvulkan-drivers=asahi -Dgallium-drivers=asahi -Dbuild-tests=true -Dtools=drm-shimmeson test --suite asahi: 288/288 OK (0 fail);meson test --suite poly: 5/5 OK (0 fail).vulkan-image-clear-bench 16 128 256 512 1024(interior layer 1 cleared, all 3 layers verified, 0 mismatches, 0 GPU faults indmesg):side=16(4 KiB/layer, below floor):verified_words=3072,clear_us=9.5430side=128(256 KiB/layer, below 40-core640 KiBfloor):verified_words=196608,clear_us=13.3685side=256(1 MiB/layer, above floor ->libagx_fill_uint4_blocks):verified_words=786432,clear_us=14.4062side=512(4 MiB/layer,libagx_fill_uint4_blocks):verified_words=3145728,clear_us=31.3854side=1024(16 MiB/layer,libagx_fill_uint4_blocks):verified_words=12582912,clear_us=84.1042dEQP-VK.api.image_clearing.core.clear_color_image.2d.*(290cases): 215 Pass / 75 NotSupported / 0 Fail,0GPU faults indmesg.Paired J716c (M5 Max,
G17C B1) A/B at prior headc1f8d2f816dcvs merge-basecedf24806bcbAArch64 release cross-builds (
-Doptimization=2 -Ddebug=false -Db_ndebug=false,libvulkan_asahi.sosha2566270200a2c9f768498755ca610e1b812ee7dc0ac144c3de679ab9f73df928303base vsc4f02b6b7d66a3c0198c7db0761a57aab289136b864d74ce3bc2db367ba07426PR,VK_DRIVER_FILES, Linux 7.3.0, GPU firmware27.2):vulkan-image-clear-bench(same executable sha256b915e2e36cbf5f0b7aa4ac0b6ab56b62726b6f56da60817cba327c3897aa91a2across both ICDs, 41 interleaved roundsA B/B A, 0 readback failures):cedf24806bcb(µs)c1f8d2f816dc(µs)dEQP-VK.api.image_clearing.*(all 45,636 mustpass cases, 6 shards): 24,418 Pass / 21,218 NotSupported / 0 Fail both arms, 0 diffs,0GPU-error lines,0AVC lines (SELinux not built).Paired J713 (M4 Air,
G16G B0) A/B at prior headc1f8d2f816dcvs merge-basecedf24806bcbAArch64 release cross-builds (
libvulkan_asahi.sosha256629a758c222b700db61ca1767ca2a930deeab63f039bd30bf51a19161e8c923abase vs76b39400704337b75a64a8ee6e9d7a9df57b8f64b16bf5d584061d2f4420ddaePR,VK_DRIVER_FILES, Linux 7.3.0, Vulkan CTS1.4.6.2-4-gcbe875d1aa087da57474a0b1dea3cd6d41dc0366):vulkan-image-clear-bench(same executable sha256b915e2e36cbf5f0b7aa4ac0b6ab56b62726b6f56da60817cba327c3897aa91a2,MESA_SHADER_CACHE_DISABLE=true, 0 readback mismatches across all 120 processes; Run 1 = 20 interleaved rounds, Run 2 = 40 interleaved rounds):dEQP-VK.api.image_clearing.*(all 45,636 mustpass cases, 6 shards, fresh per-arm shader cache): 23,514 Pass / 22,122 NotSupported / 0 Fail both arms, 0 diffs,0crashes (0new kernel errors / GPU faults / OOM kills / failed units / AppArmor denials; SELinux not installed).dEQP-VK.api.copy_and_blit.core.image_to_image.*(stride 40, 1,318 cases, Vulkan CTS7ba03cdac7ae): 846 Pass / 472 NotSupported / 0 Fail, identical to base (0diffs,0crashes).Paired J413 (M2 Air,
G14G B0) A/B at prior headc1f8d2f816dcvs merge-basecedf24806bcb(RyanTheTide)Native
aarch64Fedora 45 release builds (-Dbuildtype=release -Db_ndebug=false -Dvulkan-drivers=asahi,VK_DRIVER_FILES, shader cache off, Linux7.3.0-aurora-fleet89, deqp-vk1.4.7.13fd4ea318fe2, system Mesa untouched):vulkan-image-clear-bench(20 interleaved alternating rounds, 0 readback mismatches):c1f8d2f816dc(µs)dEQP-VK.api.image_clearing.*(all 45,636 cases, 4 parallel processes): 19,144 Pass / 26,492 NotSupported / 0 Fail both arms, 0 diffs,0GPU faults/recoveries/timeouts/rejected submits,0AVC,0failed units, Enforcing.Paired J313 (M1 Air,
G13G B1) A/B at prior headc1f8d2f816dcvs merge-basecedf24806bcbAArch64 release cross-builds (
libvulkan_asahi.sosha256cc9098300cf4ae2e6dd7ef251ca15cc15e44dcd99e79fb1e080204417accaeddbase vsaabbdcc18a38636d5a7babe02ebd2d330a237a2bc49a1ab22e3db35e51a9ac49PR,VK_DRIVER_FILES, Linux7.3.0, Vulkan CTS1.4.6.2-4-gcbe875d1aa087da57474a0b1dea3cd6d41dc0366):vulkan-image-clear-bench(same executable sha256b915e2e36cbf5f0b7aa4ac0b6ab56b62726b6f56da60817cba327c3897aa91a2,MESA_SHADER_CACHE_DISABLE=true, 0 readback mismatches across all 120 processes):dEQP-VK.api.image_clearing.*(all 45,636 mustpass cases, 6 shards, fresh per-arm shader cache): 19,144 Pass / 26,492 NotSupported / 0 Fail both arms, 0 diffs,0new kernel error lines,0GPU fault/recovery/OOM/AppArmor denials (SELinux not installed). Side 1024 clears 16 MiB in ~257 µs (~65 GB/s, bandwidth-bound on M1), while sides 96 and 128 (first two sizes on the block path) paid a consistent+0.26 µsoverhead under the prior128 KiBfloor.Prior-head hardware runs (superseded by
c1f8d2f816dc, kept for reference)G17P B1, MacBook Neo) at43ac3c8a326avsafcc08b7106, Linux7.3.0-41.fc44.aurora.aarch64, 8 alternating rounds ofvulkan-image-clear-bench(MESA_SHADER_CACHE_DISABLE=true, all words verified), 0 GPU faults / 0 AVC denials:-2.14%at 256 KiB,-3.26%at 400 KiB,-4.65%at 484 KiB,-6.05%at 576 KiB,-3.06%at 1 MiB,-0.89%at 2.25 MiB,-0.47%at 4 MiB,-0.20%at 16 MiB.dEQP-VK.api.image_clearing.*: 23,514 Pass, 22,122 NotSupported, 0 Fail, 0 diffs vs base.G16G) at43ac3c8a326a:dEQP-VK.api.image_clearing.*(45,636 cases, 1,274 on the new path): same results as base; 4 MiB/layer clear 3.7% faster, 16 MiB/layer unchanged.G14G, MacBook Air J413) onmainbc937edc540+43ac3c8aoverlay (with the priorulongkernel):dEQP-VK.api.image_clearing.*: 18,842 Pass, 26,794 NotSupported, 0 Fail, 0 diffs vs base;vulkan-image-clear-bench(n=16rounds) regressed near 256 KiB (+14.4%all-round median,+14.8%slow-mode9.04–9.31vs10.35–10.65 µs), which prompted the 32-bit indexing fix inc1f8d2f816dc.G17C) at43ac3c8a326avsafcc08b71067(previous transfer-only benchmark revision; 3-layer image is uncompressed on M5): 4 KiB (below cutoff)2.58 -> 2.30 µs(n=4); 256 KiB1.96/2.78 -> 2.04/2.74 µs(+3.8%/-1.6%,n=4+8); 400 KiB2.42 -> 2.43 µs(+0.4%,n=8); 576 KiB3.00 -> 2.84 µs(-5.6%,n=8); 1 MiB4.51 -> 3.88 µs(-13.9%,n=8); 2.25 MiB8.77 -> 6.94 µs(-20.8%,n=8); 4 MiB14.76 -> 11.22 µs(-23.9%,n=4); 16 MiB44.84 -> 37.45 µs(-16.5%,n=4).ccbbb1c, borealis: expose single-texel buffer offsets on every M5 part #450/agx: respect destination register limits when coalescing AGX3C splits #451/agx: apply single-sample coverage before in-tile MRT stores #452 on57df4db849ain both arms): Replay FPS12.029 -> 12.067(+0.31%), Vertex4.388 -> 4.391 ms/frame, Fragment12.711 -> 12.700 ms/frame, Compute25.281 -> 25.218 ms/frame.