glsl: move calculate_array_size_and_stride() to link_uniforms.cpp
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 3 Dec 2019 04:04:14 +0000 (15:04 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 5 Dec 2019 02:18:02 +0000 (13:18 +1100)
commit50dc4b77f6ba7f70c110b8b35479c8ee8ddaaa96
treef55ac1a356c2628d5d0e2603b6a40ef1ca236cb2
parentc9acf0739f1dd4211744d94ce3fb33b4e4ffc900
glsl: move calculate_array_size_and_stride() to link_uniforms.cpp

This is where all the other uniform values are populated so it
makes much more sense here. Moving it will also allow us to better
share code between the NIR and GLSL IR resource list builders.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/link_uniforms.cpp
src/compiler/glsl/linker.cpp