ac/nir/ngg: Remember proper bit sizes of GS output variables.
authorTimur Kristóf <timur.kristof@gmail.com>
Sun, 17 Jul 2022 18:36:43 +0000 (20:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Jul 2022 08:17:39 +0000 (08:17 +0000)
commit8d7ca7783b6a848978d1adce9488f3204e631813
treebf2aeb4c405d2f5949734119ef73fd0abedb6d63
parente60fbb4dc963a2b4cd6bffac89f8e45fbbdcd4b8
ac/nir/ngg: Remember proper bit sizes of GS output variables.

The LLVM backend keeps track of 16-bit output variables and it will
miscompile shaders when these outputs aren't the correct bitsize.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17706>
src/amd/common/ac_nir_lower_ngg.c