compiler/link: move add_program_resource to linker_util
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 12 May 2018 07:59:32 +0000 (09:59 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 Jun 2018 12:25:05 +0000 (14:25 +0200)
commit215c9359ed1e71757b677787fb79aa4009c43605
treebdc3f0697fa202a8c2962437f5371ea2fade3bd8
parent2bf91733fcb5ff8f74d71de03feeb5f3d664d199
compiler/link: move add_program_resource to linker_util

So it could be used by the GLSL and NIR linker.

v2: (Timothy Arceri)
   * Moved from compiler to compiler/glsl
   * Method renamed to link_util_add_program_resource

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/Makefile.sources
src/compiler/glsl/linker.cpp
src/compiler/glsl/linker_util.cpp [new file with mode: 0644]
src/compiler/glsl/linker_util.h
src/compiler/glsl/meson.build