From fbb85a8d096d958dddf9f165728e3d484ccc8ca2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 22 Apr 2025 13:40:44 -0400 Subject: [PATCH] agx: use abi.h defines Signed-off-by: Alyssa Rosenzweig Reviewed-by: Mary Guillemard Part-of: --- src/asahi/compiler/agx_compile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 626871a31c0..3f1011a61e1 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -8,6 +8,7 @@ #include "agx_compile.h" #include "asahi/clc/asahi_clc.h" #include "asahi/layout/layout.h" +#include "asahi/lib/agx_abi.h" #include "compiler/nir/nir_builder.h" #include "util/bitset.h" #include "util/glheader.h" @@ -101,13 +102,13 @@ agx_tess_coord_y(agx_builder *b) static agx_index agx_vertex_id(agx_builder *b) { - return agx_cached_preload(b->shader, 10, AGX_SIZE_32); + return agx_cached_preload(b->shader, AGX_ABI_VIN_VERTEX_ID, AGX_SIZE_32); } static agx_index agx_instance_id(agx_builder *b) { - return agx_cached_preload(b->shader, 12, AGX_SIZE_32); + return agx_cached_preload(b->shader, AGX_ABI_VIN_INSTANCE_ID, AGX_SIZE_32); } #define VARYING_NUM_COMPONENTS (VARYING_SLOT_MAX * 4)