st/nir: Move varying setup code to a helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Oct 2018 05:41:18 +0000 (22:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Feb 2019 21:43:02 +0000 (13:43 -0800)
commit4f799264d1ac40769f84d27e945e981a89f4346e
tree413ab2bd9b1748c15ffd87016f5a3379487e8293
parent36734987a59f087ae499c5d0736995007f4af780
st/nir: Move varying setup code to a helper function.

I want to reuse this for built-in shaders.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Tested-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_nir.h