r600: reference glsl type system during translation
authorGert Wollny <gert.wollny@collabora.com>
Sun, 20 Nov 2022 16:32:21 +0000 (17:32 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 21 Nov 2022 10:43:51 +0000 (10:43 +0000)
commita69eafc4226479fc143807a3a0c2ce52a3bc3939
tree76b196e01356afe8db092d79a27a329746aad82a
parent089ae08ab1f2c8035680013fe267b049777c2d1b
r600: reference glsl type system during translation

VL doesn't initialize the type systen, but creates shaders in TGSI.
When these are translated to NIR and then compiled in the driver
we need to have a reference to the glsl type system.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7453

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19883>
src/gallium/drivers/r600/r600_shader.c