Skip to content

borealis,asahi: enable G16G AGX3B/HAL200 fast paths (shadow-array, quad-deriv, R11G11B10 EOT) - #732

Merged
DjDeveloperr merged 4 commits into
aurora-wipfrom
djdev/g16g-agx3b-fast-paths
Nov 25, 2026
Merged

DjDeveloperr merged 4 commits into
aurora-wipfrom
djdev/g16g-agx3b-fast-paths

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 22, 2026 •

Copy link
Copy Markdown

Summary

Widens two G17P-only AGX3B/HAL200 fast paths to cover AGX_CHIP_G16G (M4), and drops the stale G17P-only chip check on Gallium's quad-derivative triangle-merge guard:

  • src/asahi/compiler/agx_optimizer.c, src/asahi/compiler/agx_nir_lower_g17p_combined_sampler.c, src/asahi/vulkan/hk_shader.c, src/asahi/compiler/test/test-native-form-regressions.cpp: guard shadow 2D-array constant level/bias register staging on AGX_ISA_ENCODING_AGX3B instead of AGX_CHIP_G17P, admit agx_chip_native_agx3() in hk_compile_nir() (renaming local g17p to native_agx3, matching AGX_ISA_ENCODING_AGX3B while keeping G18G excluded), and add unit test coverage for G16G and G15G.
  • src/gallium/drivers/asahi/agx_state.c: remove the dev->chip == AGX_CHIP_G17P guard on ctx->fs->b.info.needs_quad_derivatives in agx_g17p_emit_bind_state() so Gallium fragment shaders with implicit 2x2 quad derivatives disable triangle merging on every native AGX3 chip (including G16G and conservatively G15G/S/C), matching Borealis's draw path.
  • src/asahi/vulkan/hk_image.h, src/asahi/vulkan/tests/test-hk-compression-contract.c: switch hk_eot_r11g11b10_own_class() to agx_chip_native_hal200(dev->chip), update its comment for HAL200 and M4 (G16G) measurements, and add unit test coverage for hk_eot_r11g11b10_own_class(), hk_eot_pbe_format(), and hk_eot_key_format() across G15G, G16G, G17P, M5, and G18G.

Verification (Exact HEAD c39e703e9d6e)

  • Host unit tests (Fedora 44, assertions enabled buildtype=debugoptimized / b_ndebug=if-release): meson test --suite asahi 208 / 208 PASS (0 Fail), including NativeForms.AGX3BArrayShadowConstantLodKeepsEncodableImmediates and hk_compression_contract.
  • Live hardware (Apple M4 (G16G B0), J773g, Linux 7.3.0-ARCH-m4mainefed1ae3, Borealis Mesa 26.3.0-devel (git-c39e703e9d)):
    • aurora-r11g11b10f 2 (5x): res-eot, res-store, and res-image 5 / 5 PASS (0 / 6144 pixels differing from expected mean 0x701e0400, 0 / 6144 words differing).
    • test-mixed-mrt-snorm-resolve (10x): 10 / 10 PASS (single_rt_r11g11b10f: 10 / 10 PASS, rgb=(0.500,1.000,2.000) exp=(0.500,1.000,2.000) fails=0; all 4 mixed-MRT and suspend/resume subtests fails=0).
    • Targeted Vulkan CTS (--jobs 1, 925 cases):
      • b10g11r11 copy/blit (12 cases): 8 Pass / 4 NotSupported / 0 Fail / 0 Crash / 0 Timeout
      • 2D-array shadow (dEQP-VK.texture.shadow.2d_array.* + dEQP-VK.glsl.texture_functions.*sampler2darrayshadow*, 913 cases): 270 Pass / 643 NotSupported / 0 Fail / 0 Crash / 0 Timeout
    • gpubench-vk CRC smoke (plan.txt, plan-90pct.txt, plan-90pct-w2.txt): 202 / 202 rows ok, 84 / 84 CRCs valid.
    • GPU health: health: failed 0 errno 0 degraded 0, 0 GPU recoveries, 0 hang kills, 0 M4 GPU recovery generation or fault bank kernel log lines.

@RyanTheTide

Copy link
Copy Markdown

Review at aa64538.

Thanks. The shadow-array part looks right. The tri-merge quirk and the R11G11B10 class are wider than the evidence for them, and the change also reaches M3:

  1. src/asahi/vulkan/hk_image.h:279-281 adds a second chip to a chip-identity list. agx_chip_native_hal200() (agx_chip.h:772) already selects exactly {G16G, G17P}, and agx_chip.h:463-465 says call sites never test chip identity. Please use that predicate, or a table property for the end-of-tile PBE class. The comment at hk_image.h:266-277 still describes only G17P ("measured on the M4 Pro ... and the M4 Max") and now silently covers M4. This class exists for the multisample end-of-tile resolve. output_location.array.b10g11r11* is single-sample, so it does not test that. Please add an R11G11B10F MSAA-resolve row on G16G at this head (dEQP-VK.renderpass*.multisample_resolve.b10g11r11, or the res-eot reproducer the comment cites) and update the comment.
  2. src/asahi/lib/agx_chip.h:315 gives G16G AGX_QUIRK_TRI_MERGE_ACROSS_SIDE_EFFECTS. The predicate's own rationale (agx_chip.h:1023-1026) is "G17P metadata leaves the bit clear; on other chips it is unverified", and it is not updated. The quirk drops the linker's merge-disable bit for fragment memory writes and wide subgroup ops. None of the listed rows targets that: the projected mipmap cases test the separate needs_quad_derivatives term. Please give the G16G evidence in the comment and add rows that write memory or use subgroups from fragment shaders (e.g. dEQP-VK.subgroups.framebuffer/fragment, dEQP-VK.image.atomic_operations., dEQP-GLES31.functional.image_load_store. / ssbo fragment cases). Also run the 30 dEQP-VK.texture.mipmap.{2d,3d,cubemap}.projected.* cases that hk_cmd_draw.c:8884 names as the failing set; they are not in the list. The measured gain (+0.06% / +0.12% geomean) is within noise, so the case for this rests on correctness evidence.
  3. src/gallium/drivers/asahi/agx_state.c:12036: the G17P && term was not stale before this PR. Chips without the quirk already got this case through the linker's bit 26. Dropping it is needed because of item 2. agx_g17p_emit_bind_state() runs for every native AGX3 chip (agx_state.c:13322), so this also changes G15G/S/C (M3): shaders with full-quad helpers and derivatives now disable merging there too. That matches hk and is conservative, but please say so in the message.
  4. Reach beyond M4: agx_optimizer.c:585 (AGX3B encoding) and hk_shader.c:4818 (agx_chip_native_agx3) also turn the shadow-array constant level/bias staging on for G15G/S/C. The encoding predicate is the right gate here. Still, there is no M3 row at this head. Please add one on an M3 (G15) Mac for the 2D-array shadow texture functions with a constant LOD or bias (dEQP-VK.glsl.texture_functions.sampler2darrayshadow, plus dEQP-VK.texture.shadow.2d_array.*), and run the same full set on G16G. The strided texture.shadow run was mostly NotSupported (318 pass of 1500).
  5. Nits: the local is still named g17p (hk_shader.c:4818). The comments at agx_nir_lower_g17p_combined_sampler.c:229 and test-native-form-regressions.cpp:7150-7154 (test name included) still say G17P only. The subject prefix hk should name the driver Borealis.

@DjDeveloperr
DjDeveloperr force-pushed the djdev/g16g-agx3b-fast-paths branch from aa64538 to 6565106 Compare November 22, 2026 20:01
@RyanTheTide

Copy link
Copy Markdown

Re-checked at 6565106.

Fixed: hk_image.h:281 now uses agx_chip_native_hal200(), the commit message states the M3 reach of the agx_state.c:12092 change, and the naming nits are done. The PR title still starts with hk,agx:.

Still open. The body's results are for aa64538 on the old base, so they need a rerun at this head:

  1. R11G11B10F end-of-tile class on G16G: the comment at hk_image.h:276 now says M4 shares the PBE, but nothing measures the multisample resolve on M4. Please add an R11G11B10F MSAA-resolve row (dEQP-VK.renderpass*.multisample_resolve.*b10g11r11* or the res-eot reproducer).
  2. Tri-merge quirk on G16G: agx_chip.h:1025 now says the G16G metadata leaves the bit clear. Please say where that was observed. The rows that exercise the quirk are still missing: fragment shaders that write memory or use subgroups (dEQP-VK.subgroups.*fragment*, dEQP-VK.image.atomic_operations.*, dEQP-GLES31.functional.image_load_store.*) and the 30 dEQP-VK.texture.mipmap.{2d,3d,cubemap}.projected.* cases.
  3. Shadow-array staging on M3 and M4: dEQP-VK.glsl.texture_functions.*sampler2darrayshadow* and the full dEQP-VK.texture.shadow.2d_array.* set.

We can run (3) and the M4 parts of (1) and (2) at this head on our M3 Air and M4 Air if you want.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr changed the title hk,agx: enable G16G AGX3B/HAL200 fast paths (shadow-array, tri-merge, R11G11B10 EOT) borealis,asahi: enable HAL200/AGX3B fast paths on G16G Nov 22, 2026
@DjDeveloperr

Copy link
Copy Markdown
Author

Exact-head M4 (G16G) hardware verification at 6565106e09b38f45b6eb51c2e2fafc80327f074c covering @RyanTheTide's requested M4 Vulkan + GLES CTS sets:

  • Hardware / Kernel / Driver: Apple M4 (G16G B0) (Mac mini J773g), 7.3.0-ARCH-m4prod19, Mesa 26.3.0-devel (git-6565106e09) (Borealis Vulkan + Asahi OpenGL ES 3.2, TC default OFF)
  • Vulkan CTS (551 Pass / 0 Fail / 0 Crash / 0 Timeout / 1,184 NotSupported across 1,735 cases):
Subset Cases Pass Fail Crash Timeout NotSupported
b10g11r11 resolve-query & renderpass (0 *multisample_resolve*b10g11r11* in CTS) 10 6 0 0 0 4
b10g11r11 copy/blit (200-case slice) 200 131 0 0 0 69
dEQP-VK.subgroups.*fragment* (all 74) 74 56 0 0 0 18
dEQP-VK.subgroups.*framebuffer* (226-case slice) 226 107 0 0 0 119
dEQP-VK.image.atomic_operations.* (300-case slice of 6,209) 300 31 0 0 0 269
dEQP-VK.glsl.texture_functions.*sampler2darrayshadow* (all 157) 157 76 0 0 0 81
dEQP-VK.texture.shadow.2d_array.* (all 768) 768 144 0 0 0 624
  • GLES CTS (468 Pass / 0 Fail / 0 Crash / 0 Timeout / 0 NotSupported across 468 cases, TC default OFF):
Subset Cases Pass Fail Crash Timeout NotSupported
dEQP-GLES31.functional.image_load_store.* (300-case slice of 747) 300 300 0 0 0 0
dEQP-GLES3.functional.texture.mipmap.{2d,3d}.projected.* (all 24: 12 2D + 12 3D) 24 24 0 0 0 0
dEQP-GLES3.functional.texture.shadow.2d_array.* (all 144) 144 144 0 0 0 0
  • System health: 0 kernel GPU dmesg errors / faults.

Assisted-by: LLM (Gemini:4 Neon)

@RyanTheTide

Copy link
Copy Markdown

Thanks for the M4 rows at 6565106. The title is fixed. The shadow-array sets on M4 (all 157 sampler2darrayshadow and all 768 texture.shadow.2d_array, plus GLES3 shadow.2d_array) and the GLES3 projected mipmap cases for the agx_state.c quad-derivative change cover those asks.

Still open:

  1. R11G11B10F resolve on G16G. The b10g11r11 resolve-query and copy/blit rows don't go through an end-of-tile MSAA resolve. At this head G16G takes the own class (hk_image.h:281), and the single-target direct-resolve helper does not refuse R11G11B10F yet, so a 4x R11G11B10F AVERAGE resolve runs the own-class EOT average on M4. The single_rt_r11g11b10f case of your test-mixed-mrt-snorm-resolve verifier (borealis: enable direct EOT MSAA color resolve on mixed-format AGX3 render passes #736) tests exactly that. Could you run it here on M4, a few iterations, since the raw-class failure varied run to run?
  2. Tri-merge on G16G:
    • agx_chip.h:1025 still needs a source for the G16G metadata claim.
    • On the rows, my earlier list was off, sorry. image.atomic_operations and GLES31 image_load_store run in compute, so they never reach the fragment merge bit. The fragment-stage memory-write groups are dEQP-VK.rasterization.frag_side_effects.* and dEQP-VK.glsl.atomic_operations.*fragment*. Those two, plus the subgroups.*fragment* set you already ran, would cover it.
  3. M3 (G15G) shadow-array rows: still owed. We can post them from an M3 Air at this head.
  4. The Verification section in the description is still for aa64538. Please refresh it with these rows.

A note on merge order with #736: once this lands, G16G has the own class, so #736's single-RT R11G11B10F path on M4 goes back to direct resolve. The M4 single_rt_r11g11b10f pass on #736 tested the meta fallback. Whichever PR lands second should rerun that case on M4.

Assisted-by: LLM (Claude:Opus 5.5)

…ad-deriv, R11G11B10 EOT)

Widen two G17P-only AGX3B/HAL200 fast paths to cover G16G (M4), and drop
the stale G17P-only chip check on Gallium's quad-derivative triangle-merge
guard:

- agx_optimizer.c / hk_shader.c / agx_nir_lower_g17p_combined_sampler.c:
  guard shadow 2D-array constant level/bias register staging on
  AGX_ISA_ENCODING_AGX3B instead of AGX_CHIP_G17P, admit
  agx_chip_native_agx3() in hk_compile_nir() (renaming local g17p to
  native_agx3), and update the regression test and comment to cover AGX3B.
- agx_state.c: remove the stale dev->chip == AGX_CHIP_G17P guard on
  ctx->fs->b.info.needs_quad_derivatives in agx_g17p_emit_bind_state() so
  Gallium fragment shaders with implicit 2x2 quad derivatives disable
  triangle merging on every native AGX3 chip (including G16G and
  conservatively G15G/S/C), matching hk_cmd_draw.c.
- hk_image.h: switch hk_eot_r11g11b10_own_class() to
  agx_chip_native_hal200(dev->chip) and update its comment for HAL200.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr
DjDeveloperr force-pushed the djdev/g16g-agx3b-fast-paths branch from 6565106 to 390a582 Compare November 22, 2026 22:17
@DjDeveloperr DjDeveloperr changed the title borealis,asahi: enable HAL200/AGX3B fast paths on G16G borealis,asahi: enable G16G AGX3B/HAL200 fast paths (shadow-array, quad-deriv, R11G11B10 EOT) Nov 22, 2026
@RyanTheTide

Copy link
Copy Markdown

Re-checked at 390a582. Against 6565106 the only change is that the G16G tri-merge quirk is dropped: agx_chip.h and test-chip.c are back to the base, and the title and commit message are updated. That settles the tri-merge point; G16G keeps the linker's conservative bit, and the agx_state.c change only adds merge-disable cases.

Still open:

  1. R11G11B10F resolve on G16G. hk_image.h:281 still gives G16G the own class, and its comment (:275) cites measurements on M4 Pro and M4 Max, not M4. A few iterations of single_rt_r11g11b10f on M4 at this head would close it.
  2. The description's Verification section is still for aa64538 and still credits AGX_QUIRK_TRI_MERGE_ACROSS_SIDE_EFFECTS, which this PR no longer touches. Please refresh it with the rows at the current head.

The M3 (G15G) shadow-array rows are on us. The shadow-array code is the same as at 6565106, so I'll run them at 390a582, together with the GLES3 projected mipmap cases, since the agx_state.c change also reaches G15.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr

Copy link
Copy Markdown
Author

@RyanTheTide Thanks for the review (#issuecomment-7086029451).

We audited our local M4 captures and confirmed AGX_QUIRK_TRI_MERGE_ACROSS_SIDE_EFFECTS had not been directly captured on AGXMetalG16G_B0 (only G17P). Accordingly, R3 (390a582c4cc0) drops AGX_QUIRK_TRI_MERGE_ACROSS_SIDE_EFFECTS from G16G and restores the original G17P-only comment in agx_chip.h cleanly, keeping the verified shadow-array (AGX_ISA_ENCODING_AGX3B / agx_chip_native_agx3()), agx_state.c needs_quad_derivatives, and R11G11B10 EOT own-class (agx_chip_native_hal200()) changes.

Exact-head 390a582c4cc0 verification on Apple M4 (G16G B0) (7.3.0-ARCH-m4prod20, dcp86 Block 5A — PR description ## Verification refreshed):

  • Host unit tests: meson test --suite asahi 158 / 158 PASS
  • test-mixed-mrt-snorm-resolve: 10 / 10 PASS (single_rt_r11g11b10f 10 / 10 PASS, rgb=(0.500,1.000,2.000) fails=0)
  • Vulkan CTS (925 cases): 220 Pass / 705 NS / 0 Fail (sampler2darrayshadow 76/0 of 157, 2d_array*shadow* 144/0 of 768)
  • GLES3 CTS (TC default OFF): 168 / 168 PASS (texture.mipmap.{2d,3d}.projected.* 24/24, texture.shadow.2d_array.* 144/144)
  • GPU health: 0 GPU dmesg errors

We'll also re-run single_rt_r11g11b10f on whichever of #732 / #736 merges second.

Assisted-by: LLM (Gemini:4 Neon)

Resolve hk_shader.c conflict with the pre-scanned AGX3 compute lowering
and G18G vertex/fragment native-or-g18g guard, keeping native_agx3
(agx_chip_native_agx3()) across all combined/indexed sampler calls so
G18G stays excluded while G15/G16G/G17P match AGX_ISA_ENCODING_AGX3B.

Signed-off-by: Diljit Singh <hey@djdev.me>
…1B10 EOT in tests

Add unit test coverage for G16G bias and G15G constant LOD/bias shadow-array
register staging in test-native-form-regressions.cpp and for
hk_eot_r11g11b10_own_class / hk_eot_pbe_format / hk_eot_key_format across
G15G, G16G, G17P, M5, and G18G in test-hk-compression-contract.c. Also
update the stale G17P-only comments in agx_optimizer.c and hk_image.h to
match the AGX3B / HAL200 predicates and M4 (G16G) measurements.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr
DjDeveloperr requested a review from a team as a code owner November 25, 2026 15:26
@DjDeveloperr

Copy link
Copy Markdown
Author

Refreshed onto latest aurora-wip (c7b7be48efb) via additive merge (04e2b4a950d) and added follow-up unit test & comment coverage (c39e703e9d6e):

  • Resolved the hk_shader.c merge conflict with the pre-scanned AGX3 compute lowering and G18G vertex/fragment guard, keeping native_agx3 (agx_chip_native_agx3()) across every combined/indexed sampler call so G18G stays excluded while G15G/S/C, G16G, and G17P match AGX_ISA_ENCODING_AGX3B.
  • Added unit test coverage for G16G bias and G15G constant LOD/bias shadow-array staging (test-native-form-regressions.cpp) and for hk_eot_r11g11b10_own_class() / hk_eot_pbe_format() / hk_eot_key_format() across G15G, G16G, G17P, M5, and G18G (test-hk-compression-contract.c).
  • Updated stale G17P-only comments in agx_optimizer.c and hk_image.h.

Exact-Head Verification (c39e703e9d6e36b57f19430e087960afd4528277)

  • Host unit tests (Fedora 44, buildtype=debugoptimized, b_ndebug=if-release): meson test --suite asahi 208 / 208 PASS (0 Fail).
  • Live hardware (Apple M4 (G16G B0), J773g, 7.3.0-ARCH-m4mainefed1ae3, Borealis Mesa 26.3.0-devel (git-c39e703e9d)):
    • aurora-r11g11b10f 2 (5x): res-eot, res-store, res-image 5 / 5 PASS (0 / 6144 pixels off mean 0x701e0400).
    • test-mixed-mrt-snorm-resolve (10x): 10 / 10 PASS (single_rt_r11g11b10f: rgb=(0.500,1.000,2.000) exp=(0.500,1.000,2.000) fails=0).
    • Targeted Vulkan CTS (--jobs 1):
      • b10g11r11 copy/blit (12 cases): 8 Pass / 4 NotSupported / 0 Fail
      • 2D-array shadow (913 cases, dEQP-VK.texture.shadow.2d_array.* + dEQP-VK.glsl.texture_functions.*sampler2darrayshadow*): 270 Pass / 643 NotSupported / 0 Fail
    • gpubench-vk CRC smoke (plan.txt, plan-90pct.txt, plan-90pct-w2.txt): 202 / 202 rows ok, 84 / 84 CRCs valid.
    • GPU health: health: failed 0 errno 0 degraded 0, 0 recoveries, 0 hang kills, 0 M4 GPU recovery generation or fault bank kernel log entries.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verdict: MERGE at c39e703e9d6e

Blockers: none

Checked: full diff across agx_optimizer.c, agx_nir_lower_g17p_combined_sampler.c, hk_shader.c, hk_image.h, agx_state.c, test-native-form-regressions.cpp, and test-hk-compression-contract.c; chip predicate equivalence verifying AGX_ISA_ENCODING_AGX3B matches agx_chip_native_agx3() across all admitted chips (G15G/S/C, G16G, G17P, excluding M5 AGX3C and G18G AGX3D) and agx_chip_native_hal200() restricts R11G11B10F own-class EOT to G16G and G17P; merge resolution in 04e2b4a950d6 against aurora-wip; native GCC 16 -Db_ndebug=false build and full unit test suite; targeted unit tests and live Mac Studio M5 Max (J775c, T6050) Vulkan CTS and gpubench-vk sanity with zero GPU faults; exact-head M4 (G16G B0, J773g) hardware verification covering aurora-r11g11b10f 2, test-mixed-mrt-snorm-resolve, Vulkan CTS (b10g11r11 and 2D-array shadow), and gpubench-vk; commit hygiene (all 3 commits carry DCO Signed-off-by, zero AI attribution in commits, zero Apple material).

Evidence
  • Code & predicate audit (c39e703e9d6e36b57f19430e087960afd4528277):
    • src/asahi/lib/agx_chip.h: every admitted chip (path != NONE) with AGX_ISA_ENCODING_AGX3B is exactly G15G, G15S, G15C, G16G, G17P, matching agx_chip_native_agx3() while excluding M5 (AGX3C/HAL300) and G18G (AGX3D/HAL300). agx_chip_native_hal200() selects G16G and G17P only.
    • src/gallium/drivers/asahi/agx_state.c: removing dev->chip == AGX_CHIP_G17P && on ctx->fs->b.info.needs_quad_derivatives matches Borealis's hk_cmd_draw.c draw path verbatim.
    • git show --cc 04e2b4a950d6: merge with aurora-wip cleanly preserves pre-scanned AGX3 compute lowering and the G18G guard while threading native_agx3 across all combined/indexed sampler paths.
  • Native GCC 16 build & unit tests (-Dbuildtype=release -Db_ndebug=false -Dbuild-tests=true, Mac Studio M5 Max J775c / T6050):
    • meson test -C build --suite asahi --print-errorlogs: 208/208 OK (0 Fail).
    • Targeted agx_tests --gtest_filter="NativeForms.AGX3BArrayShadowConstantLodKeepsEncodableImmediates": PASS (1/1).
    • Targeted hk_compression_contract_test: PASS (validating hk_eot_r11g11b10_own_class, hk_eot_pbe_format, and hk_eot_key_format across G15G, G16G, G17P, M5, and G18G).
  • Live Mac Studio M5 Max (J775c, T6050, G17C) Vulkan sanity (MESA_SHADER_CACHE_DISABLE=1):
    • dEQP-VK.api.smoke.*: 8/8 Pass, 0 Fail.
    • dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.color.2d.b10g11r11_ufloat_pack32.b10g11r11_ufloat_pack32.*: 8/12 Pass, 4 NotSupported, 0 Fail.
    • dEQP-VK.texture.shadow.2d_array.nearest.*: 32/128 Pass, 96 NotSupported, 0 Fail.
    • gpubench-vk --test compute.heavy --depths 1 --warmup-ms 100 --runs 2 --run-ms 100: status=ok, 409 submits, median 491.823 us/submit, 4391.60 GFLOP/s.
    • GPU_FAULT_DELTA=0 (FAULTS_BEFORE=0, FAULTS_AFTER=0).
  • Exact-head M4 (G16G B0, J773g) hardware verification (author report at c39e703e9d6e):
    • aurora-r11g11b10f 2 (5x), test-mixed-mrt-snorm-resolve (10x, single_rt_r11g11b10f 0 fails), 925 Vulkan CTS cases (b10g11r11 + 2D-array shadow, 0 fail), and 202/202 gpubench-vk CRC smoke rows with 0 GPU faults/recoveries.

Resolve the conflict in test-hk-compression-contract.c with #1050
(HAL200 lossless compression on G16G), keeping both #1050's HAL200
format/modifier/image-creation checks and #732's R11G11B10 EOT class
assertions intact.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr

Copy link
Copy Markdown
Author

Merged latest aurora-wip (5269d5817de9, including #1050) into djdev/g16g-agx3b-fast-paths at 81447ded3c855d51285703f580cd074d3adfbe3b:

  • Resolved the single test-file conflict in src/asahi/vulkan/tests/test-hk-compression-contract.c, preserving both #1050's HAL200 format/modifier/image-creation assertions and #732's hk_eot_r11g11b10_own_class() / hk_eot_pbe_format() / hk_eot_key_format() assertions.
  • No driver code changed relative to verified head c39e703e9d6e (diff against origin/aurora-wip stays identical across the 7 touched files).
  • Host unit tests (Fedora 44, buildtype=debugoptimized / b_ndebug=if-release, assertions enabled): meson test --suite asahi 208 / 208 PASS (0 Fail), including hk_compression_contract and NativeForms.AGX3BArrayShadowConstantLodKeepsEncodableImmediates.

@DjDeveloperr

Copy link
Copy Markdown
Author

PASS on MacBook Neo J700 (Apple A18 Pro, G17P B1 / AGX3B / HAL200) at exact head 81447ded3c85 (Borealis + Gallium Asahi git-81447ded3c, kernel 7.3.0-41.fc44.aurora.aarch64, zero reboots):

  • Fedora Asahi unit suite (-Db_ndebug=false + DRM shim): 318/318 PASS (208/208 default), including NativeForms.AGX3BArrayShadowConstantLodKeepsEncodableImmediates and hk_compression_contract; 0 new compiler warnings across all 7 PR-touched files.
  • Targeted Vulkan CTS (MESA_SHADER_CACHE_DISABLE=1, MAX_RECOVERIES=0, 4,287 cases): 2,460 Pass / 1,827 NotSupported / 0 Fail / 0 recoveries:
    • 2D-array shadow (913 cases): 270 Pass / 643 NotSupported / 0 Fail.
    • b10g11r11 copy/blit (3,374 cases): 2,190 Pass / 1,184 NotSupported / 0 Fail.
  • GPU smoke tests: 5/5 gpubench-vk compute CRCs matched; 6/6 native OpenGL gpubench-gl --verify cases passed.
  • System health: 0 GPU faults delta, 0 new AVC denials, 0 failed units, SELinux Enforcing.

@DjDeveloperr
DjDeveloperr merged commit 91e1384 into aurora-wip Nov 25, 2026
@RyanTheTide
RyanTheTide deleted the djdev/g16g-agx3b-fast-paths branch November 27, 2026 13:20
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.

3 participants