500b0735c0
This moves a bunch of code from glsl_to_tgsi that will be reused by tgsi-to-nir. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6567>