nir: Gather compile time constant task->mesh dispatch size.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 30 Mar 2023 17:34:31 +0000 (19:34 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 3 Apr 2023 15:36:02 +0000 (15:36 +0000)
commite42d2bd534481cadd344c7349e43dcb77610a0ae
tree36f6258ffd222fe9b47da88113e002829ce29d55
parent836204da2532e048295b0d00293e40b3cdb7c26f
nir: Gather compile time constant task->mesh dispatch size.

Some GPUs such as AMD RDNA3 can use this information
to optimize mesh shader dispatches.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22222>
src/compiler/nir/nir_gather_info.c
src/compiler/shader_info.h