compiler/link: add linker_util.h, move linker_error/warning to it

Linker utilities common to the GLSL IR and NIR linker (the latter to
be used for ARB_gl_spirv).

We need to move it to a new header as the NIR linker doesn't need to
know about ir_variable, and others, included at linker.h.

v2: move from src/compiler to src/compiler/glsl (Timothy Arceri)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Alejandro Piñeiro
2018-03-28 14:59:26 +02:00
parent b995bda9bc
commit aa95f0bc5b
6 changed files with 48 additions and 14 deletions

View File

@@ -112,6 +112,7 @@ files_libglsl = files(
'ir_visitor.h',
'linker.cpp',
'linker.h',
'linker_util.h',
'link_atomics.cpp',
'link_functions.cpp',
'link_interface_blocks.cpp',