glsl: pull mark_array_elements_referenced() out into common helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 31 Mar 2020 02:49:30 +0000 (13:49 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Apr 2020 11:50:44 +0000 (11:50 +0000)
commit6afd0954e12eb75a4ce19580907b1fc4145369b9
tree23766aaafbdb156f412ed7f0887eb34c94aab320
parent5d992b539e977ac688e950866a1d872de5acec18
glsl: pull mark_array_elements_referenced() out into common helper

We will reuse this helper in the NIR linker in the following
patches.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4623>
src/compiler/glsl/ir_array_refcount.cpp
src/compiler/glsl/ir_array_refcount.h
src/compiler/glsl/linker_util.cpp
src/compiler/glsl/linker_util.h
src/compiler/glsl/tests/array_refcount_test.cpp