ac: Add pending_vmem field to args.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 3 Mar 2023 01:29:26 +0000 (17:29 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Mar 2023 04:39:18 +0000 (04:39 +0000)
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>

src/amd/common/ac_shader_args.h

index eed7dc3..264517b 100644 (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;