glsl: add a NIR based varying linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 2 Nov 2021 01:43:54 +0000 (12:43 +1100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 May 2022 03:33:18 +0000 (03:33 +0000)
commite5122a55435dbf9d4631a3f3a33f05ec0e019fbd
tree7666d5eaec6f295d5f5090aae3a0f2249032d80b
parente3a45a47789f223cf6a825e83423ed50677e1fc5
glsl: add a NIR based varying linker

With a NIR based linker we get better xfb packing, and we no longer
depend on the GLSL IR optimisations to be able to link shaders
with a large amount of dead input/outputs.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15731>
src/compiler/glsl/gl_nir_link_varyings.c [new file with mode: 0644]
src/compiler/glsl/gl_nir_link_varyings.h [new file with mode: 0644]
src/compiler/glsl/gl_nir_linker.h
src/compiler/glsl/meson.build