glsl: some nir uniform linker fixes
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 23 Apr 2020 05:55:14 +0000 (15:55 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 08:31:01 +0000 (08:31 +0000)
commitffbec55072ed952db034779e3d0505a61c833397
tree866384f0fd2ba8cd45d8313a96229a0b52261447
parent9df1d92bbd5b2c6d6382e5d9bd640313fb279e1a
glsl: some nir uniform linker fixes

This fixes find_and_update_named_uniform_storage() for subroutines
and also updates num_shader_uniform_components for non opaque
uniforms.

The following patch will ensure this type of bug won't happen again.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4721>
src/compiler/glsl/gl_nir_link_uniforms.c