glsl/nir: Add and use a gl_nir_link() function
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 23 Aug 2019 13:50:11 +0000 (06:50 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 10 Sep 2019 21:36:46 +0000 (14:36 -0700)
commit83fd1e58d8faebb7eb10094899b3175a2b55b24d
tree37fb188a45512e99152999e3c069fab8d170098e
parenteca8032f20d0970184843d98e2bddb688e94a3a9
glsl/nir: Add and use a gl_nir_link() function

Perform all the NIR linking steps in order.  Change iris and i965 to
use it.  Suggested by Alejandro.

v2: Add gl_nir_linker_options struct.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com> [v1]
src/compiler/glsl/gl_nir_linker.c
src/compiler/glsl/gl_nir_linker.h
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/state_tracker/st_glsl_to_nir.cpp