agx: Add sysval management helper

Will be used for lowering UBO loads, among other applications.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10582>
This commit is contained in:
Alyssa Rosenzweig
2021-04-17 16:59:51 -04:00
committed by Alyssa Rosenzweig
parent 77e7168ae2
commit 1f23e9c06e
3 changed files with 69 additions and 0 deletions

View File

@@ -542,6 +542,12 @@ agx_builder_insert(agx_cursor *cursor, agx_instr *I)
unreachable("Invalid cursor option");
}
/* Uniform file management */
agx_index
agx_indexed_sysval(agx_context *ctx, enum agx_push_type type, enum agx_size size,
unsigned index, unsigned length);
/* Routines defined for AIR */
void agx_print_instr(agx_instr *I, FILE *fp);