From 3895ee055a46abbb4ab368d908c2c8da520c831f Mon Sep 17 00:00:00 2001 From: Diljit Singh Date: Tue, 24 Nov 2026 10:11:58 -0500 Subject: [PATCH] asahi/lib: sync agx_chip_caps.h with G16G preamble and G17P indirect 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 --- src/asahi/lib/agx_chip_caps.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asahi/lib/agx_chip_caps.h b/src/asahi/lib/agx_chip_caps.h index a1fdb7f97055..32335b2c4f21 100644 --- a/src/asahi/lib/agx_chip_caps.h +++ b/src/asahi/lib/agx_chip_caps.h @@ -74,6 +74,7 @@ enum agx_chip_cap { #define AGX_CAPS_G17P \ (AGX_CAPS_NATIVE | AGX_CAP_NATIVE_PREAMBLE | \ + AGX_CAP_VDM_INDIRECT_INDEX_BOUNDS | \ AGX_CAP_TRI_MERGE_ACROSS_SIDE_EFFECTS | AGX_CAP_SPARSE_RESIDENCY_3D) /* What the M5 parts (G17G, G17S, G17C) share. */ @@ -99,7 +100,7 @@ enum agx_chip_cap { X(G15C, AGX_CAPS_NATIVE, __VA_ARGS__) \ X(G15D, AGX_CAP_COOPERATIVE_MATRIX, __VA_ARGS__) \ X(G16P, AGX_CAP_COOPERATIVE_MATRIX, __VA_ARGS__) \ - X(G16G, AGX_CAPS_NATIVE, __VA_ARGS__) \ + X(G16G, AGX_CAPS_NATIVE | AGX_CAP_NATIVE_PREAMBLE, __VA_ARGS__) \ X(G16S, AGX_CAP_COOPERATIVE_MATRIX, __VA_ARGS__) \ X(G16C, AGX_CAP_COOPERATIVE_MATRIX, __VA_ARGS__) \ X(G17P, AGX_CAPS_G17P, __VA_ARGS__) \