glsl: split out varying and uniform linking code
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 27 Jul 2016 05:20:42 +0000 (15:20 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 10 Aug 2016 22:33:12 +0000 (08:33 +1000)
commit588702cc41122607c8bf8a589b0714546bac190c
tree099f4ac68dbee5085bc1f156b6966e48dbe9592e
parent4c3a6b07e2960266adca634f8607ef38f71b8318
glsl: split out varying and uniform linking code

Here a new function link_varyings_and_uniforms() is created this
should help make it easier to follow the code in link_shader()
which was getting very large.

Note the end of the new function contains a for loop with some
lowering calls that currently don't seem related to varyings or
uniforms but they are a dependancy for converting to NIR ealier
so we move things here now to keep things easy to follow.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/linker.cpp