nir/lower_io: Identify Mesh output as arrayed
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 30 Apr 2021 07:01:07 +0000 (00:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sat, 28 Aug 2021 03:56:42 +0000 (03:56 +0000)
commitbf5f6add01cc9ec19d6ccb10d9435f448277a829
tree76ad8297f1199e542c22e5170ce72d157a206755
parent9631d24c3f65269dc8cdfdcddd6a1cd896d70a9d
nir/lower_io: Identify Mesh output as arrayed

Mesh shader outputs are either:

- non-array builtins
- array builtins that are either per-primitive or per-vertex
- user-defined outputs that must be either per-primitive or per-vertex

So we can identify any array output as "arrayed" for the purposes of
I/O lowering.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10600>
src/compiler/nir/nir_lower_io.c