Repository navigation
asahi/lib: sync agx_chip_caps.h with G16G preamble and G17P indirect bounds - #955
Merged
Merged
Conversation
…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>
satchlj
approved these changes
Nov 24, 2026
satchlj
left a comment
Member
There was a problem hiding this comment.
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/-1diff insrc/asahi/lib/agx_chip_caps.hcross-checked againstsrc/asahi/lib/agx_chip.h(agx_chip_native_preamble()andagx_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/366checks PASS),asahi-agx-chip(839/839checks PASS),asahi-chip-admission(ok), and full non-layoutasahiunit suite (263/263PASS,0failed). - Live Apple M5 Max (
G17C B1), Linux 7.3 Borealis Vulkan CTS smoke withMESA_SHADER_CACHE_DISABLE=1(0kernel GPU faults). - Untested scope: Live
G16GandG17Phardware execution (header-only capability-table parity fix; covered by the exhaustive 366-checkasahi-agx-chip-capsmatrix);asahi_layout_testsexcluded due to pre-existing GCC 16 C++20 designated-initializer build issue.
Evidence
- Exact head tested:
3895ee055a46 - Unit suite (non-layout
asahi):263/263PASS,0FAILasahi-agx-chip-caps:agx_chip_caps: all 366 checks passedasahi-agx-chip:agx_chip: all 839 checks passedasahi-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/81PASS (1Not supported,0failed)
- Kernel
dmesg:0new GPU faults/errors.
Author
|
Merged into |
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: Restores parity between
src/asahi/lib/agx_chip_caps.hand the capability predicates insrc/asahi/lib/agx_chip.h(agx_chip_native_preamble()onG16Gfrom #716 andagx_chip_vdm_indirect_index_bounds()onG17Pfrom #760), fixing thetest-chip-capsfailure onaurora-wip.Tested: Local
test-chip-caps(366/366checks PASS) and full assert-ON unit test suite (184/184Ok,0Fail,0Timeout,0Skipped) on exact head3895ee055a46.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 existingagx_chip.hpredicates.Details
PRs #716 and #760 landed from pre-
agx_chip_caps.hbases and updatedagx_chip_native_preamble()(forG16G) andagx_chip_vdm_indirect_index_bounds()(forG17P) insrc/asahi/lib/agx_chip.hwithout adding the matching bits tosrc/asahi/lib/agx_chip_caps.h.This commit makes the two matching additions in
src/asahi/lib/agx_chip_caps.h:AGX_CAP_VDM_INDIRECT_INDEX_BOUNDStoAGX_CAPS_G17P.AGX_CAP_NATIVE_PREAMBLEto theG16Grow inAGX_CHIP_CAPS.Evidence
3895ee055a46abbb4ab368d908c2c8da520c831ftest-chip-caps:agx_chip_caps: all 366 checks passedasahiunit suite:184/184Ok,0Fail,0Timeout,0Skipped (wall 63 s)agent-policy.sh pr):PR is clean