I'd rename add_program_resource -> link_util_add_program_resource or
something like that. And add at the top of the file that these functions
are shared between the GLSL IR and NIR linkers.
Also the new file should now be located in src/compiler/glsl/
On 18/04/18 00:36, Alejandro Piñeiro wrote
So it could be used by the GLSL and NIR linker.
---
src/compiler/glsl/linker.cpp | 36
src/compiler/linker_util.cpp | 37 +
src/compiler/linker_util.h | 5 +
3 files changed, 42 insertions(+), 36 deletions(-)
diff --g