st/glsl_to_nir: add st_nir_assign_var_locations() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 21 Nov 2017 00:53:58 +0000 (11:53 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 3 Dec 2017 22:10:30 +0000 (09:10 +1100)
commit9530b786d2fcd4750ad61fc57c90bf398f0d98c5
tree669d155fc6c7dce86410164834eb7988d192d92c
parentaecb9bec87f1b8bf47c86f49c8ac2109ef73041f
st/glsl_to_nir: add st_nir_assign_var_locations() helper

This avoids packed varyings being assigned different driver locations.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp