ac: Add pending_vmem field to args.

This is to indicate when an argument was loaded from VMEM
and needs a waitcnt before it can be used.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21696>
This commit is contained in:
Timur Kristóf 2023-03-02 17:29:26 -08:00 committed by Marge Bot
parent d5376c3feb
commit 1a7b5979df

View file

@ -64,7 +64,8 @@ struct ac_shader_args {
enum ac_arg_regfile file;
uint8_t offset;
uint8_t size;
bool skip;
bool skip : 1;
bool pending_vmem : 1; /* Loaded from VMEM and needs waitcnt before use. */
} args[AC_MAX_ARGS];
uint16_t arg_count;