glsl: move get_next_index() earlier in nir link uniforms
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 14 Jan 2020 00:54:27 +0000 (11:54 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commitaa9b457062cfcdb29a15e0be73bbc1a75305f89e
tree34a39bf2b291d14384cc0a9e154248189d120828
parent219cefe24f757e3b8df4052ae76d132e8956bee6
glsl: move get_next_index() earlier in nir link uniforms

We will use get_next_index() in more of the helper functions in
the following patches.

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