mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
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:
parent
6f265ab83f
commit
fbb85a8d09
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue