agx: use abi.h defines

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34661>
This commit is contained in:
Alyssa Rosenzweig 2025-04-22 13:40:44 -04:00 committed by Marge Bot
parent 6f265ab83f
commit fbb85a8d09

View file

@ -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)