Skip to content

asahi/lib: sync agx_chip_caps.h with G16G preamble and G17P indirect bounds - #955

Merged
DjDeveloperr merged 1 commit into
aurora-wipfrom
fix/agx-chip-caps-parity
Nov 24, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-wipfrom
fix/agx-chip-caps-parity

Conversation

@DjDeveloperr

Copy link
Copy Markdown

What: Restores parity between src/asahi/lib/agx_chip_caps.h and the capability predicates in src/asahi/lib/agx_chip.h (agx_chip_native_preamble() on G16G from #716 and agx_chip_vdm_indirect_index_bounds() on G17P from #760), fixing the test-chip-caps failure on aurora-wip.

Tested: Local test-chip-caps (366/366 checks PASS) and full assert-ON unit test suite (184/184 Ok, 0 Fail, 0 Timeout, 0 Skipped) on exact head 3895ee055a46.

Risk: two-way · G16G, G17P (header-only capability-table parity fix matching already-merged predicates in agx_chip.h).

Not yet: No runtime driver behavior changes beyond aligning agx_chip_has_cap() with the existing agx_chip.h predicates.

Details

PRs #716 and #760 landed from pre-agx_chip_caps.h bases and updated agx_chip_native_preamble() (for G16G) and agx_chip_vdm_indirect_index_bounds() (for G17P) in src/asahi/lib/agx_chip.h without adding the matching bits to src/asahi/lib/agx_chip_caps.h.

This commit makes the two matching additions in src/asahi/lib/agx_chip_caps.h:

  • Adds AGX_CAP_VDM_INDIRECT_INDEX_BOUNDS to AGX_CAPS_G17P.
  • Adds AGX_CAP_NATIVE_PREAMBLE to the G16G row in AGX_CHIP_CAPS.
Evidence
  • Exact head: 3895ee055a46abbb4ab368d908c2c8da520c831f
  • test-chip-caps: agx_chip_caps: all 366 checks passed
  • Assert-ON full asahi unit suite: 184/184 Ok, 0 Fail, 0 Timeout, 0 Skipped (wall 63 s)
  • Policy check (agent-policy.sh pr): PR is clean

…bounds

PRs #716 and #760 updated the agx_chip_native_preamble() and
agx_chip_vdm_indirect_index_bounds() predicates in agx_chip.h from
pre-agx_chip_caps.h bases without updating the matching capability rows
in agx_chip_caps.h, breaking test-chip-caps on aurora-wip.

Add AGX_CAP_NATIVE_PREAMBLE to G16G and AGX_CAP_VDM_INDIRECT_INDEX_BOUNDS
to AGX_CAPS_G17P so agx_chip_has_cap() agrees with the predicates on all
chips.

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

@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 at 3895ee055a46

APPROVE — Restores exact parity between src/asahi/lib/agx_chip_caps.h and src/asahi/lib/agx_chip.h for G16G (AGX_CAP_NATIVE_PREAMBLE) and G17P (AGX_CAP_VDM_INDIRECT_INDEX_BOUNDS), bringing asahi-agx-chip-caps back to 366/366 passing with no unintended capability bit changes.

Blockers

None.

Checked

  • Full +2/-1 diff in src/asahi/lib/agx_chip_caps.h cross-checked against src/asahi/lib/agx_chip.h (agx_chip_native_preamble() and agx_chip_vdm_indirect_index_bounds()); no other chip rows or capability bits altered.
  • Isolated release build (-Dtools=drm-shim -Dbuild-tests=true), asahi-agx-chip-caps (366/366 checks PASS), asahi-agx-chip (839/839 checks PASS), asahi-chip-admission (ok), and full non-layout asahi unit suite (263/263 PASS, 0 failed).
  • Live Apple M5 Max (G17C B1), Linux 7.3 Borealis Vulkan CTS smoke with MESA_SHADER_CACHE_DISABLE=1 (0 kernel GPU faults).
  • Untested scope: Live G16G and G17P hardware execution (header-only capability-table parity fix; covered by the exhaustive 366-check asahi-agx-chip-caps matrix); asahi_layout_tests excluded due to pre-existing GCC 16 C++20 designated-initializer build issue.
Evidence
  • Exact head tested: 3895ee055a46
  • Unit suite (non-layout asahi): 263/263 PASS, 0 FAIL
    • asahi-agx-chip-caps: agx_chip_caps: all 366 checks passed
    • asahi-agx-chip: agx_chip: all 839 checks passed
    • asahi-chip-admission: chip admission: ok
  • Live Vulkan CTS (Apple M5 Max G17C B1, Linux 7.3, MESA_SHADER_CACHE_DISABLE=1):
    • dEQP-VK.compute.pipeline.basic.*: 80/81 PASS (1 Not supported, 0 failed)
  • Kernel dmesg: 0 new GPU faults/errors.

@DjDeveloperr

Copy link
Copy Markdown
Author

Merged into aurora-wip as aeb45f2a86c7 (head 3895ee055a46, verified tree 08db30e1b43b). Restores agx_chip_caps.h parity with agx_chip.h (G16G AGX_CAP_NATIVE_PREAMBLE, AGX_CAPS_G17P AGX_CAP_VDM_INDIRECT_INDEX_BOUNDS). Verified: exact-head peer approval (366/366 asahi-agx-chip-caps, 263/263 asahi unit suite, live M5 Max Borealis Vulkan CTS) and fork CI asahi (45425154319) + aurora-agent-policy (45425154273).

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