diff options
author | Jason Ekstrand <[email protected]> | 2019-02-23 13:34:11 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-03-04 23:56:40 +0000 |
commit | 65ee5cc0da39a5be6171a49d9b2408510ae69062 (patch) | |
tree | 6093d8024b8454b49b4b2c5169c65c7604e8e729 /src/intel/vulkan/anv_private.h | |
parent | 5c96120b5ce158fea28d751d8a55b5e4d80df4f3 (diff) |
anv: Use an actual binding for gl_NumWorkgroups
This commit moves our handling of gl_NumWorkgroups over to work like our
handling of other special bindings in the Vulkan driver. We give it a
magic descriptor set number and teach emit_binding_tables to handle it.
This is better than the bias mechanism we were using because it allows
us to do proper accounting through the bind map mechanism.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7b040a2b962..2746e443bc8 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1720,6 +1720,7 @@ anv_descriptor_set_destroy(struct anv_device *device, struct anv_descriptor_pool *pool, struct anv_descriptor_set *set); +#define ANV_DESCRIPTOR_SET_NUM_WORK_GROUPS (UINT8_MAX - 2) #define ANV_DESCRIPTOR_SET_SHADER_CONSTANTS (UINT8_MAX - 1) #define ANV_DESCRIPTOR_SET_COLOR_ATTACHMENTS UINT8_MAX |