anv: Use an actual binding for gl_NumWorkgroups
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Feb 2019 19:34:11 +0000 (13:34 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 4 Mar 2019 23:56:40 +0000 (23:56 +0000)
commit65ee5cc0da39a5be6171a49d9b2408510ae69062
tree6093d8024b8454b49b4b2c5169c65c7604e8e729
parent5c96120b5ce158fea28d751d8a55b5e4d80df4f3
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 <caio.oliveira@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c