nir: Move st_nir_assign_var_locations() to common code
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 10 May 2019 08:18:12 +0000 (10:18 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 8 Jul 2019 12:15:06 +0000 (14:15 +0200)
commitfd5ed6b9d6ab5e905a10c2033007ca478c33e1af
tree305f7923695fbe3580fecaf1725df72dc835d8a8
parent27f0c3c15ef753bf5eb089c725341790e9693c53
nir: Move st_nir_assign_var_locations() to common code

It isn't really doing anything Gallium-specific, and it's needed for
handling component packing, overlapping, etc.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_linking_helpers.c
src/mesa/state_tracker/st_glsl_to_nir.cpp