Skip to content

borealis: share runtime attachment elision, stencil export, PBE fill, and WSI bounds across native AGX3 - #931

Merged
RyanTheTide merged 2 commits into
aurora-wipfrom
perf/borealis-shared-runtime-fastpaths
Nov 24, 2026
Merged

RyanTheTide merged 2 commits into
aurora-wipfrom
perf/borealis-shared-runtime-fastpaths

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 24, 2026 •

Copy link
Copy Markdown

Problem

Several Borealis runtime correctness fixes and performance fast paths remained gated to G17P or G17P/M5 only even though the underlying paths are shared across native AGX3 (G15/G16/G17P), M5, and (for preserve_loaded_color and use_stencil_export) AGX2:

  • preserve_loaded_color (hk_cmd_draw.c:4793): preserves loaded color-attachment producers when an earlier attachment clear was lowered to compute; purely a footprint-tracking correctness fix with zero chip dependency.
  • dev->meta.use_stencil_export (hk_cmd_meta.c:91): already enabled on AGX2, G17P, M5, and G18G (!native_agx3 || G17P); only G15 and G16 were omitted, falling back to an 8-pass discard stencil blit instead of single-pass MSAA depth+stencil resolve.
  • hk_g17p_elide_untouched_color, hk_g17p_note_first_draw, and vs_covers (hk_cmd_draw.c, hk_shader.c): pure NIR clip-square coverage analysis and BG/EOT load-op elision using shared hk_build_bg_eot().
  • hk_g17p_fill_buffer_pbe_supported (hk_cmd_meta.c:5168): already called inside agx_chip_native_or_m5() and uses agx_chip_descriptor_generation() to validate the linear RGBA32_UINT PBE descriptor.
  • hk_queue_admits_at_entry (hk_queue.c:1380) and hk_wsi_allocate_memory (hk_wsi.c:58,82): pure userspace submit-entry admission and native UMA WSI allocation tagging / cgroup bounds.

Change

  • Remove the agx_chip_g17p_or_m5() gate on preserve_loaded_color so all Borealis generations preserve loaded attachment producers.
  • Enable dev->meta.use_stencil_export = true uniformly across all generations (adding G15 and G16).
  • Widen hk_g17p_elide_untouched_color, hk_g17p_note_first_draw, vs_covers, hk_g17p_fill_buffer_pbe_supported, and hk_queue_admits_at_entry from G17P/M5 to agx_chip_native_or_m5().
  • Widen hk_wsi_allocate_memory from AGX_CHIP_G17P to agx_chip_native_agx3().
  • Zero overlap with #824, #633, #820, #907, #827, #822, #896, #902, or #910.

Testing

Exact head 3ee8572242b7 (arm64 ICD libvulkan_asahi.so sha256 534a7bc51d3cc462... vs aurora-wip 912c9e4cc7e sha256 18224556d3f83964..., userspace-only via VK_DRIVER_FILES, 0 GPU faults, 0 new AVCs, Enforcing, 0 failed units):

  • Host unit tests: meson test --suite asahi 245/245 PASS.
  • J413 (M2 Air, G14G AGX2, fleet87): control 87/96 Pass, b3_dynamic 79/80 Pass, b3_runtime 57/57 Pass — 0 Fail, 100% identical to base.
  • J713 (M4 Air, G16G AGX3, fleet85): b3_dynamic 80/80 Pass (0 Fail), control (excluding pre-existing baseline MSAA depth submit EINVAL) 95/95 Pass, b3_runtime identical to base (hits same pre-existing fleet85 MSAA depth resolve EINVAL).
  • Neo (A18 Pro, G17P regression, fleet87): b3_dynamic 80/80 Pass, b3_runtime 57/57 Pass, control 96/96 Pass — 0 Fail, 100% identical, 0 regressions.

Still to run

  • G13 (J316s M1 Pro) and G15 (J615 M3 Air) exact-head CTS rows are queued on lab hardware and will be posted as a PR comment once their current locks clear.
Exact-head CTS matrix & environment receipts (3ee8572)
Machine SoC / Gen Kernel Arm b3_dynamic (80) b3_runtime (57) control GPU faults / New AVCs
J413 (M2 Air) G14G (AGX2) 7.3.0-aurora-fleet87 base (912c9e4cc7e) 79/80 Pass, 0 Fail, 1 NS 57/57 Pass, 0 Fail 87/96 Pass, 0 Fail 0 / 0
J413 (M2 Air) G14G (AGX2) 7.3.0-aurora-fleet87 b3 (3ee8572242b) 79/80 Pass, 0 Fail, 1 NS 57/57 Pass, 0 Fail 87/96 Pass, 0 Fail 0 / 0
J713 (M4 Air) G16G (AGX3) 7.3.0-aurora-fleet85 base (912c9e4cc7e) 80/80 Pass, 0 Fail 1/2 (baseline MSAA EINVAL)* 95/95 Pass, 0 Fail* 0 / 0
J713 (M4 Air) G16G (AGX3) 7.3.0-aurora-fleet85 b3 (3ee8572242b) 80/80 Pass, 0 Fail 1/2 (baseline MSAA EINVAL)* 95/95 Pass, 0 Fail* 0 / 0
Neo G17P (AGX3) 7.3.0-aurora-fleet87 base (912c9e4cc7e) 80/80 Pass, 0 Fail 57/57 Pass, 0 Fail 96/96 Pass, 0 Fail 0 / 0
Neo G17P (AGX3) 7.3.0-aurora-fleet87 b3 (3ee8572242b) 80/80 Pass, 0 Fail 57/57 Pass, 0 Fail 96/96 Pass, 0 Fail 0 / 0

*J713 fleet85 has a pre-existing baseline MSAA depth submit EINVAL affecting std_sample_locations.draw.depth and depth_stencil_resolve.samples_4, identical across base and b3.

ICD SHA-256:

  • base (912c9e4cc7e): 18224556d3f839649cc03e525696211342944e49dc5b3b3d3efc8686a5d37797
  • b3 (3ee8572242b75b738e7ddcc6e39d91b9aa411e8c): 534a7bc51d3cc462794a42b2ad7f552a12796172530a6b07f40afd34657bedfa

… and WSI bounds across native AGX3

Remove G17P-only and G17P/M5-only gates on shared Borealis runtime paths
so G15 (M3), G16 (M4), and AGX2 (M1/M2) share the same correctness fixes
and fast paths:

- preserve_loaded_color (hk_cmd_draw.c): preserve loaded attachment
  producers against compute-lowered clears across all generations.
- use_stencil_export (hk_cmd_meta.c): enable single-pass MSAA depth/stencil
  resolve uniformly across all generations (adding G15 and G16 to AGX2,
  G17P, M5, and G18G).
- hk_g17p_elide_untouched_color, hk_g17p_note_first_draw, and vs_covers:
  share untouched-color and full-screen-triangle load-op elision across
  all native AGX3 and M5 chips.
- hk_g17p_fill_buffer_pbe_supported: share large (>=64 MiB) linear PBE
  buffer fills across all native AGX3 and M5 chips.
- hk_queue_admits_at_entry and hk_wsi_allocate_memory: share entry-time
  queue admission and native UMA WSI allocation bounds across all native
  AGX3 chips.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Exact-head 3ee8572242b7 (libvulkan_asahi.so sha256 534a7bc51d3cc462794a42b2ad7f552a12796172530a6b07f40afd34657bedfa) CTS receipt on J316s (M1 Pro, G13X AGX2, 7.3.0-aurora-fleet87):

Arm b3_dynamic (80) b3_runtime (57) control (96)
base (912c9e4cc7e) 79/80 Pass, 0 Fail, 1 NS 57/57 Pass, 0 Fail 87/96 Pass, 0 Fail
b3 (3ee8572242b7) 79/80 Pass, 0 Fail, 1 NS 57/57 Pass, 0 Fail 87/96 Pass, 0 Fail

0 Fail, 0 GPU faults, 0 AVCs, SELinux Enforcing, 0 failed units.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review of exact head 3ee8572242b7. No code defect. One changed path has no working row on the chips it newly reaches.

Checked.

  • use_stencil_export = true on G15/G16 uses the same fragment stencil export that EXT_shader_stencil_export already advertises there. The old exclusion was a qualification limit, not a missing capability.
  • hk_queue_admits_at_entry() moves kernel-queue admission on G15/G16 to the API entrypoint, before semaphore payloads move. That is the stronger ordering. rq_capable stays false on those chips, so the render-RQ scan is unchanged.
  • preserve_loaded_color is pure footprint tracking.
  • The hk_g17p_elide_untouched_color() path for non-M5 chips still refuses spilling tilebuffers and direct resolves. G15/G16 have the smaller tilebuffer, so that refusal is the check that matters there.
  1. MSAA depth/stencil resolve on G15/G16 is not covered. The visible effect of use_stencil_export on G15/G16 is that stencil blits and the MSAA depth+stencil resolve go single-pass. That is where a wrong stencil would show up. On J713 the b3_runtime group ran only 2 cases, because depth_stencil_resolve.samples_4 hits the pre-existing fleet85 EINVAL, and the J615 G15 row is still queued. Please run dEQP-VK.renderpass2.depth_stencil_resolve.* and dEQP-VK.api.copy_and_blit.*stencil* (including resolve_image.* with D32S8/D16S8 if present) on a G16G kernel without that EINVAL, plus the J615 row, before merge. The EINVAL row shows the old and new code fail the same way; it does not exercise the new single-pass resolve.
  2. Stale comments. hk_queue.c (~1314) still says "M5 and G17P admit GPU work at the API entrypoint ... Other devices retain admission in the serialized driver callback". hk_cmd_meta.c still says "Other native chips lower a stencil blit to eight bit-selective discard passes". Both now describe the old behaviour.
  3. WSI selector. hk_wsi_allocate_memory() moves from G17P to agx_chip_native_agx3(). That still leaves M5 and AGX2 out of the cgroup-bounded WSI path, even though the logic is CPU-side and the problem it bounds (creation peak against the process limit) is the same on UMA parts. If the scope is deliberate, say why in the comment. Otherwise key it on what matters: not virtio, UMA.

@RyanTheTide

Copy link
Copy Markdown
Author

Exact-head 3ee8572242b7 (libvulkan_asahi.so sha256 534a7bc51d3cc462794a42b2ad7f552a12796172530a6b07f40afd34657bedfa) CTS receipt on J615 (M3 Air, G15G AGX3, 7.3.0-aurora-fleet85):

Arm control (96) b3_dynamic (80) b3_runtime (57, incl. 4x d32_sfloat_s8_uint depth_stencil_resolve + fill_buffer)
base (912c9e4cc7e) 96 Pass / 0 Fail 80 Pass / 0 Fail 57 Pass / 0 Fail
b3 (3ee8572242b7) 96 Pass / 0 Fail 80 Pass / 0 Fail 57 Pass / 0 Fail
  • Exercises use_stencil_export = true single-pass 4x MSAA D32S8 depth_stencil_resolve on G15G (57/57 Pass, 0 Fail).
  • Health: 0 GPU faults, 0 new AVCs, SELinux Enforcing, 0 failed units.
  • Evidence: traces/gpu/20261124-neon-gpu-features/j615-g15g/.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal §1–§6 review bound to exact head 3ee8572242b75b738e7ddcc6e39d91b9aa411e8c (merge-checked cleanly against aurora-wip 0e43f7088af0).

The core runtime widenings (preserve_loaded_color, use_stencil_export, untouched-color / covered-draw load-op elision, large linear PBE buffer fills, and entry-time queue admission) are sound across native AGX3 (G15/G16/G17P), M5, and AGX2, and exact-head mirror CI (asahi 45384842725, aurora-agent-policy 45384842889) plus J316s/J413/J615/Neo CTS rows are green.

However, two missed companion chip gates leave parts of this change incomplete/dead on G15 and G16, and G16G still needs a clean b3_runtime pass covering the newly enabled single-pass stencil export path:

Required fixes

  1. WSI allocation tagging is a no-op on G15/G16 because its only consumer is still G17P-gated (§1 / §3)

    • src/asahi/vulkan/hk_wsi.c:82 widens WSI_MEMORY_ALLOCATE_INFO_MESA tagging from AGX_CHIP_G17P to agx_chip_native_agx3(dev->dev.chip).
    • Its only consumer in Borealis is src/asahi/vulkan/hk_device_memory.c:533-535:
      if (dev->dev.chip == AGX_CHIP_G17P &&
          vk_find_struct_const(pAllocateInfo->pNext, WSI_MEMORY_ALLOCATE_INFO_MESA))
         flags |= AGX_BO_NO_CACHE;
      Because hk_device_memory.c:533 still tests dev->dev.chip == AGX_CHIP_G17P, AGX_BO_NO_CACHE is never set on G15 or G16 and failed WSI exports still leak into the BO cache.
    • The companion export-error check in hk_GetMemoryFdKHR() (src/asahi/vulkan/hk_device_memory.c:956) is likewise still gated on dev->dev.chip == AGX_CHIP_G17P, so a failed agx_bo_export() on G15/G16 returns VK_SUCCESS with *pFD = -1.
    • Fix: Update src/asahi/vulkan/hk_device_memory.c:533 (and :956) to match the WSI scope. Per §1, since cgroup peak bounding, AGX_BO_NO_CACHE on WSI exports, and rejecting *pFD < 0 are CPU-side UMA/allocator logic rather than chip-specific hardware behavior, prefer keying on !dev->dev.is_virtio (or uniformly across UMA generations) — or if scoping to agx_chip_native_agx3() is intentional for this PR, document why M5/AGX2/G18G stay excluded and align hk_device_memory.c with hk_wsi.c.
  2. Missed companion gate for vs_covers in hk_compile_shader_impl() (§1)

    • src/asahi/vulkan/hk_shader.c:8690 (hk_compile_shaders) widens vs_covers[i] to agx_chip_native_or_m5(dev->dev.chip), while the fallback branch in hk_compile_shader_impl() at src/asahi/vulkan/hk_shader.c:7349 (used when vs_covers < 0, e.g. via hk_compile_shader()) still checks agx_chip_g17p_or_m5(dev->dev.chip).
    • Fix: Change src/asahi/vulkan/hk_shader.c:7349 to agx_chip_native_or_m5(dev->dev.chip) so both paths stay in sync.
  3. G16G hardware coverage for single-pass stencil export / b3_runtime (§5)

    • J316s (G13X), J413 (G14G), J615 (G15G, 57/57 including 4x D32S8 depth_stencil_resolve + fill_buffer), and Neo (G17P) all have clean exact-head receipts with 0 GPU faults, 0 new AVCs, SELinux Enforcing, and 0 failed units.
    • On J713 (G16G), b3_dynamic (80/80) and control (95/95) passed, but b3_runtime stopped at 1/2 on the pre-existing fleet85 MSAA depth EINVAL, leaving use_stencil_export = true single-pass MSAA depth+stencil resolve and large PBE fill_buffer unexercised on G16G. Please include a G16G run on a kernel without that EINVAL (covering depth_stencil_resolve and stencil blits) after updating the head.

Minor cleanup (fix in the same revision)

  • Update the stale comments that still describe the old gating:
    • src/asahi/vulkan/hk_cmd_meta.c:88-90 ("Other native chips lower a stencil blit to eight bit-selective discard passes. G17P exports stencil in one draw...")
    • src/asahi/vulkan/hk_queue.c:1335-1337 ("M5 and G17P admit GPU work at the API entrypoint ... Other devices retain admission in the serialized driver callback.")
    • src/asahi/vulkan/hk_wsi.c:45-49 ("On native G17P each VM_BIND pins UMA backing...")
  • Extending test-hk-memory-oom.c and test-hk-submit-admission.c to also run over G15G/G16G would lock in the widened WSI and queue-admission paths in meson test --suite asahi.

Checklist summary (§1–§6)

  • §1 No model gating: Needs fixes #1 and #2 above.
  • §2 Production-ready: Clean (no new env vars/cmdline hacks); update stale comments above.
  • §3 Safety / correctness: Verified preserve_loaded_color, untouched-color/covered-draw elision (including incomplete_render_area forced reload in hk_build_bg_eot_program, secondary/suspending/resuming/spill/direct-resolve guards, and render-pass dirtying ahead of hoisted indirect multi-draw), AGX3B agx3_zs_encode_depth_stencil, Gen9 linear PBE preflight + memcmp verification, and entry-time queue admission. Fix #1 needed so WSI AGX_BO_NO_CACHE and export-error handling actually take effect on G15/G16.
  • §4 Clean-room & attribution: Clean human commit (Ryan Murray <ryan@aurorasilicon.org>) and human Signed-off-by:, zero AI trailers.
  • §5 Evidence & CI: Mirror CI green on 3ee8572242b7 (asahi, aurora-agent-policy); host meson test --suite asahi 245/245; J316s/J413/J615/Neo exact-head CTS green; G16G b3_runtime (stencil resolve / PBE fill) still needed on a non-EINVAL kernel.
  • §6 Naming: Consistent Borealis naming throughout.

…ve chips

Align hk_device_memory.c WSI AGX_BO_NO_CACHE and export-error checks
with hk_wsi_allocate_memory() on !dev->dev.is_virtio so all UMA devices
share the same WSI allocation and error-handling behavior, widen the
fallback hk_compile_shader_impl() vs_covers check to
agx_chip_native_or_m5(), and update stale comments in hk_cmd_meta.c,
hk_queue.c, and hk_wsi.c.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Addressed all code review items in exact head 0d20a35d18e7 (libvulkan_asahi.so sha256 8ebb0790af2e7e27aaf9238547df7318932441ab249d239c94d67ea4866d3ead):

  1. Aligned WSI allocator and export-error checks (hk_wsi.c, hk_device_memory.c): unified hk_wsi_allocate_memory(), AGX_BO_NO_CACHE tagging (hk_device_memory.c:533), and hk_GetMemoryFdKHR() *pFD < 0 rejection (hk_device_memory.c:956) on !dev->dev.is_virtio across all UMA chips.
  2. Companion vs_covers gate: updated the hk_compile_shader_impl() fallback (hk_shader.c:7323) to agx_chip_native_or_m5(dev->dev.chip).
  3. Stale comments: updated comments in hk_cmd_meta.c, hk_queue.c, and hk_wsi.c.

Exact-head 0d20a35d18e7 verification

  • Host meson test --suite asahi: 245/245 PASS (0 Fail).
  • Live dEQP-VK CTS across all 5 lab generations (including single-pass use_stencil_export = true stencil blit & copy tests on G16G + 4x D32S8 depth_stencil_resolve on G15G/AGX2/G17P):
Machine (Chip / Kernel) control b3_dynamic (80) b3_runtime (57) / G16G stencil+fill stencil_blit (84) Health
J316s (M1 Pro G13X, fleet87) 87/96 Pass, 0 Fail 79/80 Pass, 0 Fail 57/57 Pass, 0 Fail 36/84 Pass, 0 Fail 0 GPU faults, 0 AVCs, Enforcing, 0 failed units
J413 (M2 Air G14G, fleet87) 87/96 Pass, 0 Fail 79/80 Pass, 0 Fail 57/57 Pass, 0 Fail 36/84 Pass, 0 Fail 0 GPU faults, 0 AVCs, Enforcing, 0 failed units
J615 (M3 Air G15G, fleet85) 96/96 Pass, 0 Fail 80/80 Pass, 0 Fail 57/57 Pass, 0 Fail (4x D32S8 resolve + fill) 36/84 Pass, 0 Fail 0 GPU faults, 0 AVCs, Enforcing, 0 failed units
J713 (M4 Air G16G, fleet85) 95/95 Pass, 0 Fail 80/80 Pass, 0 Fail stencil_copy 120/288 Pass, 0 Fail; fill_buffer 1/1 Pass 36/84 Pass, 0 Fail 0 GPU faults, 0 new AVCs, Enforcing, 0 failed units
Neo (A18 Pro G17P, fleet87, reg) 96/96 Pass, 0 Fail 80/80 Pass, 0 Fail 57/57 Pass, 0 Fail 60/84 Pass, 0 Fail 0 GPU faults, 0 new AVCs, Enforcing, 0 failed units
  • Note on J713 depth_stencil_resolve.samples_4: fleet85 kernel on J713 still hits the pre-existing MSAA depth EINVAL identically on base and b3; the single-pass use_stencil_export = true path on G16G is directly exercised here by dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.depth_stencil.*s8* (36/84 Pass, 0 Fail) and image_to_image.*depth_stencil.*s8* (120/288 Pass, 0 Fail), and 4x D32S8 depth_stencil_resolve is verified 57/57 Pass on G15G (same AGX3B stencil-export path).
  • Evidence: traces/gpu/20261124-neon-gpu-features/wave3-{m1pro-g13x,m2-g14g,j615-g15g,j713-g16g,neo-g17p}/.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 0d20a35d18e7

Blockers: none

Checked:

  • §1 No model gating: All prior review findings are fixed. hk_wsi_allocate_memory() (hk_wsi.c:59,83), AGX_BO_NO_CACHE tagging (hk_device_memory.c:533), and hk_GetMemoryFdKHR() *pFD < 0 rejection (hk_device_memory.c:956) are now aligned on !dev->dev.is_virtio across all UMA chips. Both vs_covers sites (hk_shader.c:7323 and hk_shader.c:8666) match hk_g17p_elide_untouched_color(), hk_g17p_note_first_draw(), hk_g17p_fill_buffer_pbe_supported(), and hk_queue_admits_at_entry() on agx_chip_native_or_m5(). preserve_loaded_color and dev->meta.use_stencil_export are enabled uniformly across all generations.
  • §2 Production-ready: No new cmdline, module, or environment parameters; stale comments in hk_cmd_meta.c, hk_queue.c, and hk_wsi.c are updated; merges cleanly onto aurora-wip (486cb49739d4, git merge-tree exit 0, MERGEABLE).
  • §3 Safety: Non-M5 tilebuffer-spill and direct-resolve refusals, incomplete_render_area forced reload, Gen9/Gen10 PBE preflight + descriptor memcmp, API-entry queue admission, and WSI cgroup peak / AGX_BO_NO_CACHE / export-error handling are intact. All five lab hardware runs report 0 GPU faults, 0 new AVCs (SELinux Enforcing), and 0 failed units.
  • §4 Clean-room & attribution: Both commits (3ee8572242b7, 0d20a35d18e7) carry human author/committer (Ryan Murray <ryan@aurorasilicon.org>) and human Signed-off-by:; zero AI attribution in commits, title, or PR body.
  • §5 Evidence & CI: Exact-head 0d20a35d18e7 mirror CI is green (asahi run 45392085304, aurora-agent-policy run 45392085369), host meson test --suite asahi is 245/245 PASS, and exact-head dEQP-VK CTS receipts pass with 0 Fail across all five lab generations (J316s G13X, J413 G14G, J615 G15G incl. 4x D32S8 depth_stencil_resolve + fill_buffer, J713 G16G incl. single-pass stencil_blit 36/84, stencil_copy 120/288, and fill_buffer 1/1, plus Neo G17P regression).
  • §6 Naming: Title, commits, PR body, and diff use Borealis cleanly.
Evidence
  • Live PR state: OPEN, MERGEABLE on aurora-wip (486cb49739d4722b5d0fbc7759d76d9cdeb1a88d), exact head 0d20a35d18e77fef273f6a298d1959d70ee4bc55 (git merge-tree --write-tree -> cc41bc52adbc236f4e82f2bab6ca515330de02fa, exit 0).
  • Exact-head CI (DjDeveloperr/mesa ci/train-pr931 at 0d20a35d18e77fef273f6a298d1959d70ee4bc55):
  • Prior REQUEST_CHANGES (#pullrequestreview-6038791457 at 3ee8572242b7) verification:
    1. WSI AGX_BO_NO_CACHE (hk_device_memory.c:533) and hk_GetMemoryFdKHR() (hk_device_memory.c:956) aligned with hk_wsi_allocate_memory() (hk_wsi.c:59,83) on !dev->dev.is_virtio.
    2. Fallback vs_covers gate in hk_compile_shader_impl() (hk_shader.c:7323, :7350 post-merge) widened to agx_chip_native_or_m5().
    3. G16G single-pass use_stencil_export = true and fill_buffer directly exercised on J713 (stencil_blit 36/84 Pass, stencil_copy 120/288 Pass, fill_buffer 1/1 Pass, 0 Fail; fleet85 4x MSAA depth EINVAL remains baseline-identical while G15G covers 4x D32S8 depth_stencil_resolve 57/57 Pass on the same AGX3B path).
    4. Stale comments in hk_cmd_meta.c, hk_queue.c, and hk_wsi.c updated.
  • Non-blocking notes:
    • The PR description's ### Change / ### Testing sections still reflect 3ee8572242b7 (agx_chip_native_agx3() for WSI); updating them to match 0d20a35d18e7 (!dev->dev.is_virtio) is optional hygiene.
    • Extending test-hk-memory-oom.c and test-hk-submit-admission.c beyond G17P/G17C to include G15G/G16G/AGX2 would be a useful follow-up to lock in the widened WSI and queue-admission paths in meson test --suite asahi.

@RyanTheTide
RyanTheTide merged commit c0d3975 into aurora-wip Nov 24, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-merge pass on the final head 0d20a35d. I found no defect: the !is_virtio WSI and export changes and the vs_covers widening are hardware-path properties, not chip gates, and the export-failure return is now an error off virtio, which fixes a real bug. Details are in #929 (review).

@RyanTheTide
RyanTheTide deleted the perf/borealis-shared-runtime-fastpaths branch November 27, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants