spirv: Support EXT_mesh_shader SetMeshOutputsEXT.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 20 Jan 2022 15:35:23 +0000 (16:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:18:33 +0000 (16:18 +0000)
commitc5c6cef893af37c95ee3a0a82f6fc73a1fa02406
treea1719f6611dd8a6519b6b5aee0ed79e4155eb523
parentb3cc09cff3b49baf23609b84d6f0ce64df48d7b7
spirv: Support EXT_mesh_shader SetMeshOutputsEXT.

Use the set_vertex_and_primitive_count intrinsic to
express the number of vertices and primitives that the
mesh shader workgroup outputs.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18366>
src/compiler/spirv/spirv_to_nir.c