glsl: create a new link_and_validate_uniforms() helper
authorTimothy Arceri <timothy.arceri@collabora.com>
Sun, 4 Dec 2016 10:42:14 +0000 (21:42 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 19 Jan 2017 04:55:02 +0000 (15:55 +1100)
commitc054bbf0d40350bce931bccfce59d0c4ebca6fd1
tree36af93b2a87c8f9666db3627ce0ddcdff9f370cb
parentce4fb3c8a136d129d7afad5a919c1403e38d8c02
glsl: create a new link_and_validate_uniforms() helper

Currently this just breaks up the linking code a bit but in the
future i965 will call this from the backend via Driver.LinkShader()
so that we can do NIR optimisations before assigning uniform
locations.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/linker.cpp