glsl: calculate TOP_LEVEL_ARRAY_SIZE and STRIDE when adding resources
authorTapani Pälli <tapani.palli@intel.com>
Wed, 14 Oct 2015 08:01:29 +0000 (11:01 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 14 Oct 2015 09:39:04 +0000 (12:39 +0300)
commitac257f1070add308004c5c79a8acfdef5a6778da
treec96909bb7a58ded70ca27961e004c4767e899e2d
parentb76159b09617a07b9e3d53d64d31d4835702827f
glsl: calculate TOP_LEVEL_ARRAY_SIZE and STRIDE when adding resources

Patch moves existing calculation code from shader_query.cpp to happen
during program resource list creation.

No Piglit or CTS regressions were observed during testing.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/glsl/linker.cpp
src/mesa/main/shader_query.cpp