gallium/tgsi: Add a helper for initializing ureg from a shader_info.
authorEric Anholt <eric@anholt.net>
Wed, 8 Jan 2020 19:25:35 +0000 (11:25 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 2 Sep 2020 16:58:44 +0000 (09:58 -0700)
commit500b0735c0caa293d22fb3728cb76d267a016834
treee7c0c99c10cc9927f8829cb37b4c2cc6e178519c
parent34b3e1f5121ee532a1eb087e9b08c3d15e16cc9d
gallium/tgsi: Add a helper for initializing ureg from a shader_info.

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>
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_program.c