anv: Support workgroup memory in other shaders
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 7 Jun 2021 21:17:12 +0000 (14:17 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 8 Jun 2021 18:30:39 +0000 (11:30 -0700)
commit7c1c9e935e6a645fa47e47f784879a7b28bde785
tree915082f20994d7dd36ec29694c86f062f455faa1
parent8af6766062044167fb3b61950ddbc7d67e4c3e48
anv: Support workgroup memory in other shaders

Mesh and Task shaders can use workgroup memory, so generalize its
handling in anv by moving it from anv_pipeline_compile_cs() to
anv_pipeline_lower_nir().

Update Pipeline Statistics accordingly.

Reviewed-by: Marcin Ĺšlusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11230>
src/intel/vulkan/anv_pipeline.c